473,800 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL Params

Hi:

Me question is the next:

I would like know how, I can do it to pass params, from a control of a page
ASPX to other page ASPX, but I don't want that this params can see in the
URL, besides I want use this params in the page, how I can do it to request
this params...??

I am using C# like languaje...

Thanks....!!!
Nov 19 '05 #1
2 1914
Hi,

you can make a POST.

ASP.NET 2.0 will fill this needs out-of-the-box.

In ASP.net 1.x this is not very simple. You need a workaround to do that.

You can play with JavaScript (that could be rendered from the server as
RegisterStartup Script), changing the "action" property of the <form>
rendered with the webform, to point it to your second aspx file, and then
call submit method.

<input type="hidden" id="yourhiddenf ield" name="yourhidde nfield" />
<script language="javas cript">
document.forms[0].action = "yourotherpage. aspx";
document.all["yourhiddenfiel d"].value = "foo";
document.forms[0].submit();
</script>

In yourotherpage.a spx:
....
string myvalue = Request["yourhiddenfiel d"];

HTH

Bye

Stefano

"Coneection OLAP" <Co************ @discussions.mi crosoft.com> ha scritto nel
messaggio news:C7******** *************** ***********@mic rosoft.com...
Hi:

Me question is the next:

I would like know how, I can do it to pass params, from a control of a page ASPX to other page ASPX, but I don't want that this params can see in the
URL, besides I want use this params in the page, how I can do it to request this params...??

I am using C# like languaje...

Thanks....!!!

Nov 19 '05 #2
Stefano wrote:
Hi,

you can make a POST.


You can also make your life hell. With POST, all requests become not
repeatable (-> browser warning on back button) and (in theory) non
cacheable. If that's what is desired -- fine. Otherwise forget about
using POST as the normal way to move from page to page *unless* you are
really submitting a form.

Cheers,

--
http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e
Nov 19 '05 #3

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

Similar topics

0
1408
by: Mihaly | last post by:
Hello, i'm using a VC++ com+ object, it's reference in vs .net, this com object have a function that have to params, the interop com object recive Object Params and the original com object say that this params are variants. I'm traying to pass "object" variables to the params but the com object return an error or a null object, the piece of code that i'm using is: using AgenObj;
2
15128
by: Tobias Olbort | last post by:
Hello, i've a outer function, which takes a params-array as a parameter. I want to pass this array to inner function with a params-array (e. g. string.format). When i've passed an integer to the outer function, the string.format sets the string-value "System.Object" at the position of {0}. How can i get it work, so that all my values, passed to the outer
0
1104
by: Dominik Tropper | last post by:
Dear all I have created a c# web project in VS.NET 2003 that contains a crystal report with two params. No problems until here, but executing the report selects the wrong records. My params are called {?PNumber} and {?PName} building a logical AND. They are defined as 'Discrete and Range Values' with the option 'Allow multiple values' checked. The following code snipped shows what's going on:
1
1883
by: M Jared Finder | last post by:
What are the rules for method overload resolution when there are functions with a params argument? No mention of params is made in section 7.4.2 of the C# specification on MSDN (titled "Overload Resolution"). -- MJF
3
1655
by: Stan Huff | last post by:
Is there any way to disable the "params" on a particular invocation so that one can pass an array containing the arguments and not have receiver get an array having you argument array stuffed into the first index? I have worked around this by getting the MethodInfo via reflection and invoking it there. Is there a simpler way? Thanks, Stan
6
2572
by: Praveen | last post by:
As you all know the value of input, checkbox and other "user editable" elements can be retrieved on postback via Request.Params list, if you know their ID. However, if there is a span element (for example) whose value gets updated via javascript when the user does something, that value is not made available as part of the Request.Params list. Persumably because "span" is not considered a "editable" element and it's value is not sent...
8
3182
by: David Duerrenmatt | last post by:
Hi there For some reasons, I've to use Python 1.5.2 and am looking for a workaround: In newer Python versions, I can call a function this way: func = some_function func(*params) Then, the list/tuple named params will automatically be "expanded" and
3
1885
by: rushik | last post by:
Hello, In our code i've seen somewhere fun1()->fun2(params), i m not able to understand what it means? our code is completely written in C++. Thanks Ru.
2
2573
by: FFMG | last post by:
Hi, I was looking at http://www.php.net/manual/en/function.call-user-func-array.php and I was wondering... Given, // -- function foo( &$params) {
0
9691
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10279
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
10255
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
10036
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
9092
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5473
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4150
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
3
2948
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.