Click here to Skip to main content
15,901,373 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFLV Pin
geeeeeeeetha9-Sep-09 20:33
geeeeeeeetha9-Sep-09 20:33 
AnswerRe: FLV Pin
Ravi Mori9-Sep-09 20:45
Ravi Mori9-Sep-09 20:45 
QuestionDate Format In XML in converting excel file in a folder Pin
rummer9-Sep-09 20:09
rummer9-Sep-09 20:09 
AnswerRe: Date Format In XML in converting excel file in a folder Pin
Parwej Ahamad9-Sep-09 21:00
professionalParwej Ahamad9-Sep-09 21:00 
AnswerRe: Date Format In XML in converting excel file in a folder Pin
keyur satyadev9-Sep-09 23:19
keyur satyadev9-Sep-09 23:19 
Questionquery Pin
mylogics9-Sep-09 19:24
professionalmylogics9-Sep-09 19:24 
AnswerRe: query Pin
Suresh Suthar9-Sep-09 20:07
professionalSuresh Suthar9-Sep-09 20:07 
GeneralRe: query Pin
mylogics9-Sep-09 20:14
professionalmylogics9-Sep-09 20:14 
hiii now i have changed my code to:
protected void Button2_Click(object sender, EventArgs e)
    {
        OleDbDataReader dr = null;
        string str = "Select Count(Specification)From ProductSpecification";
        OleDbCommand cmd = new OleDbCommand(str, conn);
        conn.Open();
        string Count = cmd.ExecuteScalar().ToString();
        int count = Convert.ToInt32(Count);
        conn.Close();
    
        for (int i = 0; i <= Convert.ToInt32(Count) - 1; i++)
        {
            TextBox txtCtrl = (TextBox)Panel2.FindControl("txt" + (i + 1));
            Label lblctrl = (Label)Panel2.FindControl("lbl" + (i + 1));
            if (txtCtrl != null) 
            {
                string s = txtCtrl.Text;
                string s2 = lblctrl.Text;
                string s1 = "Update ProductSpecification Set Value='"+s+"'Where Specification='"+s2+"'";
                cmd = new OleDbCommand(s1, conn);
                conn.Open();
                cmd.ExecuteNonQuery();
                conn.Close();
                //TextBox1.Text = TextBox1.Text + "," + txtCtrl.Text;
            }
        }

    }

but it is givin error:
Syntax error in UPDATE statement.
plz help...
GeneralRe: query Pin
Suresh Suthar9-Sep-09 20:22
professionalSuresh Suthar9-Sep-09 20:22 
GeneralRe: query Pin
mylogics9-Sep-09 20:28
professionalmylogics9-Sep-09 20:28 
GeneralRe: query Pin
Suresh Suthar9-Sep-09 20:46
professionalSuresh Suthar9-Sep-09 20:46 
GeneralRe: query Pin
rummer9-Sep-09 20:16
rummer9-Sep-09 20:16 
GeneralRe: query Pin
Suresh Suthar9-Sep-09 20:24
professionalSuresh Suthar9-Sep-09 20:24 
GeneralRe: query Pin
Christian Graus9-Sep-09 21:29
protectorChristian Graus9-Sep-09 21:29 
AnswerRe: query Pin
Christian Graus9-Sep-09 21:27
protectorChristian Graus9-Sep-09 21:27 
Questionjava TAPI is connecting to ASP.Net Application Pin
kareemmahammed9-Sep-09 18:57
kareemmahammed9-Sep-09 18:57 
AnswerRe: java TAPI is connecting to ASP.Net Application Pin
Christian Graus9-Sep-09 19:02
protectorChristian Graus9-Sep-09 19:02 
QuestionDropdownlist select only first value Pin
haleemasher9-Sep-09 18:54
haleemasher9-Sep-09 18:54 
AnswerRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 18:59
protectorChristian Graus9-Sep-09 18:59 
GeneralRe: Dropdownlist select only first value Pin
haleemasher9-Sep-09 19:07
haleemasher9-Sep-09 19:07 
GeneralRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 19:08
protectorChristian Graus9-Sep-09 19:08 
GeneralRe: Dropdownlist select only first value Pin
N a v a n e e t h9-Sep-09 19:12
N a v a n e e t h9-Sep-09 19:12 
GeneralRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 19:16
protectorChristian Graus9-Sep-09 19:16 
GeneralRe: Dropdownlist select only first value Pin
Arun Jacob9-Sep-09 23:21
Arun Jacob9-Sep-09 23:21 
QuestionDB Exception Error converting data type varchar to numeric Pin
haleemasher9-Sep-09 18:12
haleemasher9-Sep-09 18:12 

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.