Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am using following file uploader in asp.net page "https://github.com/blueimp/jQuery-File-Upload"
FileUpld.aspx page :
XML
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="fileupload">
<form action="../WebServices/SFileUpload.ashx" method="POST" enctype="multipart/form-data" >


MasterPage :
XML
<body>
    <form id="form1" runat="server" >


Here as you can see master page and .aspx page both contains form tag. I want to access "action" of <form> from .aspx page. But when I am trying to do the same, its searching in master page for "action". Above .aspx page inherits same master page. Can anyone please tell me how can I access "SFileUpload.ashx" ?
Posted
Comments
Suvabrata Roy 6-Oct-14 6:46am    
How can you access mean ?

how to use form : http://www.w3schools.com/html/html_forms.asp

1 solution

From the client side you can access it like:
JavaScript
document.getElementById("myForm").action

or
JavaScript
document.forms[0].action 

(Most pages hav a single form but if you have more adjust index!)
From the server side it can be done like this:
C#
MyPage.Form.Action
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900