hi i have a textbox and a button on my asp.net page i want that when i write any value on textbox and after that when i click on textbox then a click would perform auto on button so how can i do this???
saj_amo
0
Junior Poster in Training
Recommended Answers
Jump to PostWhat is a "auto on button"? Just click the button and it will post back the textBox if you used an <asp:TextBox> in the form fields
Jump to PostWell, i think i can visualize the logic of waht you want - though don't know why you would want to do that !
I would use 2 events:
- first in the onchange event of the textbox i would set a certain module level boolean variable to true (eg …
Jump to Postwell, surely if you had some code to the screen, it would be farmuch easier to correct and point out the direction to. can you send the relevant part of what you have done - then we can help :)
Jump to Postwell, that looks ok. so all you need to is call your submit function in the TExtBox1_KeyDown sub !
All 16 Replies
omotoyosi
-3
Light Poster
sknake
1,622
Senior Poster
Featured Poster
wilch
5
Junior Poster in Training
saj_amo
0
Junior Poster in Training
wilch
5
Junior Poster in Training
saj_amo
0
Junior Poster in Training
wilch
5
Junior Poster in Training
saj_amo
0
Junior Poster in Training
wilch
5
Junior Poster in Training
saj_amo
0
Junior Poster in Training
saj_amo
0
Junior Poster in Training
Ramesh S
129
Posting Pro
saj_amo
0
Junior Poster in Training
Ramesh S
129
Posting Pro
saj_amo
0
Junior Poster in Training
Ramesh S
129
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.