views:

61

answers:

2

i have used fileupload control in my webpage but it show different behavior in internet explorer and firefox different behavior means in IE i can write anything on textbox, while firefox doesnot allow to do so why ? and how we can maintain consistency in both.

+1  A: 

The <input type="file" /> is a special tag which is rendered differently by browsers and you have no control over it and unfortunately there's not much you could do.

Darin Dimitrov
+1  A: 

In short, you should find another approach than messing with file inputs, this is in place for security reasons, for example to prevent you from changing the value to this on submit:

C:\MyPasswords.txt

Ignore the fact IE lets you mess with it at all, why are you changing the text in that input anyway? There should be an alternative approach to what you're after.

Nick Craver