Click here to Skip to main content
15,894,539 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Message error Pin
Haissam5-Mar-07 23:20
Haissam5-Mar-07 23:20 
AnswerRe: Message error Pin
Vasudevan Deepak Kumar6-Mar-07 9:27
Vasudevan Deepak Kumar6-Mar-07 9:27 
GeneralRe: Message error Pin
nclauder6-Mar-07 18:57
nclauder6-Mar-07 18:57 
QuestionHow to access ID of a Dyanamic control? Pin
senthil_rajesh_kavin5-Mar-07 22:05
senthil_rajesh_kavin5-Mar-07 22:05 
AnswerRe: How to access ID of a Dyanamic control? Pin
gauthee5-Mar-07 22:14
gauthee5-Mar-07 22:14 
GeneralError:How to access ID of a Dyanamic control? [modified] Pin
senthil_rajesh_kavin5-Mar-07 22:26
senthil_rajesh_kavin5-Mar-07 22:26 
GeneralRe: Error:How to access ID of a Dyanamic control? Pin
gauthee5-Mar-07 22:45
gauthee5-Mar-07 22:45 
GeneralRe: again the same problem,look out this plz. Pin
senthil_rajesh_kavin5-Mar-07 22:59
senthil_rajesh_kavin5-Mar-07 22:59 
sir,
i made the page_load as public,then the results shown below.

public partial class Default2 : System.Web.UI.Page
{
public void Page_Load(object sender, EventArgs e)
{
TextBox t1 = new TextBox();
t1.ID = "TextBox1";
form1.Controls.Add(t1);


}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Server=localhost;uid='sa';pwd='sa';DataBase=master");
SqlCommand com=new SqlCommand("insert into table1 values('"+TextBox1.Text+"')",con);
SqlDataReader rr=com.ExecuteReader();

}
}
----------------------------
CS0103: The name 'TextBox1' does not exist in the current context

Line 24: {
Line 25: SqlConnection con = new SqlConnection("Server=localhost;uid='sa';pwd='sa';DataBase=master");

Line 26: SqlCommand com=new SqlCommand("insert into table1 values('"+TextBox1.Text+"')",con);//this line in Red Color(error portion)

Line 27: SqlDataReader rr=com.ExecuteReader();
Line 28:
GeneralRe: Error:How to access ID of a Dyanamic control? Pin
Sandeep Akhare5-Mar-07 22:46
Sandeep Akhare5-Mar-07 22:46 
Questionallow popups Pin
gauthee5-Mar-07 21:54
gauthee5-Mar-07 21:54 
AnswerRe: allow popups Pin
Sam Heller5-Mar-07 22:46
Sam Heller5-Mar-07 22:46 
AnswerRe: allow popups Pin
Vasudevan Deepak Kumar6-Mar-07 9:28
Vasudevan Deepak Kumar6-Mar-07 9:28 
Questionparameters for webcontrol Pin
vamsimohan215-Mar-07 21:46
vamsimohan215-Mar-07 21:46 
AnswerRe: parameters for webcontrol Pin
Spunky Coder5-Mar-07 22:05
Spunky Coder5-Mar-07 22:05 
AnswerRe: parameters for webcontrol Pin
Sandeep Akhare5-Mar-07 22:06
Sandeep Akhare5-Mar-07 22:06 
QuestionHidden coloumns problem in Gridview by Amol Raut Pin
amolwable5-Mar-07 21:04
amolwable5-Mar-07 21:04 
AnswerRe: Hidden coloumns problem in Gridview by Amol Raut Pin
Harini N K5-Mar-07 21:17
Harini N K5-Mar-07 21:17 
QuestionTextbox to display week number Pin
Oga M5-Mar-07 20:53
Oga M5-Mar-07 20:53 
AnswerRe: Textbox to display week number Pin
Spunky Coder5-Mar-07 21:31
Spunky Coder5-Mar-07 21:31 
QuestionRMA Pin
Khan.Bangash5-Mar-07 20:21
Khan.Bangash5-Mar-07 20:21 
AnswerRe: RMA Pin
Vasudevan Deepak Kumar6-Mar-07 9:28
Vasudevan Deepak Kumar6-Mar-07 9:28 
QuestionHow to convert DRM protected audio files to unprotected audio files Pin
Balakrish5-Mar-07 19:39
Balakrish5-Mar-07 19:39 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
Vasudevan Deepak Kumar6-Mar-07 9:29
Vasudevan Deepak Kumar6-Mar-07 9:29 
GeneralRe: How to convert DRM protected audio files to unprotected audio files Pin
Balakrish6-Mar-07 23:34
Balakrish6-Mar-07 23:34 
QuestionLogout and back button problem Pin
Vipin.d5-Mar-07 19:30
Vipin.d5-Mar-07 19:30 

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.