Click here to Skip to main content
15,885,954 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Need Help on Save asp.net from in folder on button click asp.net c# Pin
Hum Dum7-Dec-11 22:16
Hum Dum7-Dec-11 22:16 
Questionhow to get the datakey value Pin
MalarGayu6-Dec-11 13:07
MalarGayu6-Dec-11 13:07 
AnswerRe: how to get the datakey value Pin
coded0076-Dec-11 15:22
professionalcoded0076-Dec-11 15:22 
GeneralRe: how to get the datakey value Pin
MalarGayu6-Dec-11 15:27
MalarGayu6-Dec-11 15:27 
Questionruntime generation of controls and their text Pin
MalarGayu6-Dec-11 10:35
MalarGayu6-Dec-11 10:35 
AnswerRe: runtime generation of controls and their text Pin
Not Active6-Dec-11 11:53
mentorNot Active6-Dec-11 11:53 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu6-Dec-11 12:05
MalarGayu6-Dec-11 12:05 
GeneralRe: runtime generation of controls and their text Pin
Not Active7-Dec-11 4:39
mentorNot Active7-Dec-11 4:39 
You can create controls in your code and add them to the page dynamically

This assumes you are passing the number of controls to create and the type of control (as an int) to the page.

C#
void CreateControls()
{
   int numberOfControls = Request["numberOfCtrls"];
   switch(Convert.ToInt32(Request["ctrlType"]))
   {
      case 1:
        for(int x = 0; x < numberOfControls; x++)
        {
           RadioButton ctrl = new RadioButton();
           ... set any properties ...
           Controls.Add(ctrl);
        }
        break;
      case 2:
         ...
   }
}


No comment

GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 11:18
MalarGayu7-Dec-11 11:18 
GeneralRe: runtime generation of controls and their text Pin
MalarGayu7-Dec-11 13:52
MalarGayu7-Dec-11 13:52 
QuestionLong Running Report MVC3 Pin
eddieangel6-Dec-11 8:14
eddieangel6-Dec-11 8:14 
AnswerRe: Long Running Report MVC3 Pin
Wonde Tadesse6-Dec-11 9:51
professionalWonde Tadesse6-Dec-11 9:51 
AnswerElectronic Health Record System Pin
fresh12076-Dec-11 4:03
fresh12076-Dec-11 4:03 
GeneralRe: Electronic Health Record System Pin
Dennis E White6-Dec-11 5:30
professionalDennis E White6-Dec-11 5:30 
GeneralRe: Electronic Health Record System Pin
Not Active6-Dec-11 6:53
mentorNot Active6-Dec-11 6:53 
GeneralRe: Electronic Health Record System Pin
emardini8-Dec-11 4:13
emardini8-Dec-11 4:13 
QuestionHelp needed Pin
07navneet5-Dec-11 23:31
07navneet5-Dec-11 23:31 
AnswerRe: Help needed Pin
Richard MacCutchan5-Dec-11 23:52
mveRichard MacCutchan5-Dec-11 23:52 
QuestionBlock Concurrent user Pin
yesu prakash5-Dec-11 21:40
yesu prakash5-Dec-11 21:40 
AnswerRe: Block Concurrent user Pin
R. Giskard Reventlov5-Dec-11 22:12
R. Giskard Reventlov5-Dec-11 22:12 
Questionhow to dynamically add textboxes Pin
MalarGayu5-Dec-11 17:23
MalarGayu5-Dec-11 17:23 
AnswerRe: how to dynamically add textboxes Pin
uspatel5-Dec-11 19:19
professionaluspatel5-Dec-11 19:19 
AnswerRe: how to dynamically add textboxes Pin
Morgs Morgan6-Dec-11 20:09
Morgs Morgan6-Dec-11 20:09 
Questiongenerating specific format Pin
sk_ko5-Dec-11 15:11
sk_ko5-Dec-11 15:11 
AnswerRe: generating specific format Pin
Andy_L_J5-Dec-11 21:56
Andy_L_J5-Dec-11 21:56 

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.