file open dialog box + asp.net2.0 + c#
-
i want to open modal file open dialog box on click of the button as we get in fileupload control. can anyone help me in this.
try this- Button1.Attributes.Add("onclick", "window.showModalDialog('MyPage.aspx',null,'dialogHeight:285px;dialogWidth:635px;center:yes;resizable:yes;status:no;help:no; ');");
-
i want to open modal file open dialog box on click of the button as we get in fileupload control. can anyone help me in this.
-
I want to window which comes when we click the browse button on fileuploader control. The code you had given i tried with that before. But it is only a window.
hi there, Since you are using ASP.net 2.0 then you most probably using in Visual Studio 2005. Then there is "FileUpload" asp button which provide all your need. FileUpload button has two components one is textbox and other is browse button. On click of browse button you will see open file dialog box and by selecting appropriate fill, you see file path in textbox. Just try. Thanks & Regards Dilip kumar vishwakarma
Programmer .Net Consulting