How can I detect a value in a multi-line text box then run some code based on the result?
EG:
Text Box has these values:
123456
123457
123458
123459
1000001
When the user enters the value 1000001, I want it to call some code.
Thanks.
Hi, yes, the link you provided was similar to my problem. In the end, however, I solved it by thinking outside the box!
Briefly, I created two html files with html5 audio clips in them - one for 'on' and one 'off'. In the aspx page, I dropped in two iFrame tags at the bottom of the page. In the...
Hi,
I have an asp.net C# web site and in one of the pages I have a grid view that returns some results and fires a warning sound if the result = 0 (see below):
if (gvScnResults.Rows.Count == 0)
{
SoundPlayer PlaySound = new...
Hi, thanks for the response. I had a nagging feeling that JQuery would be the way to go . . . . . it certainly seems impossible in .net. Looks like I have some reading up to do as JQuery is not my bag!
Hi . . . here's an interesting puzzle!
I have a multi line text box:
<asp:TextBox ID="txtData" runat="server" TextMode="MultiLine" />
Now, suppose a user enters the following:
123456
123457
123458
123459
222111
END
As soon as the user types in END, how do I get it to trigger a Submit button...
Hi,
I am using Asp.Net 4, C# and MySQL for a task scanning project. Everything works, except I cannot figure out what to do with the else bit!
I have a text box that takes input from a barcode scanner. When the data is received, a TextChanged event calls the code below:
protected void...
Hi,
Here is one I am not sure about . . . or rather, can't figure out how to handle it using FileExists!!!
My files look like this:
prtx010.prtx010.0199.E7.352.23444151
I want to check a directory for any files that are 36 characters long with E1 to E9 in its name.
Any ideas how I can...
Hi, I solved it using your pointer. Here is my code for anyone else having a spot of bother. What it will do is loop through the directory for all the required files, load into temp table, run a stored procedure to process the data and drop it into a normalized table, then delete the original...
Hi,
I have a directory with a load of files in it, with each file named E_1, E_2, E_3 etc. There will never be more than 10 files.
Now, I want a user to click a button that will do the following to each file. So, do E_1, then delete it, do E_2 then delete it etc . . . .
//open the...
Hi, thanks for the replies . . . .
What I mean is that user, say, enters 123456 in text box. This then gets sent to the database, record 123456 is retrieved and displayed in the form (no data is being stored, just retrieved). Once the record is retrieved, I want the retrieved record to remain...
It's likely the postback that is the problem . . . . if I clear the text box on page_load, it also clears the results from the form, which is not the behaviour I want: I want the results to stay put - but the text box to clear.
Hi,
Here's is something which sounds so simple to do . . . . but is proving a mega headache.
In a nutshell, I have a text box box and an asp:net form on a web page (C#). A user types in a value and presses the enter or return key. This then sends the user entered value to the database (stored...
Hi - thanks for the replies: they pointed me in the right direction. What I did was have a text box and a calendar icon. Click the icon, calendar opens. Choose date, it goes to the text box and that feeds the filter. Works nicely.
Hi,
I want to filter records in a grid view using the calendar control . . . . I can get it to work using a text box, but using the calendar is totally eluding me :(
Any assistance will be greatly appreciated . . .
If it helps, the date (REPOT_DATE) is returned like this example: 23-11-2012...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.