I have one readonly textbox and a Submit button.i need to perform some actions based on the text changed in the text box without post back(hitting the Submit button).a datetime picker is bound to the text box control which changes the value of the text box.
i am using vb.net
Detecting text change of readonly textbox without postback
Started by engr, Jan 20 2009 01:53 AM
3 replies to this topic
#1
Posted 20 January 2009 - 01:53 AM
|
|
|
#2
Posted 20 January 2009 - 04:04 AM
you will need to use javascript to do that. write a javascript in the page head in the form of function, then modify the textbox tag by adding this "onchange='Yourfunction()'"
#3
Posted 20 January 2009 - 09:01 PM
Sry this doesn't work in .net.
I called the function as you suggested and added the function in the header. OnTextChanged="javascript:chngText()"
This gives an error of 'javascript' is not a member.
If I call it this way - OnTextChanged="chngText()"
It gives an error of 'chngText()' is not a member.
I called the function as you suggested and added the function in the header. OnTextChanged="javascript:chngText()"
This gives an error of 'javascript' is not a member.
If I call it this way - OnTextChanged="chngText()"
It gives an error of 'chngText()' is not a member.
#4
Posted 03 February 2009 - 10:46 AM
Its a readonly textbox .. so how do u change the text?? programatically?
javascript:chngText() .. is a client side script and should used in the onchange event(client side event) ..
OnTextChanged is a server side event
javascript:chngText() .. is a client side script and should used in the onchange event(client side event) ..
OnTextChanged is a server side event


Sign In
Create Account


Back to top









