How to get filename in fileupload which is inside gridview using Javascript

Posted by Oswaldlily under ASP.NET on 7/12/2013 | Points: 10 | Views : 2088 | Status : [Member] | Replies : 5
How to get filename in fileupload which is inside gridview using Javascript
<script language="javascript" type="text/javascript">
function GetFileName(fileUp) {
var row = fileUp.parentNode.parentNode;
var rowIndex = row.rowIndex - 1;
var filename = row.Rows[rowIndex].cells[20].Value;
}
</script>

<asp:FileUpload ID="fu" runat="server" OnChange="GetFileName(this)"/>




Responses

Posted by: Priyagoel_24 on: 7/13/2013 [Member] Starter | Points: 25

Up
0
Down
<form id="form1" runat="server">
<div>
&nbsp;<br />
<asp:FileUpload ID="FileUpload1" runat="server" /><br />
&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Sql Database"
Width="104px" />
</form>
</body>
</html>
how to make path upload file asp.net 2.5

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Priyagoel_24 on: 7/13/2013 [Member] Starter | Points: 25

Up
0
Down
please send me coding

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Priyagoel_24 on: 7/13/2013 [Member] Starter | Points: 25

Up
0
Down
how to make path upload file asp.net 2.5 coding

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 7/15/2013 [Member] Starter | Points: 25

Up
0
Down
@Priyagoel_24

Try to check the coding I have posted..Thats the main coding

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Priyagoel_24 on: 7/16/2013 [Member] Starter | Points: 25

Up
0
Down
hello friend
i sending u some doubt .please reply me. i wati your reply.

ExecuteScalar requires an open and available Connection. The connection's current state is closed.


Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response