C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




set image type in (File type)


Posted Date: 01 Aug 2006      Total Responses: 2

Posted By: Gayathri       Member Level: Gold     Points: 2


hi
i am to upload an image
i click the browse button in that it popups the window which gives the option to choose files
in that there is an option of type file type in that i need to have images types (*.gif,*.jpg.....) to be selected by default when i open the choose file page on the click of the browse button so how to do it

do reply me plz




Responses

Author: Ajay kumar    02 Aug 2006Member Level: GoldRating:     Points: 2
Take a new control OpenFileDialog1
set the filter property of OpenFileDialog1 as

openFileDialog1.Filter="Images(*.JPG,*.GIF)|*.jpg;*.gif";



Author: Pankaj Mishra    02 Aug 2006Member Level: DiamondRating:     Points: 2
HI
Windows application or web application? If it is windows application you can do that.but in web application using HTML file control in asp.net you can not do that.

Regards
Pankaj


Author: Gayathri    02 Aug 2006Member Level: GoldRating:     Points: 2
hi
this is web application
file upload


Author: Pankaj Mishra    02 Aug 2006Member Level: DiamondRating:     Points: 2
Hi,

Than you can not do that

Regards
Pankaj




Post Reply
You must Sign In to post a response.
Next : Adding events dynamically
Previous : controls in datagrid
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

teleconferencing service

Contact Us    Privacy Policy    Terms Of Use