Click here to Skip to main content
15,889,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDownload Formview/ Gridview as PDF in Asp.net Pin
SamRST17-Mar-10 19:55
SamRST17-Mar-10 19:55 
QuestionStretching A Background Image Using Style Builder in VS2005 Pin
DRAYKKO17-Mar-10 12:36
professionalDRAYKKO17-Mar-10 12:36 
QuestionManipulating Strings From datasets using SQL Datasource and asp:DataList Pin
Paul Unsworth17-Mar-10 6:35
Paul Unsworth17-Mar-10 6:35 
AnswerRe: Manipulating Strings From datasets using SQL Datasource and asp:DataList Pin
PunkIsNotDead17-Mar-10 10:35
PunkIsNotDead17-Mar-10 10:35 
GeneralRe: Manipulating Strings From datasets using SQL Datasource and asp:DataList Pin
Paul Unsworth17-Mar-10 22:23
Paul Unsworth17-Mar-10 22:23 
AnswerRe: Manipulating Strings From datasets using SQL Datasource and asp:DataList Pin
Paul Unsworth17-Mar-10 23:49
Paul Unsworth17-Mar-10 23:49 
Questionusing nested GridView to display unique data via ObjectDataSource _Selecting event Pin
Paul Schwotzer17-Mar-10 6:02
Paul Schwotzer17-Mar-10 6:02 
Questiondynamic textbox in repeater Pin
test-0917-Mar-10 2:31
test-0917-Mar-10 2:31 
string text1 = "";
    string text2 = "";


 private void insertfiles()
    {

        foreach (RepeaterItem item in Rptdescription.Items)
        {
            TextBox txt1 = (TextBox)item.FindControl("TextBox1");
            TextBox txt2 = (TextBox)item.FindControl("TextBox3");
            text1 += txt1.Text + "|";
            text2 += txt2.Text + "|";
       }
                    
        foreach (string split2 in text2.Split('|'))
        {
            stringList.Add(split2 + "<br/>");
            SqlConnection SqlCnn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]);
            SqlCommand SqlCmd = new SqlCommand();
            SqlCmd.Connection = SqlCnn;
            SqlCnn.Open();
            SqlCmd.CommandText = "insert into test(test,id) values(@test,1)";
            SqlParameter DataBaseID = new SqlParameter("@test", SqlDbType.NVarChar, 50);
            DataBaseID.Value = stringList.Add(split2);
            SqlCmd.Parameters.Add(DataBaseID);
           
            SqlCmd.ExecuteNonQuery();
            SqlCnn.Close();
            Bindrepeater();
        }
   //ignore syntax errors



This is how im inserting values in textbox into db..
but im having two textboxes how i need to insert both values at a time.. into db...
thank you..
AnswerRe: dynamic textbox in repeater Pin
Not Active17-Mar-10 4:27
mentorNot Active17-Mar-10 4:27 
AnswerRe: dynamic textbox in repeater Pin
T M Gray17-Mar-10 5:44
T M Gray17-Mar-10 5:44 
QuestionChange webresource before 'sending to client' Pin
Eduard Keilholz17-Mar-10 2:03
Eduard Keilholz17-Mar-10 2:03 
QuestionWeb User Control in Content page - Urgent; PLease help Pin
Ersan Ercek17-Mar-10 1:58
Ersan Ercek17-Mar-10 1:58 
AnswerRe: Web User Control in Content page - Urgent; PLease help Pin
T M Gray17-Mar-10 5:35
T M Gray17-Mar-10 5:35 
GeneralRe: Web User Control in Content page - Urgent; PLease help Pin
Ersan Ercek17-Mar-10 10:51
Ersan Ercek17-Mar-10 10:51 
GeneralRe: Web User Control in Content page - Urgent; PLease help Pin
T M Gray17-Mar-10 11:45
T M Gray17-Mar-10 11:45 
QuestionRowspan in html table according to the record from DB.... Pin
<<Tash18>>17-Mar-10 1:30
<<Tash18>>17-Mar-10 1:30 
AnswerRe: Rowspan in html table according to the record from DB.... Pin
Brij17-Mar-10 2:07
mentorBrij17-Mar-10 2:07 
GeneralRe: Rowspan in html table according to the record from DB.... Pin
<<Tash18>>17-Mar-10 2:14
<<Tash18>>17-Mar-10 2:14 
GeneralRe: Rowspan in html table according to the record from DB.... Pin
Brij17-Mar-10 2:25
mentorBrij17-Mar-10 2:25 
AnswerRe: Rowspan in html table according to the record from DB.... Pin
Member 450194017-Mar-10 2:27
Member 450194017-Mar-10 2:27 
AnswerRe: Rowspan in html table according to the record from DB.... Pin
<<Tash18>>17-Mar-10 2:51
<<Tash18>>17-Mar-10 2:51 
GeneralRe: Rowspan in html table according to the record from DB.... Pin
Member 450194017-Mar-10 3:01
Member 450194017-Mar-10 3:01 
GeneralRe: Rowspan in html table according to the record from DB.... Pin
<<Tash18>>17-Mar-10 19:32
<<Tash18>>17-Mar-10 19:32 
AnswerRe: Rowspan in html table according to the record from DB.... Pin
Member 450194018-Mar-10 4:39
Member 450194018-Mar-10 4:39 
GeneralRe: Rowspan in html table according to the record from DB.... Pin
<<Tash18>>19-Mar-10 20:03
<<Tash18>>19-Mar-10 20:03 

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.