OpenFile dialog in a HTML page
-
Hi, I have a button on a HTML page. If i click that button I have to invoke "OpenFile" dialog. Could any one assist please.
-
Hi, I have a button on a HTML page. If i click that button I have to invoke "OpenFile" dialog. Could any one assist please.
Use:
<input type="file" id="fileDialog" />
This would give you browse button on click of which Open File dialog would appear.
Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
-
Use:
<input type="file" id="fileDialog" />
This would give you browse button on click of which Open File dialog would appear.
Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
Thank you so much ..
-
Use:
<input type="file" id="fileDialog" />
This would give you browse button on click of which Open File dialog would appear.
Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
Hi Sandeep, Is it posibile to add filters to the openfile dialog box?
-
Hi Sandeep, Is it posibile to add filters to the openfile dialog box?
Adding
accept
attribute could work but as W3 says[^], it's not properly handled by recent browsers. Your best bet would be to handle it based on the file extension by yourself at the time of page submit or code behind.Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
-
Adding
accept
attribute could work but as W3 says[^], it's not properly handled by recent browsers. Your best bet would be to handle it based on the file extension by yourself at the time of page submit or code behind.Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
ok thank u.. I will try it out.. once again thank u so much ..
-
ok thank u.. I will try it out.. once again thank u so much ..
Welcome.
Sandeep Mewara Microsoft ASP.NET MVP [My latest Article]: Server side Delimiters in ASP.NET[^]
-
Thank you so much ..
GOOGLE is your friend, GOOGLE dont hurt you! if you GOOGLE IT you get the answer in a few seconds!
-
GOOGLE is your friend, GOOGLE dont hurt you! if you GOOGLE IT you get the answer in a few seconds!
yea got it man .. I don't have access to google but codeproject in my office .. thanks any how..
-
yea got it man .. I don't have access to google but codeproject in my office .. thanks any how..
You dont have access to google??? How???