Ask a Question related to ASP.NET General, Design and Development.
-
Paul Hobbs #1
Repost: Replicate HTML InputFile control with Server controls
Hi All,
I am trying to replicate the functionality of the HTML FileField control. I can use it just fine to prompt a user to browse to a file, and it retrieves the full path just fine. I can then get the file path string by using control.value, and write it to the database. I don't want to actually do anything with the file. What I can't do is programmatically set the value of the FileField control - all the reading I have done says that it is impossible for security reasons.
So, I want to use a standard TextBox control and a Button control, and replicate the functionality of the FileField HTML control. When the user clicks a "Browse" button, s/he should be presented with a the standard Windows OpenFile dialogue box, and when the user selects the file, the full path (including file name) should be plonked into the TextBox. This way, I can programmatically set the text property of the TextBox when the user is editing an existing record - ie: if there is already a path in the db.
Any help greatly appreciated.
Cheers,
Paul Hobbs
Paul Hobbs Guest
-
Embeding html controls in Server Control
Hi Everyone, I have some HTML snippets (with about 15 HTML controls) that needs to be embedded into my server control. I need these HTML controls... -
Add controls to my custom control with tags in HTML design view
I have created a custom control but would like to add other controls to it at design time. I want to be able to put custom control tags inside the... -
using javascript in User controls to access server controls of the user control
Hello all, I have an asp.net textbox (named txtHidden) and an HtmlButton(named btnAction). I wanted to write a javascript function which will get... -
Question on HTML and Web(Server Side) Controls
I know more html is needed to really produce this but enough is here for me to ask my question. So, this HTML code produce 2 buttons. One button is... -
Cant add events to HTML controls in a Calander control
Im not getting any error messages but the event is not going off when i click the button it just posts back to the same page. I know this code has...



Reply With Quote

