Click here to Skip to main content
15,895,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Session Problem Pin
dev sheoran6-Jul-09 20:55
dev sheoran6-Jul-09 20:55 
Questionhow to stop postback of asp button which is havin client side and serverside events.... Pin
tanvi15086-Jul-09 1:40
tanvi15086-Jul-09 1:40 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Manas Bhardwaj6-Jul-09 1:48
professionalManas Bhardwaj6-Jul-09 1:48 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Vimalsoft(Pty) Ltd6-Jul-09 1:49
professionalVimalsoft(Pty) Ltd6-Jul-09 1:49 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
dan!sh 6-Jul-09 2:11
professional dan!sh 6-Jul-09 2:11 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
Christian Graus6-Jul-09 2:13
protectorChristian Graus6-Jul-09 2:13 
AnswerRe: how to stop postback of asp button which is havin client side and serverside events.... Pin
satigar1238-Jul-09 8:05
satigar1238-Jul-09 8:05 
QuestionWhy this error always comes Pin
KhandelwalA6-Jul-09 1:36
KhandelwalA6-Jul-09 1:36 
I am using this code to find the value of dynamically created controls

Dim cmd2 As String = ("Select Specification from DefineSpecification where CategoryID=" + id.ToString())
        Dim rdr2 As IDataReader = db.ExecuteReader(CommandType.Text, cmd2)
        Dim conn As New SqlConnection
        Dim cmd As New SqlCommand("Select Count(*) from DefineSpecification Where CategoryID=" + id.ToString(), conn)
        conn.ConnectionString = ConfigurationManager.ConnectionStrings("See2Buy").ConnectionString
        conn.Open()
        Dim count As Int32 = Convert.ToInt32(cmd.ExecuteScalar())
        While rdr2.Read
            Dim lbl = New Label()
            lbl.Width = "140"
            lbl.Text = rdr2.Item("Specification")
            For counter2 As Integer = 0 To count - count
                Dim txtbox As TextBox = DirectCast(Panel4.FindControl("TextBoxID1"), TextBox)
                Dim cmd3 As String = "Insert into Specification(CategoryID,ProductName,SpecificationHeading,SpecificationDescription)Values(" & id & ",'" + txtProductName.Text + "','" + lbl.Text + "','" + txtbox.Text + "')"
                Dim dbcmd3 As DbCommand = db.GetSqlStringCommand(cmd3)
                db.ExecuteNonQuery(dbcmd3)
            Next
        End While



The error is :Object reference not set to an instance of an object.
AnswerRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 1:46
professionalManas Bhardwaj6-Jul-09 1:46 
AnswerRe: Why this error always comes Pin
Christian Graus6-Jul-09 2:14
protectorChristian Graus6-Jul-09 2:14 
GeneralRe: Why this error always comes Pin
Manas Bhardwaj6-Jul-09 3:05
professionalManas Bhardwaj6-Jul-09 3:05 
QuestionOpen and save file from SQL Database Pin
Difink6-Jul-09 1:31
Difink6-Jul-09 1:31 
AnswerRe: Open and save file from SQL Database Pin
Manas Bhardwaj6-Jul-09 1:56
professionalManas Bhardwaj6-Jul-09 1:56 
GeneralRe: Open and save file from SQL Database Pin
Difink6-Jul-09 2:13
Difink6-Jul-09 2:13 
GeneralRe: Open and save file from SQL Database Pin
Christian Graus6-Jul-09 2:15
protectorChristian Graus6-Jul-09 2:15 
GeneralRe: Open and save file from SQL Database Pin
Difink6-Jul-09 2:25
Difink6-Jul-09 2:25 
QuestionFont error .....! [modified] Pin
RongNK6-Jul-09 0:40
RongNK6-Jul-09 0:40 
AnswerRe: Font error .....! Pin
Manas Bhardwaj6-Jul-09 1:22
professionalManas Bhardwaj6-Jul-09 1:22 
Questionin C# Asp.net How to send Email with images by using template approach Pin
prasadSn20036-Jul-09 0:31
prasadSn20036-Jul-09 0:31 
AnswerRe: in C# Asp.net How to send Email with images by using template approach Pin
Manas Bhardwaj6-Jul-09 0:37
professionalManas Bhardwaj6-Jul-09 0:37 
GeneralRe: in C# Asp.net How to send Email with images by using template approach Pin
prasadSn20036-Jul-09 0:42
prasadSn20036-Jul-09 0:42 
GeneralRe: in C# Asp.net How to send Email with images by using template approach Pin
prasadSn20037-Jul-09 3:21
prasadSn20037-Jul-09 3:21 
QuestionSave Data of TextBox those are Dynamically created Pin
KhandelwalA6-Jul-09 0:31
KhandelwalA6-Jul-09 0:31 
AnswerRe: Save Data of TextBox those are Dynamically created Pin
jaysaran6-Jul-09 1:29
jaysaran6-Jul-09 1:29 
AnswerRe: Save Data of TextBox those are Dynamically created Pin
Abhijit Jana6-Jul-09 9:34
professionalAbhijit Jana6-Jul-09 9:34 

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.