Click here to Skip to main content
15,921,837 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Very small problem - but i had stucked here Pin
Satish - Developer8-Jul-09 2:30
Satish - Developer8-Jul-09 2:30 
Question[Message Deleted] Pin
kishorgh8-Jul-09 1:19
kishorgh8-Jul-09 1:19 
AnswerRe: ajaxToolkit:AnimationExtender Pin
Spirits Soft Tech Nology , Dharmapuri8-Jul-09 2:06
Spirits Soft Tech Nology , Dharmapuri8-Jul-09 2:06 
GeneralIgnore spam Pin
Manas Bhardwaj8-Jul-09 2:19
professionalManas Bhardwaj8-Jul-09 2:19 
GeneralI have clicked "vote to remove message" Pin
Abhijit Jana8-Jul-09 2:28
professionalAbhijit Jana8-Jul-09 2:28 
GeneralRe: I have clicked "vote to remove message" Pin
kishorgh8-Jul-09 4:59
kishorgh8-Jul-09 4:59 
GeneralRe: I have clicked "vote to remove message" Pin
Abhijit Jana8-Jul-09 5:22
professionalAbhijit Jana8-Jul-09 5:22 
QuestionPanel Pin
KhandelwalA8-Jul-09 1:15
KhandelwalA8-Jul-09 1:15 
Hiiiii......i m adding n number of text boxes dynamically in a panel. but when i m going to save those values. it gives me error. My code and error is :

Dim id As Integer = Request.QueryString("ui")
        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")
            Panel4.Controls.Add(lbl)
            For counter2 As Integer = 0 To count
                Dim txt = New TextBox()
                txt.Width = "140"
                txt.ID = "TextBoxID" + counter2.ToString
                Panel4.Controls.Add(txt)
                Dim txt1 As TextBox = CType(Panel4.FindControl("TextBoxID" + counter2.ToString()), TextBox)
                Dim txt2 = CStr(txt1.Text)
                Dim cmd3 As String = "Insert into Specification(SpecificationHeading,SpecificationDescription)Values('" + lbl.Text + "','" + txt2 + "')"
                Dim dbcmd As DbCommand = db.GetSqlStringCommand(cmd3)
                db.ExecuteNonQuery(dbcmd)
            Next
        End While




Error is: Multiple controls with the same ID 'TextBoxID0' were found. FindControl requires that controls have unique IDs.
pleas guide me
AnswerRe: Panel Pin
padmanabhan N8-Jul-09 1:26
padmanabhan N8-Jul-09 1:26 
GeneralRe: Panel Pin
KhandelwalA8-Jul-09 1:29
KhandelwalA8-Jul-09 1:29 
AnswerRe: Panel Pin
himanshu25618-Jul-09 1:52
himanshu25618-Jul-09 1:52 
GeneralRe: Panel Pin
KhandelwalA8-Jul-09 2:03
KhandelwalA8-Jul-09 2:03 
GeneralRe: Panel Pin
KhandelwalA8-Jul-09 19:52
KhandelwalA8-Jul-09 19:52 
QuestionEmbed Excel sheet in web page Pin
samerh8-Jul-09 0:12
samerh8-Jul-09 0:12 
AnswerRe: Embed Excel sheet in web page Pin
Manas Bhardwaj8-Jul-09 0:45
professionalManas Bhardwaj8-Jul-09 0:45 
GeneralRe: Embed Excel sheet in web page Pin
padmanabhan N8-Jul-09 0:54
padmanabhan N8-Jul-09 0:54 
AnswerRe: Embed Excel sheet in web page Pin
Aman Bhullar8-Jul-09 0:56
Aman Bhullar8-Jul-09 0:56 
Questionhidden column Pin
vikas shukla8-Jul-09 0:08
vikas shukla8-Jul-09 0:08 
AnswerRe: hidden column Pin
Abhijit Jana8-Jul-09 0:14
professionalAbhijit Jana8-Jul-09 0:14 
AnswerRe: hidden column Pin
Zafar A khan 8-Jul-09 0:22
professionalZafar A khan 8-Jul-09 0:22 
AnswerRe: hidden column Pin
padmanabhan N8-Jul-09 0:22
padmanabhan N8-Jul-09 0:22 
AnswerRe: hidden column Pin
Gamzun8-Jul-09 2:08
Gamzun8-Jul-09 2:08 
Questionupdateable editable Gridview Pin
dotnetcsharpdev7-Jul-09 23:50
dotnetcsharpdev7-Jul-09 23:50 
AnswerRe: updateable editable Gridview Pin
padmanabhan N8-Jul-09 1:01
padmanabhan N8-Jul-09 1:01 
GeneralRe: updateable editable Gridview Pin
dotnetcsharpdev8-Jul-09 1:08
dotnetcsharpdev8-Jul-09 1:08 

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.