dynamically creating .aspx pages with controls using asp.net with c#
-
iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me
-
iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me
I'm not sure if you can create a page, as in a physical .aspx file dynamically. But, it is possible to create and place controls during run-time. You have to have a base page i.e. a blank page with the required panels [Left/right/...]. When the user clicks on the button on the user input form, get the values from the textboxes and use it to loop and create controls. You can create controls like this
_[ControlType]_ control__LoopCounter_ = new _[ControlType]()_
Set the appropriate properties and add the control to the required panel. HTH! -
iam using asp.net with c#; iam having 5 textboxes textbox1==username textbox2=how many images on top of the page(ie enter integer value) textbox3=how many images on bottom of the page(ie enteger integer value) textbox4=how many images on left of the page(ie enter integer value) textbox5=how many images on right of the page(ie enter integer value) and a button to create when user click on button then new page is created with username and image controls are displayed on top,bottom,right ,left what ever he has submitted in the form and then user can upload the images with file upload control . when he clicks any iamge he should get the option forupload image and there should be two options previous image(the current what we have clicked) and the new image what we have browse how to do this can you give me example which helps me
check this post http://opexsolution.com/forum/viewtopic.php?f=15&t=37&p=107#p107