473,785 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create a new request in code??

Heres what i am trying to do:

In the codebehind code for a page, i want to be able to send the request on
to another page, but with different form values than what may have been
submitted to me. So for example's sake, say im a login page, and the
request to me included form values of "uid" and "pwd". Now i want to
transfer the user over to the search page for example, but Server.Transfer
wont work, because i dont want to send him the UID and PWD form values.
Instead i want to send him a form value name QUERY with some value. How can
i do this?

I would rather NOT resort to writing out a form on the client html and a
script block to populate the forms values and then submit it. Thats rather
sloppy.

Thanks in advance,
- Aaron.
Nov 18 '05 #1
2 2105
Would Response.Redire ct not work for your situation?

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Eidolon" <aa****@hotmail .com> wrote in message
news:OV******** ******@TK2MSFTN GP10.phx.gbl...
Heres what i am trying to do:

In the codebehind code for a page, i want to be able to send the request
on
to another page, but with different form values than what may have been
submitted to me. So for example's sake, say im a login page, and the
request to me included form values of "uid" and "pwd". Now i want to
transfer the user over to the search page for example, but Server.Transfer
wont work, because i dont want to send him the UID and PWD form values.
Instead i want to send him a form value name QUERY with some value. How
can
i do this?

I would rather NOT resort to writing out a form on the client html and a
script block to populate the forms values and then submit it. Thats rather
sloppy.

Thanks in advance,
- Aaron.

Nov 18 '05 #2

No, because i want to send different Request variables to the new page than
were received by the first page. I tried changing the variables on the
current request before forwarding on, something like the following:

Request.Form.Cl ear()
Request.Form.Ad d("search","m y search params")
Server.Transfer ("myNewPage.asp x",True)

But it tells me that i cannot do that because the object is readonly.

"Chris Jackson" <chrisjATmvpsDO TorgNOSPAM> wrote in message
news:uA******** ******@TK2MSFTN GP12.phx.gbl...
Would Response.Redire ct not work for your situation?

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Eidolon" <aa****@hotmail .com> wrote in message
news:OV******** ******@TK2MSFTN GP10.phx.gbl...
Heres what i am trying to do:

In the codebehind code for a page, i want to be able to send the request
on
to another page, but with different form values than what may have been
submitted to me. So for example's sake, say im a login page, and the
request to me included form values of "uid" and "pwd". Now i want to
transfer the user over to the search page for example, but Server.Transfer wont work, because i dont want to send him the UID and PWD form values.
Instead i want to send him a form value name QUERY with some value. How
can
i do this?

I would rather NOT resort to writing out a form on the client html and a
script block to populate the forms values and then submit it. Thats rather sloppy.

Thanks in advance,
- Aaron.


Nov 18 '05 #3

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

Similar topics

2
4082
by: Nick | last post by:
Loop to create an array from a dynamic form. I'm having trouble with an application, and I'll try to explain it as clearly as possible: 1. I have a form with two fields, say Apples and Oranges. The user selects from a drop down menu, between 1-10 of each and clicks submit. The resulting page will display a NEW form, with rows and a list of fields for the amount of each items selected.
2
1157
by: ruca | last post by:
Hi people, I have a .vb file and I want to create a .dll file. I'm puting this line in command line: vbc /t:library /r:system.dll,system.web.dll,system.data.dll,microsoft.visualbasic.dll C:\marcacao.vb The compiler give me errors only because I have both Response and Request
2
2135
by: Markus Prediger | last post by:
Hi NG, I have an asp.net project that uses an vb6 com object for some database-manipulation (I cannot rewrite it in .net, sorry, its not my decision). I want it to be instanciated seperately for each session, so that three users can connect to three different databases. But I get crazy because: -With interop all users share one instance - pure chaos (the instance is
3
9599
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. I'm trying to create a call to a web page to validate and register software. The code I'm using is: Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim WebRequest As HttpWebRequest Dim instance As HttpWebRequest =...
4
12442
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
7
1996
by: =?Utf-8?B?SlA=?= | last post by:
I need to design a WS that will after authenicating the user, create a cookie on the users PC that made the request. All the code I keep finding is how to get a WS to read a cookie, I need it to create one. The below code doesnt add the cookie to my cache. However if I place this in an non asmx page its fine Any help you offer is apperiated public string CreateToken(string User, string App, string County) {
4
8284
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my problems and this one is really getting to me... I have a page that allows you to Browse Authors. There are three drop down boxes that auto-populate via AJAX. I have a file which it calls and returns the dynamically built XML file in the boxes...
15
5277
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
2
3470
by: stjones1 | last post by:
My company has implementd Vista with IE7 and office 2007. We also use Sharepoint extensively for team sites and division portals. I am in Sharepoint consultation/support. One user just moved a website from our old system to sharepoint, and now one of her links is broken. It is a simple ASP page with parameters that uses VB script to create an Excel object and load an Excel file into it (wb name, sheet name, and scroll number are the ASP...
0
3738
by: TrevRex | last post by:
Hello, I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have had to explore the internet in order to discover various tutorials and examples that have led me on a positive path. Right now I am working on a Google Mash-Up that will incorporate over 14,000 records, which will appear as separate markers that...
0
9483
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6742
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4055
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
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.