473,387 Members | 1,597 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,387 software developers and data experts.

q: accept parameter

Hello,
Hello my aps.net web application should accept a parameter and do different
things based on whether the parameter is given or not.

If the application is accessed as www.MyWebApp.aspx go to one method
If the application is accessed as www.MyWebApp.aspx?Par go to another method

What is the easiest way to accomplish this?
May 22 '06 #1
1 1087
Check Request.QueryString collection.

Eliyahu

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
Hello,
Hello my aps.net web application should accept a parameter and do
different
things based on whether the parameter is given or not.

If the application is accessed as www.MyWebApp.aspx go to one method
If the application is accessed as www.MyWebApp.aspx?Par go to another
method

What is the easiest way to accomplish this?

May 22 '06 #2

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

Similar topics

2
by: Patrik Carlsson | last post by:
I have a problem using Xerces with a template for a generic page-header getting a sub-tree as argument. The same stylesheet is working flawlessly in IE and Mozilla, though it would be nice to have...
6
by: Boogie El Aceitoso | last post by:
Hi, I'm writng a function that works an a std::string and should accept either an iterator or a reverse_iterator. How can I do this? O:-)
3
by: CoolPint | last post by:
Can anyone explain how I can make the following function accept an default arguement for the last parameter, which should be an optional functor? template <typename T, typename FUNCTOR> void...
3
by: Odd Bjørn Andersen | last post by:
When our application tries to send a parameter of the type adDBTimeStamp to DB2 we an error message saying SQLSTATE 22007 An invalid datetime format was detected; that is, an invalid string...
2
by: Rookie | last post by:
Hi, I was writing a simple program using sockets. The program is supposed to be a TCP server that receives a string sent by the client. For this purpose I defined a char array called readString...
4
by: Shawn B. | last post by:
Greetings, I know I can create class that "implicit"ly accepts an 8-bit to 64-bit value. Without using double, or single, I would like to create my own "unsigned" 128-bit valuetype (to be used...
2
by: Ed | last post by:
how can I make a parameter accept etiher richtextbox or textbox controls? currently My parameter is (ByVal txtBox as system.windows.form.textbox). This creates an error if the txtBox is of type...
2
by: jim Bob | last post by:
Hi, I have a query with the criteria of (!..) Or !.. When I provide the value from qmylist, a second pop up appears waiting for the value from lstResults. If I enter nothing and click ok, it...
0
debasisdas
by: debasisdas | last post by:
The following sample code is designed to display the use of accepting a list of values in a single parameter and process the same in the where clause inside a procedure. STEP1:-First create an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
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...

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.