hi, iam using asp.net with c#;
iam having 5 textboxes
textbox1==username
textbox2=how many images on top of the page
textbox3=how many images on bottom of the page
textbox4=how many images on left of the page
textbox5=how many images on right of the page
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 and with there events
then user can upload the images iwth browse upload control .
how to do this can you give me example which helps me
Loading
Amit ChoudharyPosted May 3, 2010, 1:21 AM
create a page.. give it layout like below using styles..
now according to your no. of images in your textboxes. user enters add the those no. of file upload and image control to your asp panels programmatically..
for eg:
if user enter 1 for top panel then:
for(int i=0;i
pnlTop.AddControl( new Image());
pnlTop.AddControl(new FileUpload());
}
similary you can access them by using foreach loop:
foreach(Control c in pnlTop.Controls)
{
if(C is FileUpload)
{
// write your custom code here..
}
}
I think now you'll have some idea to achieve your task.
Please Don't forget to mark this post.