Click here to Skip to main content
15,905,322 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: User Configerable Work Flow Pin
sashidhar8-Sep-09 23:54
sashidhar8-Sep-09 23:54 
GeneralRe: User Configerable Work Flow Pin
darpan4all9-Sep-09 23:00
darpan4all9-Sep-09 23:00 
Questiontreeview Pin
Member 26575538-Sep-09 22:17
Member 26575538-Sep-09 22:17 
AnswerRe: treeview Pin
Christian Graus8-Sep-09 22:29
protectorChristian Graus8-Sep-09 22:29 
AnswerRe: treeview Pin
Manas Bhardwaj8-Sep-09 22:38
professionalManas Bhardwaj8-Sep-09 22:38 
QuestionHow to Put a music player or audio player in asp.net web application Pin
dwadasi8-Sep-09 21:36
dwadasi8-Sep-09 21:36 
AnswerRe: How to Put a music player or audio player in asp.net web application Pin
Abhijit Jana8-Sep-09 21:55
professionalAbhijit Jana8-Sep-09 21:55 
Questiondynamic eventhandler Pin
mylogics8-Sep-09 21:35
professionalmylogics8-Sep-09 21:35 
hii
i have generated dynamic labels and textbox based on
the no.of rows in my table Specification.
the table contains columns:
ProductID,Specification,Value.
ProductID and Specification columns are already filled before.
i have to enter thier values on button click.
For these i have generated the respective labels and textbox
dynamically.also i have generated a button dynamically.
now on click event of this button i want that the values entered
in the textbox get submitted in the respective rows of value column in Specification table.I a have used the followin coding.plz guide
how cud i submit the values on the button click.code is:
protected void LinkButton2_Click(object sender, EventArgs e)
    {
        OleDbDataReader dr = null;
        string str = "Select * From ProductSpecification";
        OleDbCommand cmd = new OleDbCommand(str, conn);
        conn.Open();
        dr = cmd.ExecuteReader();
        for (int i = 1; i < dr.VisibleFieldCount; i++)
        {
            while (dr.Read())
            {
                Label lbl = new Label();
                String getlbl = dr["Specification"].ToString();
                lbl.ID = "lbl" + getlbl;
                lbl.Width=50;
                Panel2.Controls.Add(lbl);
                lbl.Text = getlbl;
                TextBox txt = new TextBox();
                string gettxt = dr["Specification"].ToString();
                txt.ID = "txt" + gettxt;
                Panel2.Controls.Add(txt);
                //Button b = new Button();
                //string getbutton=dr["Specification"].ToString();
                //b.ID = "btn" + getbutton;
                //b.Text = "Add";
                //Panel2.Controls.Add(b);
                Panel2.Controls.Add(new LiteralControl("<br>"));
            }
        }
        conn.Close();
        Button b = new Button();
        b.Text = "AddValues";
        b.Click += new EventHandler(btnadd_Click); //new EventHandler(btnadd_Click);
        Panel2.Controls.Add(b);
    }


thanks.....
AnswerRe: dynamic eventhandler Pin
Abhijit Jana8-Sep-09 21:52
professionalAbhijit Jana8-Sep-09 21:52 
GeneralRe: dynamic eventhandler Pin
mylogics8-Sep-09 21:56
professionalmylogics8-Sep-09 21:56 
GeneralRe: dynamic eventhandler Pin
Abhishek Sur8-Sep-09 22:03
professionalAbhishek Sur8-Sep-09 22:03 
GeneralRe: dynamic eventhandler Pin
Abhijit Jana8-Sep-09 22:03
professionalAbhijit Jana8-Sep-09 22:03 
GeneralRe: dynamic eventhandler Pin
mylogics8-Sep-09 22:13
professionalmylogics8-Sep-09 22:13 
GeneralRe: dynamic eventhandler Pin
Christian Graus8-Sep-09 22:30
protectorChristian Graus8-Sep-09 22:30 
GeneralRe: dynamic eventhandler Pin
sashidhar8-Sep-09 23:02
sashidhar8-Sep-09 23:02 
GeneralRe: dynamic eventhandler Pin
Christian Graus8-Sep-09 23:05
protectorChristian Graus8-Sep-09 23:05 
GeneralRe: dynamic eventhandler Pin
sashidhar8-Sep-09 23:08
sashidhar8-Sep-09 23:08 
GeneralRe: dynamic eventhandler Pin
Christian Graus8-Sep-09 23:10
protectorChristian Graus8-Sep-09 23:10 
Question[Message Deleted] Pin
sekannak8-Sep-09 20:50
sekannak8-Sep-09 20:50 
AnswerRe: Abstact Class Pin
Arun Jacob8-Sep-09 20:54
Arun Jacob8-Sep-09 20:54 
AnswerRe: Abstact Class Pin
Abhijit Jana8-Sep-09 20:56
professionalAbhijit Jana8-Sep-09 20:56 
AnswerRe: Abstact Class Pin
Christian Graus8-Sep-09 21:02
protectorChristian Graus8-Sep-09 21:02 
JokeRe: Abstact Class Pin
Abhijit Jana8-Sep-09 21:10
professionalAbhijit Jana8-Sep-09 21:10 
JokeRe: Abstact Class Pin
nagendrathecoder8-Sep-09 21:15
nagendrathecoder8-Sep-09 21:15 
GeneralRe: Abstact Class Pin
Abhijit Jana8-Sep-09 21:48
professionalAbhijit Jana8-Sep-09 21:48 

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.