freelanceprogrammers.org Forum Index » ASP
Button Event Not Firing
Joined: 07 Jan 2005
Posts: 10
Button Event Not Firing
Hi All,
I have a registration page with a command button at the bottom. For
some reason, after clicking the button, data isnt posting to the
server. When I attempt to debug the app, I cant even access the code
within the event. Any ideas ?
Nick
ps: I`ve tried adding another button and the same occurs.
pps: I`m able to step thru the code for other events ... what gives ?
Joined: 26 Dec 2004
Posts: 12
Button Event Not Firing
Nick,
Post your code so we can see it.
Mark
Nick <nicholaschanburnlake@...> wrote:
Hi All,
I have a registration page with a command button at the bottom. For
some reason, after clicking the button, data isnt posting to the
server. When I attempt to debug the app, I cant even access the code
within the event. Any ideas ?
Nick
ps: I`ve tried adding another button and the same occurs.
pps: I`m able to step thru the code for other events ... what gives ?
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Joined: 07 Jan 2005
Posts: 10
Button Event Not Firing
Thanks Mark.
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
CollectData()
End Sub
--- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
<meckeard2000@y...> wrote:
> Nick,
>
> Post your code so we can see it.
>
> Mark
>
> Nick <nicholaschanburnlake@y...> wrote:
>
> Hi All,
>
> I have a registration page with a command button at the bottom.
For
> some reason, after clicking the button, data isnt posting to the
> server. When I attempt to debug the app, I cant even access the
code
> within the event. Any ideas ?
>
> Nick
>
> ps: I`ve tried adding another button and the same occurs.
> pps: I`m able to step thru the code for other events ... what
gives ?
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
Joined: 26 Dec 2004
Posts: 12
Button Event Not Firing
Nick,
Post all your code. HTML (button) and CollectData().
Mark
Nick <nicholaschanburnlake@...> wrote:
Thanks Mark.
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
CollectData()
End Sub
--- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
<meckeard2000@y...> wrote:
> Nick,
>
> Post your code so we can see it.
>
> Mark
>
> Nick <nicholaschanburnlake@y...> wrote:
>
> Hi All,
>
> I have a registration page with a command button at the bottom.
For
> some reason, after clicking the button, data isnt posting to the
> server. When I attempt to debug the app, I cant even access the
code
> within the event. Any ideas ?
>
> Nick
>
> ps: I`ve tried adding another button and the same occurs.
> pps: I`m able to step thru the code for other events ... what
gives ?
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Joined: 05 Jan 2005
Posts: 4
Button Event Not Firing
Nick,
enable view state for the button explicitly or turn off smart navigation in
the page directive to false.
Hope this helps
Mark E <meckeard2000@...> wrote:
Nick,
Post all your code. HTML (button) and CollectData().
Mark
Nick <nicholaschanburnlake@...> wrote:
Thanks Mark.
Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
CollectData()
End Sub
--- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
<meckeard2000@y...> wrote:
> Nick,
>
> Post your code so we can see it.
>
> Mark
>
> Nick <nicholaschanburnlake@y...> wrote:
>
> Hi All,
>
> I have a registration page with a command button at the bottom.
For
> some reason, after clicking the button, data isnt posting to the
> server. When I attempt to debug the app, I cant even access the
code
> within the event. Any ideas ?
>
> Nick
>
> ps: I`ve tried adding another button and the same occurs.
> pps: I`m able to step thru the code for other events ... what
gives ?
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
[Non-text portions of this message have been removed]
Joined: 07 Jan 2005
Posts: 10
Button Event Not Firing
Hi Mark,
Ok, I`ve pasted the HTML for the button and the code behind.
I wont paste everything because there`s alot ...... ;-)
Thanks for your help.
Nick
Source Code .........
Private Sub CollectData()
Dim oUser As New dataobjects.clsUser
Dim oStorage As New dataobjects.clsStorage
Dim rowsAffected As Int16 = 0
Dim s As String = ""
Dim paymentType As Int16
Try
With oUser
paymentType = IIf(IsNumeric
(Me.ddlPaymentType.SelectedValue), Me.ddlPaymentType.SelectedValue,
0)
.FirstName = Me.txtFirstName.Text
.SetAddress(Me.txtAddress.Text,
Me.ddlProvince.SelectedValue, Me.txtCity.Text, Me.txtPostalCode.Text)
.Email = Me.txtEmail.Text
.UserName = Me.txtUserName.Text
.Password = Me.txtPassword.Text
.PaymentType = paymentType
If ((paymentType = 1) Or (paymentType = 2)) Then
.SetCreditCard(Me.txtCreditCardNumber.Text,
paymentType)
Else
.SetCreditCard("000", paymentType)
End If
End With
rowsAffected = oStorage.StoreUser(oUser)
If rowsAffected > 0 Then
s = "Successfully added " & Me.txtFirstName.Text
Else
s = Me.txtFirstName.Text & " was not added because "
s += Me.txtUserName.Text & " already exists."
End If
Catch ex As System.Data.SqlClient.SqlException
s = "SQL Exception"
Catch ex As Exception
s = "General Exception."
Finally
Me.lblSuccess.Text = s
Me.DisplayResults(True)
Me.EnableSubmitButton(False)
End Try
End Sub
HTML
<asp:button id="btnSubmit" Runat="server" Text="Submit">
</asp:button><br>
--- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
<meckeard2000@y...> wrote:
> Nick,
>
> Post all your code. HTML (button) and CollectData().
>
> Mark
>
> Nick <nicholaschanburnlake@y...> wrote:
>
> Thanks Mark.
>
> Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles btnSubmit.Click
> CollectData()
> End Sub
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
> <meckeard2000@y...> wrote:
> > Nick,
> >
> > Post your code so we can see it.
> >
> > Mark
> >
> > Nick <nicholaschanburnlake@y...> wrote:
> >
> > Hi All,
> >
> > I have a registration page with a command button at the bottom.
> For
> > some reason, after clicking the button, data isnt posting to the
> > server. When I attempt to debug the app, I cant even access the
> code
> > within the event. Any ideas ?
> >
> > Nick
> >
> > ps: I`ve tried adding another button and the same occurs.
> > pps: I`m able to step thru the code for other events ... what
> gives ?
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
> >
> > To unsubscribe from this group, send an email to:
> > AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >
> >
> >
> > [Non-text portions of this message have been removed]
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
Joined: 07 Jan 2005
Posts: 10
Button Event Not Firing
Thanks for your suggestion Pradeep.
Unfortunately, it hasnt changed anything ......
--- In AspNetAnyQuestionIsOk@yahoogroups.com, pradeep yanamandra
<pradeep_yanamandra@y...> wrote:
> Nick,
> enable view state for the button explicitly or turn off smart
navigation in the page directive to false.
>
> Hope this helps
>
>
> Mark E <meckeard2000@y...> wrote:
> Nick,
>
> Post all your code. HTML (button) and CollectData().
>
> Mark
>
> Nick <nicholaschanburnlake@y...> wrote:
>
> Thanks Mark.
>
> Private Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
> System.EventArgs) Handles btnSubmit.Click
> CollectData()
> End Sub
>
> --- In AspNetAnyQuestionIsOk@yahoogroups.com, Mark E
> <meckeard2000@y...> wrote:
> > Nick,
> >
> > Post your code so we can see it.
> >
> > Mark
> >
> > Nick <nicholaschanburnlake@y...> wrote:
> >
> > Hi All,
> >
> > I have a registration page with a command button at the bottom.
> For
> > some reason, after clicking the button, data isnt posting to the
> > server. When I attempt to debug the app, I cant even access the
> code
> > within the event. Any ideas ?
> >
> > Nick
> >
> > ps: I`ve tried adding another button and the same occurs.
> > pps: I`m able to step thru the code for other events ... what
> gives ?
> >
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
> >
> > To unsubscribe from this group, send an email to:
> > AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >
> >
> >
> > [Non-text portions of this message have been removed]
>
>
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
> Yahoo! Groups SponsorADVERTISEMENT
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> ---------------------------------
> Do you Yahoo!?
> All your favorites on one personal page – Try My Yahoo!
>
> [Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







