开发者

jquery form submit in vb.net

开发者 https://www.devze.com 2023-01-31 07:35 出处:网络
I am using thickbox,and everything works fine in regards to loading the page. So my div\'s are loaded fine and data can be inserted in the textboxes.

I am using thickbox,and everything works fine in regards to loading the page. So my div's are loaded fine and data can be inserted in the textboxes. Now when it comes to submitting the data, i need 2 things to happen.

  1. get the form to submit, so i can work on vb.net side for postback and other functions.
  2. When the form is submitted i want the thickbox to close开发者_Python百科.

I am using modal=true, so i have put the tb_remove() on a button's onclick event. I want that sme button to do both submit to vb.net side and run tb_remove. Does anyone know how?

aspx side code -

page name = student.aspx

$(document).ready(function() {
    tb_show("", "#tb_inline?height=500&width=500&inlineId=div1&modal=true", "");
});

<asp:Button ID="btnsave" runat="server" text="Enter" />

the rest is textboxes in div1 with the btnsave and end of div1. When i click on save, i want it to goto student.aspx.vb side so i can add rest of code.


You need to use OnClientClick on your button so you can trigger some client side javascript before the form is posted back.

<asp:Button ID="btnsave" runat="server" onClientClick="tb_remove();" text="Enter" />

OnClientClick (MSDN)

0

精彩评论

暂无评论...
验证码 换一张
取 消