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

ASP.NET

 
GeneralRe: Data push from server to desktop applications Pin
mastjabs4-Jul-06 12:31
mastjabs4-Jul-06 12:31 
GeneralRe: Data push from server to desktop applications Pin
minhpc_bk4-Jul-06 16:13
minhpc_bk4-Jul-06 16:13 
GeneralRe: Data push from server to desktop applications Pin
mastjabs5-Jul-06 6:50
mastjabs5-Jul-06 6:50 
GeneralRe: Data push from server to desktop applications Pin
minhpc_bk5-Jul-06 20:15
minhpc_bk5-Jul-06 20:15 
Question.mdf file or sql server to .sql script Pin
emran8343-Jul-06 11:20
emran8343-Jul-06 11:20 
Questionproblem with asp.net 2.0 TreeView Pin
WebMaster3-Jul-06 11:06
WebMaster3-Jul-06 11:06 
AnswerRe: problem with asp.net 2.0 TreeView Pin
minhpc_bk3-Jul-06 19:57
minhpc_bk3-Jul-06 19:57 
QuestionAccess Dynamic Controls Pin
tadhg883-Jul-06 5:35
tadhg883-Jul-06 5:35 
Hi i a have managed to dynamically create and fill several checkboxlists on an asp.net page but now when i try and access whether or not they have been check i cannot manage to find any of the dynamically created controls on the page. i used the idea behind this tutorial here
http://www.codeproject.com/useritems/DynamicServerControls.asp[^]


so im just wonderin if anyone has any ideas why i cant access the new controls on the page i have tried each of these ways to access them, thanks in advance,
Tim

private void createFile_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
int trackControlID = 0;


if (PHOptions.FindControl("checkBoxList"+(trackControlID).ToString()) == null )
{
Label1.Text = "FOUND 1";
}

if (PHOptions.FindControl("checkBoxList"+(trackControlID)) != null )
{
Label2.Text = "FOUND 2";
}

//*** declare somecontrol point to found control
System.Web.UI.Control c = FindControl("checkBoxList"+trackControlID.ToString());

//*** change control to be DropDownList
CheckBoxList cbl = c as CheckBoxList;
if (cbl!= null)
{
Label3.Text = "FOUND 3";
}


string boxName = "checkBoxList" + (trackControlID+1).ToString();
CheckBoxList tb = PHOptions.FindControl(boxName) as CheckBoxList;
if(tb != null)
{
Label3.Text = "FOUND 4";
}



int i = 0;
}
Questionproblem When Refreshing a page Pin
meetbinu20033-Jul-06 4:52
meetbinu20033-Jul-06 4:52 
AnswerRe: problem When Refreshing a page Pin
cloudking119663-Jul-06 23:36
cloudking119663-Jul-06 23:36 
Questionweb.sitemap and Page Title Pin
MaWeRic3-Jul-06 2:35
MaWeRic3-Jul-06 2:35 
AnswerRe: web.sitemap and Page Title Pin
Jesse Squire3-Jul-06 3:12
Jesse Squire3-Jul-06 3:12 
GeneralRe: web.sitemap and Page Title [modified] Pin
MaWeRic3-Jul-06 6:00
MaWeRic3-Jul-06 6:00 
QuestionProtect PDF Pin
Tech4U3-Jul-06 2:35
Tech4U3-Jul-06 2:35 
AnswerRe: Protect PDF Pin
Tech4U3-Jul-06 2:37
Tech4U3-Jul-06 2:37 
GeneralRe: Protect PDF Pin
Tech4U3-Jul-06 2:38
Tech4U3-Jul-06 2:38 
QuestionView State Pin
Minuab3-Jul-06 2:32
Minuab3-Jul-06 2:32 
AnswerRe: View State Pin
ritu43213-Jul-06 3:20
ritu43213-Jul-06 3:20 
AnswerRe: View State Pin
Jesse Squire3-Jul-06 3:28
Jesse Squire3-Jul-06 3:28 
QuestionDatagrid Problem Pin
Minuab3-Jul-06 1:32
Minuab3-Jul-06 1:32 
AnswerRe: Datagrid Problem Pin
amaneet3-Jul-06 1:40
amaneet3-Jul-06 1:40 
GeneralRe: Datagrid Problem Pin
Minuab3-Jul-06 1:53
Minuab3-Jul-06 1:53 
GeneralRe: Datagrid Problem Pin
murali.vemula3-Jul-06 2:10
murali.vemula3-Jul-06 2:10 
AnswerRe: Datagrid Problem Pin
Sushant Duggal3-Jul-06 1:52
Sushant Duggal3-Jul-06 1:52 
GeneralRe: Datagrid Problem Pin
Minuab3-Jul-06 2:04
Minuab3-Jul-06 2:04 

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.