473,406 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Request.Param not returning a value

Hello:
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.selectedIndex].value; if
(url != "none") { parent.frames
["contentframe"].location = url; }
}

<select name="select" onchange="javascript:jumpToPage
(this)" class="DropDownMenu" ID="Select1">

<option value="simplepage.aspx?rptid=<%# "Test"%
">Report1</option>

</select>
//This is the SimplePage.apsx

<%@ Register TagPrefix="CrystalReports"
Namespace="CrystalDecisions.Web"
Assembly="CrystalDecisions.Web, Version=9.1.5000.0,
Culture=neutral, PublicKeyToken=692fbea5521e1304" %>

<@ Page Src="SimplePage.cs"
Inherits="CRSamples.SimplePage" %

<form method="POST" runat="server" > Test Reports
<CrystalReports:CrystalReportViewer
id="CrystalReportViewer1" runat="server" width="350px"
height="50px" pagetotreeratio="4" borderstyle="Dotted"
borderwidth="1px"/> </asp:button

\\This is the SimplePage.cs
using System;
using System.Web;
using Microsoft.Win32;
namespace CRSamples
{
public class SimplePage : System.Web.UI.Page
{
protected CrystalDecisions.Web.CrystalReportViewer
CrystalReportViewer1;

protected void Page_Init(object sender, EventArgs e)
{
Uri MyUrl = Request.Url;
string rptid=Request.Params.Get("rptid");
Response.Write(rptid);
}
}
}

Nov 18 '05 #1
0 1465

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jimmy | last post by:
Hi, I have a (multi-tier) XML document and a XSL transform file (that is meant to transform the XML into a flat structure so I can insert the data into a database table). I have reached a...
3
by: 2003et | last post by:
How can I understand a Request.Params object's type? I need this: User enters www.domain.com/myfile.aspx?6 then myfile.aspx.cs use "SELECT name FROM people WHERE id="+Request.Params; so if...
5
by: LS | last post by:
Can a WebMethod return an Interface type? Can we pass an interface parameter ? Example : public interface IEntity { long Id { get; set; } string Name { get; set; } }
0
by: Fao, Sean | last post by:
I recently had the desire to create a CheckBoxColumn (similar to a ButtonColumn) that I could add to a DataGrid. I believe the 2.0 framework already includes such a type; however, this is for an...
13
by: trpost | last post by:
I am looking to make a small web app that will return the status of a website from the client browser. I tried this with AJAX and it worked great locally, but did not work for remote users...
4
by: Tifer | last post by:
Hello, I'm still new to the whole .Net thing and I'm having a problem with something that should be so simple -- executing a query and returning an output parameter. It's a standard "Add"...
1
by: Rich | last post by:
Hello, I can update a dataset from my client app using a dataAdapter.Updatecommand when I add parameter values outside of the param declaration. But If I add the param values inline with the...
2
by: phl | last post by:
Hello, I have aspx(say page.aspx) page which uses javascript to submit a form reload with some unicode characters,upon an button event e.g page.aspx?param=value I get this value in the...
0
by: buntyindia | last post by:
Hi, I have a very strange problem with my application. I have developed it using Struts. I have a TextBox With Some fixed value in it and on Submit iam passing it to another page. <html:form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.