Click here to Skip to main content
15,886,736 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,


I am using 3 text boxes. When I click on 2nd text box I want to show 1st text box value in message box (if 1st text box passed the validations).
Same procedure when i click on 3rd textbox I want to show 1st text box value and 2nd text box value in message box(if 1st text box,2nd text box passed the validations).




Regards,
NSJ
Posted
Comments
Indivara 31-Jan-11 3:30am    
Ignore my answer. Didn't read the question, only the title. Assumed "when mouse cursor enters" meant mouse hover, not click.

Handle the TextBox.Click event.
In the handler, validate the content of text box 1, and show your message as appropriate.
 
Share this answer
 
Comments
Pravin Patil, Mumbai 31-Jan-11 3:19am    
I think this is the correct answer...
Do coding on onblur event of textbox

for that u will have to take a button and make its visible false on form load event.
i m giving u code use as per your requirement.

C#
protected void Page_Load(object sender, EventArgs e)
 {
     Button3.Visible = false;
     string hanlder1 = ClientScript.GetPostBackEventReference(this.Button3, "");
     Textbox2.Attributes.Add("onblur", hanlder1);
 }

Service Unavailable




Same thing apply for third TextBox and use one more button
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900