Click here to Skip to main content
15,913,944 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralAccessing Phone Functionality Pin
redlucky8830-May-05 20:22
redlucky8830-May-05 20:22 
GeneralConnecting to an External Access database Pin
Jag_K30-May-05 5:07
Jag_K30-May-05 5:07 
GeneralRe: Connecting to an External Access database Pin
KevinMac30-May-05 6:55
KevinMac30-May-05 6:55 
QuestionHow to create a customized component? Pin
luckyeagle29-May-05 3:22
luckyeagle29-May-05 3:22 
AnswerRe: How to create a customized component? Pin
DavidNohejl29-May-05 3:49
DavidNohejl29-May-05 3:49 
GeneralDeployment Pin
Binary011028-May-05 6:50
Binary011028-May-05 6:50 
GeneralRe: Deployment Pin
MoustafaS31-May-05 12:41
MoustafaS31-May-05 12:41 
GeneralObject reference not set to an instance of an object. Pin
Manik Nath28-May-05 3:52
Manik Nath28-May-05 3:52 
hi friends,
i'm using vb.net for devloping a web application. my code shows nothing wrong. but when i click a button to add the entries this error is being shown. my other applications are also developed in the same manner but they do not show error. the only difference in this application is that i'm tring to enter data into database from text property of a label. can this be a cause. i'm unable to figure out please help me.


Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 198: If DropDownList1.SelectedItem.Text = "Not Available" Then
Line 199: insert = "INSERT INTO Transmittal(Project_Name, Username, [Date], [To], Kind_Attn, Title, Drw_Doc_Num, Copies, Rev_Num, Action)" + "VALUES ('" + TextBox7.Text + "', '" + Label10.Text + "', '" + Label17.Text + "', '" + TextBox1.Text + "', '" + TextBox2.Text + "', '" + TextBox10.Text + "', '" + TextBox11.Text + "', '" + TextBox8.Text + "', '" + TextBox5.Text + "', '" + TextBox6.Text + "' )"
Line 200: OleDbDataAdapter1.InsertCommand.CommandText = (insert)
Line 201: OleDbDataAdapter1.InsertCommand.ExecuteNonQuery()
Line 202: OleDbConnection1.Close()


Source File: C:\Inetpub\wwwroot\OM\trans.aspx.vb Line: 200

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
OM.trans.Button4_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\OM\trans.aspx.vb:200
System.Web.UI.WebControls.Button.onclick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263

GeneralRe: Object reference not set to an instance of an object. Pin
Colin Angus Mackay28-May-05 6:45
Colin Angus Mackay28-May-05 6:45 
QuestionAnyone know how to set the listview forecolor and backgroundcolor? Pin
Member 193588028-May-05 3:25
Member 193588028-May-05 3:25 
AnswerRe: Anyone know how to set the listview forecolor and backgroundcolor? Pin
John Arlen13-Jun-05 0:38
John Arlen13-Jun-05 0:38 
QuestionShould I use DataGrid and how to eliminate first column? Pin
asm12327-May-05 10:48
asm12327-May-05 10:48 
AnswerRe: Should I use DataGrid and how to eliminate first column? Pin
Robert Rohde28-May-05 4:46
Robert Rohde28-May-05 4:46 
QuestionWhat makes a control a container? Pin
John Hind27-May-05 2:42
John Hind27-May-05 2:42 
AnswerRe: What makes a control a container? Pin
Carl Mercier27-May-05 5:37
Carl Mercier27-May-05 5:37 
GeneralRe: What makes a control a container? Pin
Anonymous27-May-05 6:47
Anonymous27-May-05 6:47 
GeneralGarbage Collection Pin
Servietsky26-May-05 19:01
Servietsky26-May-05 19:01 
GeneralRe: Garbage Collection Pin
S. Senthil Kumar26-May-05 20:30
S. Senthil Kumar26-May-05 20:30 
GeneralWebservices for database - opinion Pin
Kaushik DIA26-May-05 8:15
Kaushik DIA26-May-05 8:15 
QuestionHow to programmatically apply some policy to user/group? Pin
mmsspp25-May-05 20:13
mmsspp25-May-05 20:13 
GeneralDataAdapter and muliple tables Pin
Luke Murray25-May-05 16:54
Luke Murray25-May-05 16:54 
GeneralRe: DataAdapter and muliple tables Pin
Robert Rohde28-May-05 4:57
Robert Rohde28-May-05 4:57 
GeneralArray handling Pin
sarabjs25-May-05 9:58
sarabjs25-May-05 9:58 
GeneralRe: Array handling Pin
Scott Page25-May-05 15:26
professionalScott Page25-May-05 15:26 
GeneralRe: Array handling Pin
sarabjs26-May-05 6:04
sarabjs26-May-05 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.