Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: postback


Message #1 by "welliton alves toledo" <welliton@r...> on Fri, 26 Jul 2002 19:15:18
This is how I do it:

Attach a handler to the to object that submits form, like a button.

btnSubmit.Attributes.Add("onclick", "YourFunction(Function Parameters)")

<script language="JavaScript

Function YourFunction(Params){
Your Function Code Here
Then submit form with the line following

		document.FormName.submit();
		}
		
</script>

> I have a textbox with property AutoPostBack=True, ok.
B> ut I need to call another javascript function before function 
_> _doPostBack(...). How I can do that, or add code to function 
_> _doPostBack?  

> Sorry my english, I'm learning.

> welliton

  Return to Index