Click here to Skip to main content
15,906,816 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Using DataBind.Eval in the Code Behind Pin
Ista2-Aug-06 4:05
Ista2-Aug-06 4:05 
QuestionView State Dynamic Fields Pin
smarttom991-Aug-06 13:19
smarttom991-Aug-06 13:19 
AnswerRe: View State Dynamic Fields Pin
minhpc_bk1-Aug-06 15:24
minhpc_bk1-Aug-06 15:24 
QuestionWebservice from Javascript Pin
seee sharp1-Aug-06 7:07
seee sharp1-Aug-06 7:07 
AnswerRe: Webservice from Javascript [modified] Pin
Tim Kohler1-Aug-06 9:38
Tim Kohler1-Aug-06 9:38 
QuestionCache vs Application variable Pin
honeyman_can1-Aug-06 6:35
honeyman_can1-Aug-06 6:35 
AnswerRe: Cache vs Application variable Pin
Tim Kohler1-Aug-06 8:52
Tim Kohler1-Aug-06 8:52 
QuestionDynamic User Control Creation Pin
sonicsqwirl1-Aug-06 5:54
sonicsqwirl1-Aug-06 5:54 
My issue is, I have to allow a user to be able to specify in a text box how many files will be generated.

From that number they enter in the textbox, i generate that number of user controls on the screen for them to fill out.
    protected void FileNum_Changed(object sender, EventArgs e)<br />
    {<br />
        int filecnt = Int32.Parse(txtFileNum.Text.ToString());<br />
        ShowFTPControls(filecnt);<br />
<br />
    }<br />
    private void ShowFTPControls(int Num)<br />
    {<br />
        ASP.filetransfercontrol_ascx ftc;<br />
<br />
        for (int i = 0; i < Num; i++)<br />
        {<br />
            ftc = new ASP.filetransfercontrol_ascx();<br />
            ftc.ID = "ftc" + i;<br />
            ftc.EnableViewState = false;<br />
            PH.Controls.Add(ftc);<br />
        }<br />
    }


The problem i'm having is, the user control has autopostback enabled dropdrowlists. When the postback occurs all the dynamic controls are blown away.

Any help would be appreciated. Thanks!
AnswerRe: Dynamic User Control Creation Pin
Are Jay1-Aug-06 8:51
Are Jay1-Aug-06 8:51 
AnswerRe: Dynamic User Control Creation Pin
minhpc_bk1-Aug-06 15:29
minhpc_bk1-Aug-06 15:29 
AnswerRe: Dynamic User Control Creation Pin
user55691-Aug-06 22:26
user55691-Aug-06 22:26 
QuestionHow to keep a tooltip for Pageindex of numeric in Datagrid Pin
narendrakumarp1-Aug-06 5:53
narendrakumarp1-Aug-06 5:53 
AnswerRe: How to keep a tooltip for Pageindex of numeric in Datagrid Pin
minhpc_bk1-Aug-06 16:02
minhpc_bk1-Aug-06 16:02 
QuestionASP.NET 2.0 TreeView control Pin
Omkar Ghaisas1-Aug-06 5:39
Omkar Ghaisas1-Aug-06 5:39 
AnswerRe: ASP.NET 2.0 TreeView control Pin
minhpc_bk1-Aug-06 16:04
minhpc_bk1-Aug-06 16:04 
QuestionEdit button in a datalist control which is in another datalist control Pin
deepaks31-Aug-06 5:30
deepaks31-Aug-06 5:30 
AnswerRe: Edit button in a datalist control which is in another datalist control Pin
minhpc_bk1-Aug-06 16:05
minhpc_bk1-Aug-06 16:05 
QuestionMaster Page+ content page+Data Pin
Naveed Kamboh1-Aug-06 5:03
Naveed Kamboh1-Aug-06 5:03 
AnswerRe: Master Page+ content page+Data Pin
ToddHileHoffer1-Aug-06 5:19
ToddHileHoffer1-Aug-06 5:19 
AnswerRe: Master Page+ content page+Data Pin
Naveed Kamboh1-Aug-06 5:39
Naveed Kamboh1-Aug-06 5:39 
GeneralRe: Master Page+ content page+Data Pin
ToddHileHoffer1-Aug-06 5:56
ToddHileHoffer1-Aug-06 5:56 
GeneralRe: Master Page+ content page+Data Pin
Naveed Kamboh1-Aug-06 6:16
Naveed Kamboh1-Aug-06 6:16 
GeneralRe: Master Page+ content page+Data/I have sorted Pin
Naveed Kamboh1-Aug-06 7:20
Naveed Kamboh1-Aug-06 7:20 
GeneralRe: Master Page+ content page+Data Pin
ToddHileHoffer1-Aug-06 7:25
ToddHileHoffer1-Aug-06 7:25 
QuestionHow do access server side textbox value in javascript Pin
ragupathi.p1-Aug-06 5:00
ragupathi.p1-Aug-06 5:00 

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.