Click here to Skip to main content
15,911,789 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: About MAC address Pin
Johnny ²18-Dec-07 20:18
Johnny ²18-Dec-07 20:18 
QuestionDrag and drop Files from Windows explorer to List box Pin
ram197418-Dec-07 19:03
ram197418-Dec-07 19:03 
GeneralRe: Drag and drop Files from Windows explorer to List box Pin
Johnny ²18-Dec-07 20:22
Johnny ²18-Dec-07 20:22 
GeneralRe: Drag and drop Files from Windows explorer to List box [modified] Pin
ram197418-Dec-07 20:59
ram197418-Dec-07 20:59 
GeneralRe: Drag and drop Files from Windows explorer to List box Pin
Michael Sync18-Dec-07 22:34
Michael Sync18-Dec-07 22:34 
GeneralRegarding treeview Drag and Drop Pin
sandhya1418-Dec-07 17:37
sandhya1418-Dec-07 17:37 
Generaldocument.all nightmare Pin
Alaric_18-Dec-07 11:51
professionalAlaric_18-Dec-07 11:51 
QuestionTextbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200418-Dec-07 11:46
hifiger200418-Dec-07 11:46 
Hi Guys,

I'm using FileUpload control, but Im having problem putting the value of FileUpload1.FileName to a Textbox1.Text. I tried using prerender but still it doesn't work.

Is there a way to reflect the value from FileUpload1 to textbox1?

Below is my simple sample code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>test upload</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="FileUpload1" runat="server" /> <br />
<br />
<asp:TextBox ID="TextBox1" runat="server" Width="228px"></asp:TextBox>
</div>
</form>
</body>
</html>


'----------------------- VB Code Behind ----------------------

Partial Class testupload
Inherits System.Web.UI.Page

Protected Sub FileUpload1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles FileUpload1.PreRender
TextBox1.Text = FileUpload1.FileName
End Sub
End Class
hifiger2004
AnswerRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
Alaric_18-Dec-07 11:56
professionalAlaric_18-Dec-07 11:56 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200418-Dec-07 14:29
hifiger200418-Dec-07 14:29 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
Alaric_18-Dec-07 15:38
professionalAlaric_18-Dec-07 15:38 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200418-Dec-07 18:47
hifiger200418-Dec-07 18:47 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
Alaric_19-Dec-07 1:39
professionalAlaric_19-Dec-07 1:39 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200419-Dec-07 2:33
hifiger200419-Dec-07 2:33 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
Alaric_19-Dec-07 4:52
professionalAlaric_19-Dec-07 4:52 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200419-Dec-07 5:11
hifiger200419-Dec-07 5:11 
AnswerRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
Alaric_19-Dec-07 5:49
professionalAlaric_19-Dec-07 5:49 
GeneralRe: Textbox1.text = FileUpload1.FileName, How to do it? Pin
hifiger200419-Dec-07 12:28
hifiger200419-Dec-07 12:28 
QuestionNeed JavaScript for Data validation in grid Pin
chand1018-Dec-07 5:05
chand1018-Dec-07 5:05 
GeneralRe: Need JavaScript for Data validation in grid Pin
ram197418-Dec-07 19:09
ram197418-Dec-07 19:09 
GeneralFirst VS2005 and MS Access Web Project Pin
jszabo18-Dec-07 0:45
jszabo18-Dec-07 0:45 
AnswerRe: First VS2005 and MS Access Web Project Pin
jchalfant18-Dec-07 4:38
jchalfant18-Dec-07 4:38 
GeneralRe: First VS2005 and MS Access Web Project Pin
jszabo18-Dec-07 12:49
jszabo18-Dec-07 12:49 
GeneralRe: First VS2005 and MS Access Web Project Pin
jszabo22-Dec-07 0:33
jszabo22-Dec-07 0:33 
GeneralRe: First VS2005 and MS Access Web Project Pin
Vasudevan Deepak Kumar18-Dec-07 4:57
Vasudevan Deepak Kumar18-Dec-07 4:57 

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.