Click here to Skip to main content
15,911,141 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to avoid server side validation on client side click event? Pin
Affan Toor16-Jan-08 2:59
Affan Toor16-Jan-08 2:59 
GeneralRe: How to avoid server side validation on client side click event? Pin
N a v a n e e t h16-Jan-08 3:12
N a v a n e e t h16-Jan-08 3:12 
QuestionPrinting values in subreport [modified] Pin
tonymathewt16-Jan-08 2:14
professionaltonymathewt16-Jan-08 2:14 
QuestionASP.NET performance problem Pin
Paul Horstink16-Jan-08 1:48
Paul Horstink16-Jan-08 1:48 
GeneralRe: ASP.NET performance problem Pin
N a v a n e e t h16-Jan-08 2:22
N a v a n e e t h16-Jan-08 2:22 
QuestionFileUpload Pin
yazali16-Jan-08 1:25
yazali16-Jan-08 1:25 
GeneralRe: FileUpload Pin
Vasudevan Deepak Kumar16-Jan-08 3:04
Vasudevan Deepak Kumar16-Jan-08 3:04 
GeneralRe: FileUpload Pin
Declan Bright16-Jan-08 3:49
Declan Bright16-Jan-08 3:49 
If you set the visibility of the file input to display:none and use a separate input button to execute the file input click event, this will open the file dialog. The returned path is then available but it is not possible to open the file directly as this would be a security vulnerability.
<script type="text/javascript">
    function openFileDialog()
    {
        document.getElementById('myFileDialog').click();
        var filePath = document.getElementById('myFileDialog').value;        
        alert(filePath);
        return false;
    }
</script>        
<input id="myFileDialog" type="file" style="display:none;" /> 
<input type="button" value="Open File Dialog" onclick="javascript:openFileDialog();" />


Declan Bright
www.declanbright.com

Questionasp.net application C# with asp.net C# web application Pin
aminowest16-Jan-08 1:18
aminowest16-Jan-08 1:18 
Questiondatagrid in asp.net Pin
Harikrk16-Jan-08 0:19
Harikrk16-Jan-08 0:19 
GeneralRe: datagrid in asp.net Pin
Abhijit Jana16-Jan-08 1:20
professionalAbhijit Jana16-Jan-08 1:20 
GeneralRe: datagrid in asp.net Pin
kiran.puchakayala16-Jan-08 1:36
kiran.puchakayala16-Jan-08 1:36 
GeneralRe: datagrid in asp.net Pin
N a v a n e e t h16-Jan-08 2:25
N a v a n e e t h16-Jan-08 2:25 
GeneralRe: datagrid in asp.net Pin
Harikrk16-Jan-08 3:20
Harikrk16-Jan-08 3:20 
Generalgrid view checkbox Pin
kiran.puchakayala16-Jan-08 0:12
kiran.puchakayala16-Jan-08 0:12 
GeneralRe: grid view checkbox Pin
Not Active16-Jan-08 1:26
mentorNot Active16-Jan-08 1:26 
GeneralCurrency display in report field Pin
macca2415-Jan-08 23:12
macca2415-Jan-08 23:12 
GeneralRe: Currency display in report field Pin
Shajeel16-Jan-08 0:43
Shajeel16-Jan-08 0:43 
Generalonmouseover imagebutton Pin
eyeseetee15-Jan-08 22:46
eyeseetee15-Jan-08 22:46 
GeneralRe: onmouseover imagebutton [modified] Pin
Declan Bright16-Jan-08 0:10
Declan Bright16-Jan-08 0:10 
QuestionE-Mail Creation Pin
georgegarvasis15-Jan-08 22:42
georgegarvasis15-Jan-08 22:42 
GeneralRe: E-Mail Creation Pin
N a v a n e e t h15-Jan-08 23:13
N a v a n e e t h15-Jan-08 23:13 
GeneralRe: E-Mail Creation Pin
Vasudevan Deepak Kumar16-Jan-08 0:13
Vasudevan Deepak Kumar16-Jan-08 0:13 
GeneralSaving the word document at the server Pin
honeyss15-Jan-08 22:33
honeyss15-Jan-08 22:33 
GeneralGridview advice Pin
Mycroft Holmes15-Jan-08 21:58
professionalMycroft Holmes15-Jan-08 21:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.