473,399 Members | 3,106 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,399 software developers and data experts.

Rewrite Url

Hi All,

I need to open a aspx page in a new browser on an event.But wanted to hide the actual url from user .

for example-If i have a link 192.254.56.1/mysite.com/Default.aspx?id=1

but Instead of this I will show this as

192.254.56.1/mysite.com/xyzcompanyname.


the abovelink should be shown with respect to some company name rather than the pagename and parameter.

Please let me know how we can implement this using c#.Net.

Thanks in Advance.

192.254.56.1/mysite.com/xyzcompanyname.
Oct 20 '08 #1
6 1312
joedeene
583 512MB
You could make a site with basically a frame, that masks the URL you're at? Like, you'll be on mysite.com/mymask and the frame could be set to mysite.com.mymask/myasp.aspx. Something like that ?

joedeene
Oct 20 '08 #2
HI ..

Thanks for the response.But I need to open it in a new window.Basically I will have a link in default page and on selecting the link will open new browser with url
like: http://mysite.com/mypage.aspx?id=2.This url I need to mask .instead of showing as above I need to show the url as http://mysite.com/companyname in the new browser. /mypage.aspx?id=2 should be mapped with companyname which is entered by user.We need to use the concept called url rewriting I gues..Kindly let me know if any other way we can implement this.
Oct 21 '08 #3
PRR
750 Expert 512MB
Hi All,

I need to open a aspx page in a new browser on an event.But wanted to hide the actual url from user .

for example-If i have a link 192.254.56.1/mysite.com/Default.aspx?id=1

but Instead of this I will show this as

192.254.56.1/mysite.com/xyzcompanyname.


the abovelink should be shown with respect to some company name rather than the pagename and parameter.

Please let me know how we can implement this using c#.Net.

Thanks in Advance.

192.254.56.1/mysite.com/xyzcompanyname.
How about Server.Transfer? As long as your pages are there in same server...
Second way would be urlmapping

<system.web>
<urlMappings enabled="true">
<add url="~/page.aspx" mappedUrl="~/index.aspx?id=1"/>
<add url="~/page1.aspx" mappedUrl="~/index.aspx?id=2"/>
<add url="~/page2.aspx" mappedUrl="~/index.aspx?id=3"/>
</urlMappings>

</system.web>
Oct 21 '08 #4
Yeah,I thought of the same way.Server.Transfer is the way to redirect from one page to other.Can we use this to open a new browser too.if so could be please brief about it.

Thanks
Oct 21 '08 #5
PRR
750 Expert 512MB
Yeah,I thought of the same way.Server.Transfer is the way to redirect from one page to other.Can we use this to open a new browser too.if so could be please brief about it.

Thanks
i guess so.. also you should look in to Window.open(); You can hide the address bar there ..
Oct 21 '08 #6
Hi,

Searching in forums I found opening new window using server.transfer is not possible.Where I used span control to open link in new window ,But the problem is how we can point the link to the page i need to redirect.do we need to use something like httphandlers or urlrewriting.
Oct 21 '08 #7

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

Similar topics

0
by: Link | last post by:
Hello!I am new to Python and I would like to rewrite the following code to python use to call by C program:// JPython code ======================================= import...
1
by: darrel | last post by:
We're using URL rewriting (Isapi Rewrite). Is there any way to grab the pre-rewritten URL or can you only grab the rewritten one? I'm assuming you can't (as that's sort of the point of URL...
2
by: VM | last post by:
I'm about to work on a 'buggy' WIndows C GUI application that was entirely made in C. All the user controls were all hard-coded and the code is pretty hard to understand. The application was made...
1
by: baroque Chou | last post by:
Thanks for the help available on msdn, I have succesful done the rewrite job. But there are 2 problems arise: 1.when I try to rewrite the url from say: www.yoursite.com/beverages.aspx to...
14
by: Stan Canepa | last post by:
This post is mostly for discussion. Why rewrite in .NET? Just a general discussion not related to any specific details. I was just looking to see what reasons developers are looking to, to help...
18
chunk1978
by: chunk1978 | last post by:
hi everyone. i just started learning how to dynamically show/hide elements with a checkbox toggle. i would like to know if it's possible to delete/rewrite elements instead of simply show/hide...
1
by: polilop | last post by:
Is there a URL rewrite module that allows to rewrite url by looking at the database. Egxample: http://www.somesite.com/object.aspx?objectCountryId=1&objectId=22 now i look into the database, see...
1
by: mazdotnet | last post by:
Hi all, I've installed the new Microsoft URL Rewrite Module for IIS 7.0 http://www.iis.net/downloads/default.aspx?tabid=34&i=1691&g=6 on both my laptop (Vista Home Premium) and my desktop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
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...
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...
0
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,...
0
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...

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.