473,587 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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);
}
}
}

Nov 18 '05 #1
0 1472

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

Similar topics

0
1630
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 problem node when doing a search for a match. The following works: <xsl:template match="PlanningPortalXML/pp:PlanningApplication/pa1:form">
3
3657
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 the user enters the parameter as string instead of integer: www.domain.com/myfile.aspx?test
5
10364
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
1078
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 ASP.NET 1.1 project. Could anybody please give me some feedback on my implementation? <code> using System; using System.Web.UI;
13
12396
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 accessing the page, I ran into the security problem with making a cross domain request. I have been reading that with JSON a cross domain request can be...
4
1677
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" stored procedure, where I add a user to the database. I insert the record, and return the user's ID. I can run it just fine and it does execute the...
1
4257
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 param delcaration, then I have to invoke the update operation twice - by leaving the updated row - returning to the row and re-invoking the update...
2
5003
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 codebehind and access it via Request.Querystring property.
0
2906
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 action="/login"> <html:text property="userName" value="Bunty"/> <html:submit/>
0
7920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.