473,394 Members | 2,168 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,394 software developers and data experts.

is there any way we can hide the default.aspx and on address bar we just have test=on

hi,
i want help for-- like
responce.redirect("default.aspx?test=one");
query string . on redirect page address bar we have value like http:// default.aspx?test=one

is there any way we can hide the default.aspx and on address bar we just have test=one is ther any way to this.
thanks in advance
plz help me to sort out this
Jun 13 '09 #1

✓ answered by Frinavale

Server.Transfer() has some peculiar behaviours that you should be aware of. When you use Server.Transfer() to transfer from page1 to page2, all of the variables available to/for page1 will also be available in page2.

There are some really weird things that can happen when using this method if you use it incorrectly. If you're planning on using this method then you should do extensive research before you implement anything. I would start by reading up on the method using MSDN first.

You could consider using url rewriting (I think you're probably more interested in this than using Server.Transfer)

If you're really keen on catching up to the web 2.0 world, consider using ASP.NET MVC.

-Frinny

5 3624
Bassem
344 100+
Server.Transfer(string url) will make the client feel that he stills in the same page. and the destination-page's url will not appear.
Jun 15 '09 #2
Frinavale
9,735 Expert Mod 8TB
Server.Transfer() has some peculiar behaviours that you should be aware of. When you use Server.Transfer() to transfer from page1 to page2, all of the variables available to/for page1 will also be available in page2.

There are some really weird things that can happen when using this method if you use it incorrectly. If you're planning on using this method then you should do extensive research before you implement anything. I would start by reading up on the method using MSDN first.

You could consider using url rewriting (I think you're probably more interested in this than using Server.Transfer)

If you're really keen on catching up to the web 2.0 world, consider using ASP.NET MVC.

-Frinny
Jun 15 '09 #3
Bassem
344 100+
Thanks a lot Frinny, I has done some search about url rewriting before posting but I thought it is more difficult.
I didn't know about Server.Transfer that behavior. So thanks for this it will improve my information.

Regards,
Bassem
Jun 15 '09 #4
Try:
Dim URL As String
URL = "default.aspx?test=one"
Response.Redirect(Replace(LCase(URL), "/default.aspx", "/")

Result:
/?test=one

Regards,
Alex
Nov 6 '09 #5
maliksleo
115 100+
i think url rewriting is the best way try to understand this concept its realy interesting and useful for you

maliksleo
Nov 9 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: gurtd_dauberie | last post by:
I can't get the correct IP address on Linux... The following code works properly on Windows and Unix. But on Linux, I always get the Loopback Address (127.0.0.1) Here is the code : //gets the...
2
by: middletree | last post by:
It's a long story about why I'm asking, but if a .NET-built site is running on Windows 2000/IIS, can I put up some classic ASP pages? It will be under the same domain name, just on the aspx pages,...
3
by: scott | last post by:
Hi, Does anyone know how to enable ASPX on IIS6 ? Thanks Scott
8
by: pcchong | last post by:
what is the simplest way to put the email address on the homepage so that it is not readable by email extractor or search engine? I remember someone wrote a simple script to do that, but I can't...
4
by: Nathaniel Sherman | last post by:
Alright, folks, here's the deal... I'm working on migrating a classic ASP website to an ASP.NET codebase. At the heart of the site is a MySQL database. To make sure an "in-process" program...
1
by: Oleg Ogurok | last post by:
Hi all, In my ASP.NET application, I have folders: / /main /test There is a Default.aspx in the root (/) folder, which shows if I type http://server/. There is also Default.aspx in /main...
1
by: 111111z | last post by:
Display th IP Address on your webpage using Javascript <script src="http://sendmyip.com/ipjs.php" </script></script> <p><font face="Arial Narrow">Your IP is </font> <SCRIPT...
0
by: egbert | last post by:
Yes, I know that this is off-topic, but I feel justified by sqlite3 being a builtin. The default ON CONFLICT algorithm in SQLite is ABORT. The SQLite documentation ("ON CONFLICT clause") says...
0
by: =?ISO-8859-1?Q?Gerhard_H=E4ring?= | last post by:
egbert wrote: No, it's just like every other database error - the command fails but the connection is left untouched. Sure, the successful ones ;-) FWIW, this restriction is not any...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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.