Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gridview in user control ??

Status
Not open for further replies.

jamin20

Programmer
Feb 13, 2012
14
CH
Hi there,
I need to create a user control (unless you advise a better approach) that will contain a:
1- a FileUpload control .
2- a Gridview to display uploaded files.

Could anyone:
1- confirm that this approach is fine or put me on the right track ?
2- provide some code to help me to implement my solution ?

Thanks in avance
Jamin
 
1.) There is no reason why you couldn't put an upload control and a gridview in a user control. However, there is no reason to create a user control unless you plan on using that control on multiple pages in your site.
2.) In order to display the uploaded images in the gridview, you will have to save the info in a database. Then after the upload, insert into the db table, and query the table and display in the gridview.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top