Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 09, 2012 05:20 AM by afastars
Member
52 Points
221 Posts
Nov 04, 2012 12:19 PM|LINK
hi decker
i already implement that but still no luck so far, i provide you my code below
Protected Sub FPelajar_ModeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FPelajar.ModeChanged
Try
Select Case FPelajar.CurrentMode
Case FormViewMode.Edit
End Select
Catch ex As Exception
Response.Redirect("ErrorPage.aspx")
End Try
End Sub
All-Star
118619 Points
18779 Posts
Nov 05, 2012 12:31 AM|LINK
afastars afastars
Well……I still suggest that you shouldn't do that thing——don't worry about in the edit mode your connection is lost. Updated event will do everything fine.
Nov 06, 2012 04:26 AM|LINK
i already implement that..but still luck so far ...below is my code
Nov 06, 2012 04:28 AM|LINK
afastars hi decker i already implement that..but still luck so far ...below is my code
I see, I mean you in fact don't need to do this. Just remove this and let updated event handle that problem.
Nov 06, 2012 05:42 PM|LINK
thanks for reply
base on my testing, if i'm not do this, the user will got a lot's of connection error if the connection lost during the user click the button,
erm never mind i will try find the solution, i must implement it, if i got it, will share in this thread
Nov 09, 2012 05:15 AM|LINK
afastars erm never mind i will try find the solution, i must implement it, if i got it, will share in this thread
Hi,
We're also analyzing the problem……Not so easy to implement;)
Nov 09, 2012 05:20 AM|LINK
million thank you for that....
afastars
Member
52 Points
221 Posts
Re: Try Catch In FormView
Nov 04, 2012 12:19 PM|LINK
hi decker
i already implement that but still no luck so far, i provide you my code below
Protected Sub FPelajar_ModeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FPelajar.ModeChanged
Try
Select Case FPelajar.CurrentMode
Case FormViewMode.Edit
End Select
Catch ex As Exception
Response.Redirect("ErrorPage.aspx")
End Try
End Sub
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Try Catch In FormView
Nov 05, 2012 12:31 AM|LINK
Well……I still suggest that you shouldn't do that thing——don't worry about in the edit mode your connection is lost. Updated event will do everything fine.
afastars
Member
52 Points
221 Posts
Re: Try Catch In FormView
Nov 06, 2012 04:26 AM|LINK
hi decker
i already implement that..but still luck so far ...below is my code
Protected Sub FPelajar_ModeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FPelajar.ModeChanged
Try
Select Case FPelajar.CurrentMode
Case FormViewMode.Edit
End Select
Catch ex As Exception
Response.Redirect("ErrorPage.aspx")
End Try
End Sub
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Try Catch In FormView
Nov 06, 2012 04:28 AM|LINK
I see, I mean you in fact don't need to do this. Just remove this and let updated event handle that problem.
afastars
Member
52 Points
221 Posts
Re: Try Catch In FormView
Nov 06, 2012 05:42 PM|LINK
hi decker
thanks for reply
base on my testing, if i'm not do this, the user will got a lot's of connection error if the connection lost during the user click the button,
erm never mind i will try find the solution, i must implement it, if i got it, will share in this thread
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Try Catch In FormView
Nov 09, 2012 05:15 AM|LINK
Hi,
We're also analyzing the problem……Not so easy to implement;)
afastars
Member
52 Points
221 Posts
Re: Try Catch In FormView
Nov 09, 2012 05:20 AM|LINK
hi decker
million thank you for that....