Groups | Blog | Home
all groups > asp.net webcontrols > october 2006 >

asp.net webcontrols : how to map the given name to different domain


Yoshitha
10/14/2006 12:00:00 AM
Hi
recently i've gone through this site http://www.nuvvo.com/signup

in one of the fields in the form we need to enter our website name
http://.learnhub.net
so entered some name in textbox (abc for eg)
so later it redirected me to
http://abc.learnhub.net/......

how it mapped to that site with the text i entered in the text box?

can any one tell me how to do this is asp.net using c#.net (Vs2003). ?

i want to do exact task in my application.

thankx in advence
Jyothi.


Phil H
10/14/2006 3:09:50 AM
Hi

Use the Response object method Response.redirect(address) in one of the
page events. The address can be read from any text the user types into
a text box.

So, for example, if you have a texbox named txtAddress and say a link
button named lbRedirect then put the following code in the click event
for lbRedirect:

Response.redirect(txtAddress.text)
Yoshitha
10/16/2006 9:44:17 AM

Hi Phil

that is not answer to my question. once again read my post you will get what
i'm asking.
It is redirecting to same web site though we gave different names in textbox

for e.g. if i enter abc in text box then it is redirect me to this site
http://abc.learnhub.net/......
if i enter xyz in textbox then it is redirecting me to the same site but the
some part of url is different
http://xyz.learnhub.net/......

can you tell how this is possible?
Regards
Jyothi


[quoted text, click to view]

AddThis Social Bookmark Button