-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: prakash-raj
Message 3 in Discussion

hi yogesh   can u help me out   Error Produced as   Object reference not set to 
an instance of an object.   Line 830:           btn = 
e.Item.Cells(9).Controls(0)
Line 831:               'If not btn is DBNull Then
Line 832:                       btn.Attributes.Add("onclick", "return 
funValidate(" + txtTest.ClientID + ");")
Line 833:               'End IF
   for the following code     Sub dgd_userlogsession_ItemBound(Sender As 
Object, e As DataGridItemEventArgs)
 If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = 
ListItemType.AlternatingItem then
       Dim txtTest as TextBox
      dim btn as LinkButton
      txtTest = e.Item.FindControl("txtdgddate")
      btn = e.Item.Cells(9).Controls(0)
      'If not btn is DBNull Then
              btn.Attributes.Add("onclick", "return funValidate(" + 
txtTest.ClientID + ");")
       'End IF
 Else If(e.Item.ItemType = ListItemType.Footer) 
       e.Item.HorizontalAlign = HorizontalAlign.right
       e.Item.Cells(7).Text = Tmin
 End if
End Sub         can u help me out.   Regards Prakash.S

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to