C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Object reference not set to an instance of an object. - urgent pls


Posted Date: 02 Mar 2007      Total Responses: 0

Posted By: Rajeswari       Member Level: Silver     Points: 2


In GridView's EditMode , when the value of date field is edited using calendar control the following error is thrown

Object reference not set to an instance of an object.

The code used is

Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged

Dim GridView1 As New GridView
Dim TextBox6 As New TextBox

If Label2.Text = "reg_date" Then
CType(GridView1.FindControl("TextBox6"), TextBox).Text = Calendar1.SelectedDate.ToShortDateString()
Calendar1.Visible = False
End if
End Sub




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Post Reply
You must Sign In to post a response.
Next : Whats the easiest way of converting 24 hour time to 12 hour time in a date?
Previous : Object reference not set to an instance of an object. - urgent pls
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use