I have created an asp.net small app with an example from
visual studio .net.
Below is part of the code.
I am displays a select box. When selecting an item, It
should jumped to simplepage.aspx with a value rptdid.
The problem I am having is that the value is not passing
with it.
Could you please advice on what I am missing.
Thanks!
Main HTML
function jumpToPage(obj)
{ var url = obj.options[obj.selectedInd ex].value; if
(url != "none") { parent.frames
["contentfra me"].location = url; }
}
<select name="select" onchange="javas cript:jumpToPag e
(this)" class="DropDown Menu" ID="Select1">
<option value="simplepa ge.aspx?rptid=< %# "Test"%
">Report1</option>
</select>
//This is the SimplePage.apsx
<%@ Register TagPrefix="Crys talReports"
Namespace="Crys talDecisions.We b"
Assembly="Cryst alDecisions.Web , Version=9.1.500 0.0,
Culture=neutral , PublicKeyToken= 692fbea5521e130 4" %>
<@ Page Src="SimplePage .cs"
Inherits="CRSam ples.SimplePage " %
<form method="POST" runat="server" > Test Reports
<CrystalReports :CrystalReportV iewer
id="CrystalRepo rtViewer1" runat="server" width="350px"
height="50px" pagetotreeratio ="4" borderstyle="Do tted"
borderwidth="1p x"/> </asp:button
\\This is the SimplePage.cs
using System;
using System.Web;
using Microsoft.Win32 ;
namespace CRSamples
{
public class SimplePage : System.Web.UI.P age
{
protected CrystalDecision s.Web.CrystalRe portViewer
CrystalReportVi ewer1;
protected void Page_Init(objec t sender, EventArgs e)
{
Uri MyUrl = Request.Url;
string rptid=Request.P arams.Get("rpti d");
Response.Write( rptid);
}
}
}