|
How to prevent entering a numeric value into a textbox using regular expression vallidator.I tried like that.But the numeric value will also be entered.I given the vallidation expression like that.Please help me.The vallidation expression given is ::ValidationExpression="^.{5,20}$".
|
|
|
|
|
As you've discovered, a regex validator, like all validators, doesn't work that way. It tells you if input is bad, it does not constrain it. For that, you will need to write javascript to reject keypresses that are not acceptable.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
To prevent entering numeri values using regular expression, validation expression is :
ValidationExpression="^[a-zA-Z ]$"
|
|
|
|
|
Hello Everbody,
A very good morning to all.Actually i got the query of my question.Anyway Thanks for your kind reply.
|
|
|
|
|
I have build by website and solution but any changes wether in code or design is not applying in browser.
Is it happening due to the Ajax Control or any other region i don't know
Plz tell me the solution
Thanks with anticipations
modified on Friday, February 22, 2008 1:16 AM
|
|
|
|
|
Two possibilities
1 - your changes do not build and you're looking at the old site
2 - the old page is in your browser cache. Hold CTRL and press F5 to refresh the page in your browser
Also set breakpoints to make sure your code is being run.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
The same problem occured again and this time it (Hold CTRL and Press F5)
is not working. Can U tell me the region behind it? Why it happening again
I m looking forward for your response
|
|
|
|
|
Hi All,
This is to create an ASP.net application which can read an HTML file that is saved in the users local system and then store the values in different tags into the corresponding columns in a database.
For e.g.,
<TABLE width="100%" border=1 frame=above>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=2 width="100%" bgColor=#2b558a
border=0><TBODY>
<TR>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%">Number: 31635 </TD>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%">Date Entered: 1/31/2008 </TD>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%">Business Unit: ABC </TD></TR>
<TR>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%"> </TD>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%">Entered by: Smith, John </TD>
<TD class=DefectHeaderRowClass vAlign=top align=left
width="33%">Type: New Request
</TD></TR></TBODY></TABLE></TD></TR>
In the database there will be fields like Number, Date Entered, Business Unit, Entered by, Type etc.
I need to store the data from the HTML file to the database.
Can anyone suggest any methods for doing this. Please help me with this...
Thanks,
Trav1
Trav1
|
|
|
|
|
If this is HTML in a known format, you can read it as XML if it's XHTML, or just write regular expressions to parse the pages for the data you need.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello Freinds.....
I want to create microsite. just like u can see www.magicbricks.com where we can click on any advierisment then open a new microsite.and chage the Url path also within a second .
So please give me some idea about change url path within a second and about microsite.
Thanks.....
Raushan Raj
|
|
|
|
|
raushan_9 wrote: So please give me some idea about change url path within a second
Response.Redirect
raushan_9 wrote: want to create microsite
Buy a book and work through it, it seems likely to me that you have a fair amount to learn before you can approach a project like this.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How to draw a transparent rectangle on an image in asp.net 2.0 using c#???
|
|
|
|
|
Urgent to who ?
ASP.NET has nothing to do with this, you'll need to draw the new bitmap in your C# code, and then pass it out to the webpage.
And, I recommend buying a book on ASP.NET, it seems likely to me that you really don't understand what it is, and what it does.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
my project consists of several aspx pages where it is navigating to one page to another pages.but wh navigating the address bar is visble to the user and it can be editable .so how to restrict the user not to edit the address bar ..or not to do anything to the address bar content.
|
|
|
|
|
jagadeeshkumar2106 wrote: so how to restrict the user not to edit the address bar
Disabling/Hiding browser address bar is not at all an efficient solution as user can take the URL from page info and give it directly on a fresh window. You need to write code for checking the query string value's and redirect to error pages if values are invalid.
|
|
|
|
|
hi sir is it possible not to edit the address bar by the user ...if possible plz help me with code
|
|
|
|
|
You can hide it in a popup. But as I told earlier, it's not reliable. So always check the values before you process them. Make sure the values passes through query string is valid. If you don't want to check the values passed, encrypt them before passing. So user won't understand the data.
|
|
|
|
|
You can hide it in a popup..means wat sir and how it is done
|
|
|
|
|
Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ?
There is literally no way you can do this. And, why would you want to ? I suspect you're trying to solve a different problem entirely, such as users being logged back in when they hit the back button. Fix your program, don't try to make life hard for your users, not least because it's not possible.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: Poor Navaneeth. How can an ASP.NET forum contain so many people who have no idea what ASP.NET is, and what it does ?
I am sorry, but I am not getting you.
|
|
|
|
|
Damn - sorry, that doesn't read like I meant it. I meant, poor you because you were saying the same thing over and over and, as often is the case here, getting a 'so how do I do it' response.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Ohh, I misunderstood that one. No prob.
|
|
|
|
|
What he meant was that there are so many persons active in asp.net forum who dont know event the basics and you tireslessly trying to teach them the same..
Apurva Kaushal
|
|
|
|
|
Now I understood
|
|
|
|