Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
QuestionXML DateTime, .NET DateTime and SQL DateTime troubles Pin
Andres Coder17-Dec-08 19:46
Andres Coder17-Dec-08 19:46 
AnswerRe: XML DateTime, .NET DateTime and SQL DateTime troubles Pin
PIEBALDconsult18-Dec-08 12:09
mvePIEBALDconsult18-Dec-08 12:09 
QuestionHow to control Ms Powerpoint 2007 Slide show using C# 3.5? Pin
salon17-Dec-08 19:40
salon17-Dec-08 19:40 
Question[Message Deleted] Pin
kirandilip17-Dec-08 18:44
kirandilip17-Dec-08 18:44 
AnswerRe: Check Date Difference Pin
Brij17-Dec-08 18:53
mentorBrij17-Dec-08 18:53 
GeneralRe: Check Date Difference Pin
Lev Danielyan17-Dec-08 19:02
Lev Danielyan17-Dec-08 19:02 
AnswerRe: Check Date Difference Pin
Lev Danielyan17-Dec-08 18:53
Lev Danielyan17-Dec-08 18:53 
QuestionHow to insert value in Database from dynamic textbox? Pin
developer.ravish17-Dec-08 17:59
developer.ravish17-Dec-08 17:59 
Hi

I have to insert value in db from textbox which create at runtime i have done the coding the for creating it
but need help in inserting value in Database?


protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
if (txtbox.Text != "")
{
CreateControl();

}

}
}

private void CreateControl()
{
TextBox txttest;
LiteralControl LCT1;
for(int i=0; i <= Convert.ToInt32(txtbox.Text)-1;i++)
{

LCT1=new LiteralControl ();
LCT1.Text="
";
txttest=new TextBox ();
txttest.ID="txt"+ (i+1);
Panel1.Controls.Add(LCT1);
Panel1.Controls.Add(txttest);

}

}
protected void Button1_Click(object sender, EventArgs e)
{
for(int i=0; i<= Convert.ToInt32(txtbox.Text)-1;i++)
{
TextBox txtCntrl=(TextBox)Panel1.FindControl("txt"+(i+1));
if(txtCntrl != null)
{
TextBox tbox = new TextBox();
tbox.Text=tbox.Text + "tbox"+txtCntrl.Text;

}
}
}


any help
AnswerRe: How to insert value in Database from dynamic textbox? Pin
Christian Graus17-Dec-08 18:05
protectorChristian Graus17-Dec-08 18:05 
QuestionHiding query string in the url and how to make webiste which runs on https Pin
tauras8117-Dec-08 17:11
tauras8117-Dec-08 17:11 
AnswerRe: Hiding query string in the url and how to make webiste which runs on https Pin
Expert Coming17-Dec-08 17:25
Expert Coming17-Dec-08 17:25 
GeneralRe: Hiding query string in the url and how to make webiste which runs on https Pin
tauras8117-Dec-08 17:32
tauras8117-Dec-08 17:32 
GeneralRe: Hiding query string in the url and how to make webiste which runs on https Pin
N a v a n e e t h17-Dec-08 17:35
N a v a n e e t h17-Dec-08 17:35 
GeneralRe: Hiding query string in the url and how to make webiste which runs on https Pin
Expert Coming17-Dec-08 17:36
Expert Coming17-Dec-08 17:36 
AnswerRe: Hiding query string in the url and how to make webiste which runs on https Pin
Christian Graus17-Dec-08 17:53
protectorChristian Graus17-Dec-08 17:53 
Questionmatching just single specified character with regular expression. Pin
Member 232448317-Dec-08 14:49
Member 232448317-Dec-08 14:49 
AnswerRe: matching just single specified character with regular expression. Pin
Christian Graus17-Dec-08 16:58
protectorChristian Graus17-Dec-08 16:58 
QuestionProblem with Datagrid Pin
Ain't me babe17-Dec-08 14:49
Ain't me babe17-Dec-08 14:49 
AnswerRe: Problem with Datagrid Pin
Mycroft Holmes17-Dec-08 15:16
professionalMycroft Holmes17-Dec-08 15:16 
QuestionExperimenting with Multithreading Pin
CrimeanTurtle200817-Dec-08 13:56
CrimeanTurtle200817-Dec-08 13:56 
AnswerRe: Experimenting with Multithreading Pin
Expert Coming17-Dec-08 14:02
Expert Coming17-Dec-08 14:02 
GeneralRe: Experimenting with Multithreading Pin
CrimeanTurtle200817-Dec-08 14:08
CrimeanTurtle200817-Dec-08 14:08 
GeneralRe: Experimenting with Multithreading Pin
Expert Coming17-Dec-08 14:16
Expert Coming17-Dec-08 14:16 
GeneralRe: Experimenting with Multithreading Pin
Expert Coming17-Dec-08 14:20
Expert Coming17-Dec-08 14:20 
AnswerRe: Experimenting with Multithreading Pin
CrimeanTurtle200817-Dec-08 14:37
CrimeanTurtle200817-Dec-08 14:37 

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.