Click here to Skip to main content
16,009,847 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalproblem in sending mail Pin
Murtuza Husain Miyan Patel28-May-05 20:47
professionalMurtuza Husain Miyan Patel28-May-05 20:47 
GeneralSave file on Server Pin
Anonymous28-May-05 18:34
Anonymous28-May-05 18:34 
GeneralRe: Save file on Server Pin
Mekong River28-May-05 19:48
Mekong River28-May-05 19:48 
GeneralDeployment Pin
Binary011028-May-05 6:53
Binary011028-May-05 6:53 
GeneralRe: Deployment Pin
Christian Graus28-May-05 11:54
protectorChristian Graus28-May-05 11:54 
GeneralRe: Deployment Pin
rwestgraham28-May-05 16:20
rwestgraham28-May-05 16:20 
GeneralRe: Deployment Pin
Binary011029-May-05 21:28
Binary011029-May-05 21:28 
GeneralObject reference not set to an instance of an object. Pin
Manik Nath28-May-05 3:43
Manik Nath28-May-05 3:43 
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:46
Colin Angus Mackay28-May-05 6:46 
QuestionAnyone know how to set the listview forecolor and backgroundcolor? Pin
Member 193588028-May-05 3:24
Member 193588028-May-05 3:24 
AnswerRe: Anyone know how to set the listview forecolor and backgroundcolor? Pin
Andy Davies29-May-05 5:17
Andy Davies29-May-05 5:17 
GeneralImage from Mpeg Pin
Anonymous28-May-05 0:55
Anonymous28-May-05 0:55 
Generalcopy files like windows Pin
Cool_zat27-May-05 22:58
Cool_zat27-May-05 22:58 
GeneralRe: copy files like windows Pin
Christian Graus28-May-05 1:00
protectorChristian Graus28-May-05 1:00 
GeneralRestrict Textbox with specified Language Pin
Anonymous27-May-05 21:37
Anonymous27-May-05 21:37 
GeneralRetriveing Image Pin
pmathur127-May-05 21:17
susspmathur127-May-05 21:17 
GeneralRe: Retriveing Image Pin
Christian Graus28-May-05 1:01
protectorChristian Graus28-May-05 1:01 
GeneralRe: Retriveing Image Pin
Mekong River28-May-05 19:39
Mekong River28-May-05 19:39 
Generalerror in mail program Pin
Murtuza Husain Miyan Patel27-May-05 20:45
professionalMurtuza Husain Miyan Patel27-May-05 20:45 
GeneralRe: error in mail program Pin
Fernando Soto28-May-05 6:46
Fernando Soto28-May-05 6:46 
GeneralRe: error in mail program Pin
Murtuza Husain Miyan Patel28-May-05 20:52
professionalMurtuza Husain Miyan Patel28-May-05 20:52 
Generalvalidating numbers in a textbox Pin
Binary011027-May-05 17:06
Binary011027-May-05 17:06 
GeneralRe: validating numbers in a textbox Pin
S. Senthil Kumar27-May-05 21:17
S. Senthil Kumar27-May-05 21:17 
GeneralRe: validating numbers in a textbox Pin
Christian Graus28-May-05 1:03
protectorChristian Graus28-May-05 1:03 
GeneralRe: validating numbers in a textbox Pin
Binary011028-May-05 6:16
Binary011028-May-05 6:16 

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.