Hi all,
Code:i want code for "How to put autopostback property true/false using javascript".
Hi all,
Code:i want code for "How to put autopostback property true/false using javascript".
Since your question is general, so is this answer:
where object is some object that you want to set the autopostback property for and some_condition is either true or false or a statement which evaluates to either true or false depending upon current factors in the flow of the script.Code:object.autopostback = some_condition
However:
http://msdn.microsoft.com/en-us/libr...opostback.aspx
states that there is no code for this in javascript (jscript is MS speak for javascript).
But you could try it. You should probably use the formal form:
AutoPostBack
though. Perhaps something like:
But, as I say, it's an ASP.NET thing. If you're using ASP.NET, why not use the code for this as described for ASP.NET or Visual Basic?Code:<input id="mytextbox" type="text" name="whatever"> <script type="text/javascript"> document.getElementById('mytextbox').AutoPostBack = true; </script>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks