What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 4653 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET 4.0 > how to pass values from html page to .aspx page ...
50555

how to pass values from html page to .aspx page

Replies: 3 | Posted by: 50555 on 8/3/2011 | Category: ASP.NET 4.0 Forums | Views: 5089 | Status: [Member] | Points: 10  


hello friends,
i am prabhakar i am trying to pass values from html file .aspx file.but stil i did't get this one.
can you help me some one....




thanks for advance


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

SheoNarayan
SheoNarayan  
Posted on: 8/3/2011 1:30:42 AM
Level: HonoraryPlatinum | Status: [Microsoft_MVP] [Administrator] | Points: 25

How you are trying?

You have two ways to do that
1. using querystring - keep a anchor tag on the html page with querystring value that will redirect to the .aspx page with that querystring value and in .aspx page you can retrieve the querystring vlaue like explained at http://www.dotnetfunda.com/articles/article1399-how-to-pass-data-from-one-page-to-another-page-using-querystring-.aspx

2. using post method - keep an html page with form element (with textbox, dropdown etc) with action="youraspxpage.aspx". Keep a submit button on the page when user click on submit button catch the form elements value using Request.Form on the .aspx page.

Hope this will help.

Thanks

Regards,
Sheo Narayan, Microsoft MVP
The Founder
http://www.dotnetfunda.com

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

Hmanjarawala
Hmanjarawala  
Posted on: 8/3/2011 2:36:03 AM
Level: Bronze | Status: [Member] | Points: 25

Hi Prabhakar,

have u used <form> tag in html page like:
<form id="frm1" action="ur aspx page name" method="get/post"></form>
n u can use this data at ur aspx page.
if u used get method then u found ur information from Request.QueryString else Request.Param

Hope this will help u

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

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

Sksamantaray
Sksamantaray  
Posted on: 3/14/2012 12:42:00 PM
Level: Silver | Status: [Member] | Points: 25

Hi 50555,
For an example you can refer to:
http://forums.asp.net/t/1638526.aspx

Thanks,
Sanjay

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

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 9:49:13 PM