passing data from asp page to ASP.NET 
Author Message
 passing data from asp page to ASP.NET


Quote:
> <script>
> function CommonSubmit(irptID,isessionXML)
> {
>   document.all["rptID"].value = irptID;
>   document.all["sessionXML"].value) = isessionXML;
>   Form1.submit();
> }
> .........
> <form id="Form1" action="WFCrytalrpt.aspx" method="post"
> runat="server">
>  <input id="rptID" type="hidden" name="rptID">
>  <INPUT id="sessionXML" type="hidden" name="sessionXML">
> </form>
> ...
> And Then in WFCrystalrpt.aspx.cs file, I try to request
> this data, but I only get rptID data. I am not able to get
> the xml. I don't know how to pass data from jscript to
> aspx.cs file.

Hi,

Try adding the runat=server attribute to your input fields. Or you can try:

    Request.Form("sessionXML")

Peter

--

This must be the disclaimer I waited years to read:
http://www.*-*-*.com/



Fri, 08 Oct 2004 23:47:42 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to post data from one asp.net page to another

2. New article on porting ASP pages to ASP .NET available on MSDN

3. Common Bridge Between JScript, ASP and ASP.NET

4. ASP & ASP.NET

5. ASP to ASP.NET conversion problem

6. ASP.NET and ASP

7. Script in asp.net page

8. problem passing the data from ASP to a stored procedure in SQL7.0

9. problem passing data from ASP to a Stored procedure in SQL 7.0

10. problem passing the data from ASP to a stored procedure in SQL7.0

11. Passing data between forms with ASP using POST

12. calling asp page from another asp page

 

 
Powered by phpBB® Forum Software