can someone please provide a vb example of extracting text. For example, a textbox0 has the phrase "red car". I want to place "red" into a seperate textbox1 and "car" into another textbox2. How can this be achieved.
View Complete Post
is there a way to do the above, for example...I have a text column, Column A containing "172671-08-7892", I need 7892 to be extracted to another column of the type number, from there I need to divide by 2. If the remainder is 0, Column C will
be updated as Female, if the remainde is 1, Column C will be updated as Male
I need to extract a portion of text from one field and put it in another field and I am having trouble with the syntex. I am doing this with an sql select statement in asp.net.
I can select the left most characters of the field (SELECT BatchNumber, LEFT(BatchNumber, 3) AS Expr1 FROM DonorHistory) or the right most characters of the field (SELECT BatchNumber, RIGHT(BatchNumber, 3) AS Expr1 FROM DonorHistory) but I cannot select characters from the middle of the field. I expected that to be able to use a statements such as "SELECT BatchNumber, mid(BatchNumber, 3, 2) AS Expr1 FROM DonorHistory" but this statement gives me an error. I also tried using middle in place of mid but that did not work either.
What am I doing wrong?
Hi, I'm searching now for hours but couldn't find it.
In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.
Menu button : What is a database should go to the page default.aspx and in there is an article published. A part of this article is having a piece of text about "what is a database"
Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:
<ul> <li><a href="default.aspx ?????>what is a database</a></li> <li><a href="default.aspx ?????>what is a query</a></li>
Where my question marks are, there should be a connection to that particular piece of text.In each article part there is an ID="text1" and the second part id="text2"
How shoudl i do that, Should i use a question mark.Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.
I format lines in a .aspx file (source view) the way I can use them, and if I switch to design view or view in browser or debug, the many lines get reformatted to flow all onto one line.
I can't seem to find the correct setting to keep this from happening.
I know this is probably a very basic question but how do I keep a column's text values unique in SQL server (ie for a unique username)? The column is not an integer it's varchar(50), and it's not the primary key but I could make it the primary key if recommended.
The front end could handle it; where the user would enter text, it's validated, then a query is done to see if that username is available. If so, then user can decide to choose it and an insert is done, if not they pick a new username and process repeats. With this approach, the responsibility of keeping the value unique solely rests on the front end, nothing on the database side.
Is this the correct way to handle this?
hi want to write urdu in text box of my application if anyone has the solution how to do this kindly let me know
Hi i developing multi language website
using Master pages
Page_Load i set the Text property of Button Control from Resource file
Button1.Text = GetLocalResourceObject("Button1")
then in the button click event i cnage the text of the Button control
Button1.Text = GetLocalResourceObject("Button1_new")
but the text doesn't change and no error messgae
what is the problem how to solve this
I need to create a complex report and export it to Excel. In the first column header, text is displayed as "Hide Daily Columns", but I need the text to change as "Unhide Daily columns" when I click on it and when the text changes the columns under "daily" header (I have 3 columns under this header) present in the report shud be hidden and only weekly columns shud be visible. Any ideas please. I am new to SSRS and tried out many ways but didn't get it.
The Visual Studio T4 code generation engine lets you parse an input file and transform it into an output file. We give you a basic introduction to T4 templates and show you how ASP.NET MVC uses this technology.
MSDN Magazine January 2010
With Windows Presentation Foundation (WPF) you can lay out text on a path, then animate the individual points defining the path and watch the characters bounce around in response.
MSDN Magazine December 2008
Powerful Text Editing, Web Testing in .NET, Extended Unit Testing, and More
MSDN Magazine February 2008