Click here to Skip to main content
       

ASP.NET

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
AnswerRe: Turning a VS2010 project into a controlmvpSandeep Mewara18 Sep '12 - 22:55 
QuestionDynamic Control Help.membersam_asp.net18 Sep '12 - 10:13 
AnswerRe: Dynamic Control Help.mvpSandeep Mewara18 Sep '12 - 22:33 
Steps:
1. Define a GENERATE Button click handler X
2. In X, get the number provided in Textbox (say y)
3. Define a counter(say z). Set it to one.
4. Code a for loop from zero to y-1 (loop runs y times)
5. Create a dropdownlist inside the loop using new.
  • Provide ID
  • Define a datasource - a list
  • Populate list with fixed 10 numbers starting from z. for first loop z goes from 1 to 10, next 11-20...
  • Bind the datasource to dropdonw
  • Add the dropdown to the defined panel/placeholder in UI
6. Once for loop ends, create a button (A), define click event and add that too the defined panel/placeholder in UI.
7. for click event of A, do your manipulations as per need.
 
Try!
Sandeep Mewara
Microsoft ASP.NET MVP
 
[My latest Article]: Server side Delimiters in ASP.NET[^]

QuestionDisplaying multiple overlapping imagesmemberavsesis18 Sep '12 - 3:09 
AnswerRe: Displaying multiple overlapping imagesmembermark merrens18 Sep '12 - 5:03 
QuestionRun .3.5 website with .net4 on servermembergolrokh_ka16 Sep '12 - 21:30 
AnswerRe: Run .3.5 website with .net4 on servermember_Amy17 Sep '12 - 4:40 
QuestionRun .3.5 website with .net4 on servermembergolrokh_ka16 Sep '12 - 21:28 
QuestionHow to enable tabbing in textboxmembervinay_28916 Sep '12 - 21:16 
AnswerRe: How to enable tabbing in textboxmember_Amy17 Sep '12 - 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid