Click here to Skip to main content
15,911,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPage break problem in ie7 Pin
www.suniltvl.in27-Jul-07 1:16
www.suniltvl.in27-Jul-07 1:16 
QuestionHow to write a function to Validate Key Press or Down Event Pin
codingrocks26-Jul-07 23:46
codingrocks26-Jul-07 23:46 
AnswerRe: How to write a function to Validate Key Press or Down Event Pin
Christian Graus27-Jul-07 0:34
protectorChristian Graus27-Jul-07 0:34 
GeneralRe: How to write a function to Validate Key Press or Down Event Pin
Urs Enzler27-Jul-07 0:59
Urs Enzler27-Jul-07 0:59 
GeneralRe: How to write a function to Validate Key Press or Down Event Pin
Christian Graus27-Jul-07 1:01
protectorChristian Graus27-Jul-07 1:01 
QuestionSmartNavigation in asp.net 2.0 Pin
coolestCoder26-Jul-07 23:43
coolestCoder26-Jul-07 23:43 
AnswerRe: SmartNavigation in asp.net 2.0 Pin
Vasudevan Deepak Kumar27-Jul-07 2:02
Vasudevan Deepak Kumar27-Jul-07 2:02 
QuestionPb with RequiredFieldValidator Pin
jpeg26-Jul-07 23:32
jpeg26-Jul-07 23:32 
Hello everybody

Maybe one of you can help me.
I have an ASP.NET page that contains :
- a TextBox
- a RequiredFieldValidator for this TextBox.
- an HtmlImage

I added an attribute 'onclick' to my HtmlImage. It executes a javascript fonction that fill the TextBox with a default text.

If I do the following :
- click on the TextBox
- remove the text in the TextBox
- click the image

Then the textBox looses the focus and calls the validator which detects that the text has been changed and is now empty. So the validator displays the validation message (a '*' char).

After that, the javascript function is called (event onclick) and set the TextBox text to the default text. But the validation message is always displayed on the web page whereas the TextBox has got a valid value.

I have tried to use focus() in my javascript function but it was unsuccessful.

Can I call the validation function in my own javascript function to force the RequiredFieldValidator to re-evaluate the text in the textbox ? Or have you got any other idea ?

Thank you for help.

jpeg

AnswerRe: Pb with RequiredFieldValidator Pin
Imran Khan Pathan26-Jul-07 23:49
Imran Khan Pathan26-Jul-07 23:49 
GeneralRe: Pb with RequiredFieldValidator Pin
jpeg27-Jul-07 0:31
jpeg27-Jul-07 0:31 
QuestionHow to get Data from Webservice's Class object Pin
vivekdeshpande26-Jul-07 23:15
vivekdeshpande26-Jul-07 23:15 
AnswerRe: How to get Data from Webservice's Class object Pin
Chetan Patel27-Jul-07 1:09
Chetan Patel27-Jul-07 1:09 
GeneralRe: How to get Data from Webservice's Class object Pin
vivekdeshpande27-Jul-07 1:14
vivekdeshpande27-Jul-07 1:14 
QuestionProblems with Wizard control - ASP.Net 2.0 Pin
Jagadeesh Jupalli26-Jul-07 23:11
Jagadeesh Jupalli26-Jul-07 23:11 
Questionselect a file from one location and into another location Pin
indiaone26-Jul-07 23:08
indiaone26-Jul-07 23:08 
AnswerRe: select a file from one location and into another location Pin
Christian Graus26-Jul-07 23:12
protectorChristian Graus26-Jul-07 23:12 
GeneralRe: select a file from one location and into another location Pin
indiaone26-Jul-07 23:57
indiaone26-Jul-07 23:57 
GeneralRe: select a file from one location and into another location Pin
Christian Graus27-Jul-07 0:35
protectorChristian Graus27-Jul-07 0:35 
QuestionAutomatic question paper generation Pin
sarodam26-Jul-07 22:26
sarodam26-Jul-07 22:26 
AnswerRe: Automatic question paper generation Pin
N a v a n e e t h26-Jul-07 22:36
N a v a n e e t h26-Jul-07 22:36 
GeneralRe: Automatic question paper generation Pin
sarodam1-Aug-07 19:57
sarodam1-Aug-07 19:57 
AnswerRe: Automatic question paper generation Pin
Chetan Patel27-Jul-07 1:10
Chetan Patel27-Jul-07 1:10 
QuestionSerial Port Programming Pin
Ashish Vohra26-Jul-07 22:25
Ashish Vohra26-Jul-07 22:25 
AnswerRe: Serial Port Programming Pin
Christian Graus26-Jul-07 23:12
protectorChristian Graus26-Jul-07 23:12 
QuestionAuditing an ASP.NET web site (C#) Pin
But_Im_a_Lady26-Jul-07 22:04
But_Im_a_Lady26-Jul-07 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.