Click here to Skip to main content
15,911,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Listbox Control giving NULL reference exception Pin
Kannan Ar14-Jul-09 6:14
professionalKannan Ar14-Jul-09 6:14 
GeneralRe: Listbox Control giving NULL reference exception Pin
DoctorMick14-Jul-09 6:19
DoctorMick14-Jul-09 6:19 
GeneralRe: Listbox Control giving NULL reference exception Pin
PDTUM14-Jul-09 6:32
PDTUM14-Jul-09 6:32 
GeneralRe: Listbox Control giving NULL reference exception Pin
PDTUM14-Jul-09 6:22
PDTUM14-Jul-09 6:22 
QuestionI have a problem with ajax pro dll Pin
manikandaprasad14-Jul-09 2:49
manikandaprasad14-Jul-09 2:49 
AnswerRe: I have a problem with ajax pro dll Pin
Christian Graus14-Jul-09 5:17
protectorChristian Graus14-Jul-09 5:17 
AnswerRe: I have a problem with ajax pro dll Pin
Not Active14-Jul-09 5:43
mentorNot Active14-Jul-09 5:43 
QuestionHelp Related to database Pin
KhandelwalA14-Jul-09 1:40
KhandelwalA14-Jul-09 1:40 
Hiiiiiiii..........I am creating n number of text dynamically,and saving them in database and heading for all these text boxes is already saved in db and i m updating data of textbox in same database wid respective heading............but when i m going to save it updates last value to all fields. for e.g. if i m wrote ONE in last textbox then that value will be updated in all columns. My code is :
Dim id As Integer = Request.QueryString("ui")
        Panel2.Visible = True
        Panel4.Visible = True
        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.Text = rdr2.Item("Specification")
            Dim cmd3 As String = "Insert into Specification(ProductName,SpecificationHeading)Values('" + txtProductName.Text + "','" + lbl.Text + "')"
            Dim dbcmd1 As DbCommand = db.GetSqlStringCommand(cmd3)
            db.ExecuteNonQuery(dbcmd1)
            For i As Integer = 0 To count
                Dim txtCtrl As TextBox = DirectCast(Panel4.FindControl("txt" & (i + 1)), TextBox)
                If txtCtrl IsNot Nothing Then
                    TextBox1.Text = txtCtrl.Text
                    Dim cmd4 As String = "Update Specification set SpecificationDescription='" + TextBox1.Text + "' where ProductName='" + txtProductName.Text + "' AND SpecificationHeading='" + lbl.Text + "'"
                    Dim dbcmd As DbCommand = db.GetSqlStringCommand(cmd4)
                    db.ExecuteNonQuery(dbcmd)
                End If
            Next
        End While

AnswerRe: Help Related to database Pin
Christian Graus14-Jul-09 2:31
protectorChristian Graus14-Jul-09 2:31 
AnswerRe: Help Related to database Pin
Abhijit Jana14-Jul-09 2:33
professionalAbhijit Jana14-Jul-09 2:33 
QuestionProblem forming .msi file in Visual Studio 2005 Pin
Anujit14-Jul-09 1:20
Anujit14-Jul-09 1:20 
AnswerRe: Problem forming .msi file in Visual Studio 2005 Pin
Vimalsoft(Pty) Ltd14-Jul-09 2:00
professionalVimalsoft(Pty) Ltd14-Jul-09 2:00 
AnswerRe: Problem forming .msi file in Visual Studio 2005 Pin
Abhijit Jana14-Jul-09 2:25
professionalAbhijit Jana14-Jul-09 2:25 
Questionback up sql data programmetically Pin
billcodes14-Jul-09 0:44
billcodes14-Jul-09 0:44 
AnswerRe: back up sql data programmetically Pin
Manas Bhardwaj14-Jul-09 0:48
professionalManas Bhardwaj14-Jul-09 0:48 
AnswerRe: back up sql data programmetically Pin
r a m e s h14-Jul-09 0:51
r a m e s h14-Jul-09 0:51 
AnswerRe: back up sql data programmetically Pin
Sabari MD14-Jul-09 0:52
Sabari MD14-Jul-09 0:52 
AnswerRe: back up sql data programmetically Pin
Vimalsoft(Pty) Ltd14-Jul-09 2:28
professionalVimalsoft(Pty) Ltd14-Jul-09 2:28 
QuestionDynamically radiobuttons? Pin
Priya Prk14-Jul-09 0:18
Priya Prk14-Jul-09 0:18 
AnswerRe: Dynamically radiobuttons? Pin
s.crosby14-Jul-09 0:35
s.crosby14-Jul-09 0:35 
AnswerRe: Dynamically radiobuttons? Pin
Muhammad Mazhar14-Jul-09 0:41
Muhammad Mazhar14-Jul-09 0:41 
AnswerRe: Dynamically radiobuttons? Pin
Sabari MD14-Jul-09 0:51
Sabari MD14-Jul-09 0:51 
Questionadd custom function to built-in function list in InfoPath Pin
JimmyRopes14-Jul-09 0:12
professionalJimmyRopes14-Jul-09 0:12 
QuestionReload Frames Pin
yesu prakash14-Jul-09 0:02
yesu prakash14-Jul-09 0:02 
AnswerRe: Reload Frames Pin
Baran M14-Jul-09 1:20
Baran M14-Jul-09 1:20 

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.