469,609 Members | 1,179 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Submit Button

I have a web form with a few text fields some validataion and a submit
button.

When I click the submit bittin the serverside event does not fire?????
Why!!!! I have tried Changing the EnableViewState I have tried removing
CausesValidataion.
I am using VisualStudio 2003/.net 1.1

<asp:Button id="submit" runat="server" Text="Update" EnableViewState="True"
CausesValidation="true"></asp:Button>
private void InitializeComponent()
{
this.submit.Click += new System.EventHandler(this.submit_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void submit_Click(object sender, System.EventArgs e)
{
Response.Write("This is the button clicked");
// Update the users file here
userRec.Replace(txtName.Text,14,0,0);
userRec.Replace(txtEmail.Text,13,0,0);
userRec.Replace(txtFax.Text,21,0,0);
userRec.Replace(txtVoice.Text,19,0,0);
tblEUsers.Write(userId,userRec);
if (txtPass.Text != "") // save the password
{
}
}

Kevin Bilbee
Nov 17 '05 #1
1 2017
the property Page.IsValid is what fires the validation event. you must
check in you page somewhere.

"Kevin Bilbee" <kb*****@standardabrasives.com> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
I have a web form with a few text fields some validataion and a submit
button.

When I click the submit bittin the serverside event does not fire?????
Why!!!! I have tried Changing the EnableViewState I have tried removing
CausesValidataion.
I am using VisualStudio 2003/.net 1.1

<asp:Button id="submit" runat="server" Text="Update" EnableViewState="True" CausesValidation="true"></asp:Button>
private void InitializeComponent()
{
this.submit.Click += new System.EventHandler(this.submit_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void submit_Click(object sender, System.EventArgs e)
{
Response.Write("This is the button clicked");
// Update the users file here
userRec.Replace(txtName.Text,14,0,0);
userRec.Replace(txtEmail.Text,13,0,0);
userRec.Replace(txtFax.Text,21,0,0);
userRec.Replace(txtVoice.Text,19,0,0);
tblEUsers.Write(userId,userRec);
if (txtPass.Text != "") // save the password
{
}
}

Kevin Bilbee

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by bettina | last post: by
5 posts views Thread by rjames.clarke | last post: by
10 posts views Thread by ljlolel | last post: by
10 posts views Thread by The Natural Philosopher | last post: by
4 posts views Thread by j1dopeman | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.