|
-
Oct 11th, 2005, 05:05 AM
#1
Thread Starter
Frenzied Member
Data not loading into database when I do FieldValidation
Hi,
Does anyne have any idea why my data wont load into database without any error when I include the objects from the Toolbox (RegularFieldValidations & CompareValidations).
The data was loading fine until I added them.
thanks
-
Oct 11th, 2005, 08:44 AM
#2
Re: Data not loading into database when I do FieldValidation
How are you loading your data, and how did you fit those two objects into the process?
-
Oct 11th, 2005, 04:05 PM
#3
Thread Starter
Frenzied Member
Re: Data not loading into database when I do FieldValidation
Well Hack,
I found why the data is not going into the database but I dont know why. When I as for ISPostback and page.Isvalid no data is loaded.
:
Is it essential to ask for Postback or not.?? This is part of my submit button. To put it all clear Im asking for IsPostback also on Page load..
Can u please explain to me if you know the meaning of the qouted lines
VB Code:
'Try
' If Not (IsPostBack) And Page.IsValid Then
myCommand.Connection.Open()
myCommand.ExecuteNonQuery()
MyConn.Close()
MyConn = Nothing
' End If
'Catch er As Exception
' lblMessage.Text = er.Message.ToString
'End Try
Thanks
-
Oct 11th, 2005, 04:26 PM
#4
Re: Data not loading into database when I do FieldValidation
Not (IsPostBack) And Page.IsValid
Makes the code within execute ONLY the first time the page is loaded.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
-
Oct 11th, 2005, 04:58 PM
#5
Thread Starter
Frenzied Member
Re: Data not loading into database when I do FieldValidation
ok, Lord Rat it works fine now thanks.
do you know anything about email sending on the thread Ive jsut posted above. thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|