Click here to Skip to main content
15,887,027 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHelp With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 21:04
DotNetCoderJunior2-Oct-08 21:04 
AnswerRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 21:33
acroitoriu2-Oct-08 21:33 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:01
DotNetCoderJunior2-Oct-08 22:01 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 22:09
acroitoriu2-Oct-08 22:09 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:22
DotNetCoderJunior2-Oct-08 22:22 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 22:29
acroitoriu2-Oct-08 22:29 
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior2-Oct-08 22:39
DotNetCoderJunior2-Oct-08 22:39 
GeneralRe: Help With Dynamic TextBox Pin
acroitoriu2-Oct-08 23:15
acroitoriu2-Oct-08 23:15 
I guess that your problem may be in the Page_Load method:

protected void Page_Load(object sender, EventArgs e)
{


if (Session["LogedInID"] != null)
{

server = Request["id"].ToString();
tblServer.ID = "tblid";
int tblRows = Rows;
int tblCols = Columns;
tblServer = new Table();
PlaceHolder1.Controls.Add(tblServer);

if (!Page.IsPostBack)
{
CreateDynamicControls(server);

}
//CreateDynamicControls(server);
}
else
{
Response.Redirect("login.aspx");
}

}

you first set the ID property of the table and then you instantiate a new table so the ID is lost ... I did something similar in a
test project:

Table tblServer = new Table();

protected void Page_Load(object sender, EventArgs e)
{
tblServer.ID = "tblid";
tblServer = new Table();
Response.Write(tblServer.ID);
}

and there is no output from the Response.Write method

try to set your ID again after the tblServer = new Table(); line

Andrei
GeneralRe: Help With Dynamic TextBox Pin
DotNetCoderJunior3-Oct-08 0:01
DotNetCoderJunior3-Oct-08 0:01 
AnswerRe: Help With Dynamic TextBox Pin
DotNetCoderJunior3-Oct-08 3:07
DotNetCoderJunior3-Oct-08 3:07 
QuestionReporting Service in Asp.net 2005 Pin
Member 31782792-Oct-08 21:02
Member 31782792-Oct-08 21:02 
AnswerRe: Reporting Service in Asp.net 2005 Pin
Sathesh Sakthivel3-Oct-08 3:03
Sathesh Sakthivel3-Oct-08 3:03 
QuestionDate Time picker [modified] Pin
member272-Oct-08 20:52
member272-Oct-08 20:52 
AnswerRe: Date Time picker Pin
acroitoriu2-Oct-08 21:29
acroitoriu2-Oct-08 21:29 
GeneralRe: Date Time picker Pin
Krazy Programmer2-Oct-08 21:40
Krazy Programmer2-Oct-08 21:40 
QuestionResponse.AddHeader() Pin
jhyn2-Oct-08 19:21
jhyn2-Oct-08 19:21 
AnswerRe: Response.AddHeader() Pin
acroitoriu2-Oct-08 21:19
acroitoriu2-Oct-08 21:19 
AnswerRe: Response.AddHeader() [modified] Pin
jhyn2-Oct-08 21:20
jhyn2-Oct-08 21:20 
QuestionExport image to excel Pin
saravanan052-Oct-08 19:09
saravanan052-Oct-08 19:09 
Questionhave a problem with sessions Pin
kheer2-Oct-08 18:33
kheer2-Oct-08 18:33 
AnswerRe: have a problem with sessions Pin
Sneha Bisht2-Oct-08 18:48
Sneha Bisht2-Oct-08 18:48 
GeneralRe: have a problem with sessions Pin
kheer2-Oct-08 18:57
kheer2-Oct-08 18:57 
GeneralRe: have a problem with sessions Pin
N a v a n e e t h2-Oct-08 22:29
N a v a n e e t h2-Oct-08 22:29 
AnswerRe: have a problem with sessions Pin
Brij2-Oct-08 19:02
mentorBrij2-Oct-08 19:02 
GeneralRe: have a problem with sessions Pin
Krazy Programmer2-Oct-08 21:39
Krazy Programmer2-Oct-08 21:39 

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.