By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

ASP Hyperlink with absolute NavigateURL? is it possible

P: n/a
Dear Friends

My asp hyperlink goes to relative address instead of absolute. I like
navigate url goes to outsite link like www.asp.net but now, it goes to
www.mysite/www.asp.net

please help.
I create the navigatURL from database dynamically.
I see the same question mentioned here but the response is not souitable for
me: http://www.dotnet247.com/247referenc.../11/57708.aspx
Also, I want to open a new browser window without button and menu but when I
put imagebutton in a itemtemplate of datagrid, the opened browser has all
buttons and menus. Is there is way I can use javascript like windows.open
.... status=no or use hyperlink asp control and open brower like as I said.
Thank you very much in advance.

Best Regards
Amir Eshterayeh
ae*********@hotmail.com
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Amir,

Hyperlink can take absolute urls. Try clicking on NavigateURL in design mode
and you have a ddl where you can specify the type.. whether its doument /
root relative or absolute.
as far as opening a new window is concerned that again is not a problem
cause you can specify the target... i am using frames in one instance and i
target a different frame to load the actual page...
as far as using window.open or something like that... well have a look at
registerclientscriptblock.
well that you can pass a javascript function in a string and that string is
written to client's browser and can be vbscript or javascript... you can
write you own code to use window.open with all params...and sizes etc... and
can even like it with your hyperlink... add something like this
onclick="openwin();"
openwin being the javascript function to open new window the way you would
like to.

Hope this helps,

regards,

HD

"Amir Eshterayeh" <ae*********@yahoo.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Dear Friends

My asp hyperlink goes to relative address instead of absolute. I like
navigate url goes to outsite link like www.asp.net but now, it goes to
www.mysite/www.asp.net

please help.
I create the navigatURL from database dynamically.
I see the same question mentioned here but the response is not souitable for me: http://www.dotnet247.com/247referenc.../11/57708.aspx
Also, I want to open a new browser window without button and menu but when I put imagebutton in a itemtemplate of datagrid, the opened browser has all
buttons and menus. Is there is way I can use javascript like windows.open
... status=no or use hyperlink asp control and open brower like as I said.
Thank you very much in advance.

Best Regards
Amir Eshterayeh
ae*********@hotmail.com

Nov 18 '05 #2

P: n/a
Dear Sir
Thank you. I want to change the NavigateURL 's absolute property at run
time using code which I can not find such a property. Do you have an idea? I
have both types of url so I want to change from relative to absolute in code
for hyperlink control. Is there a way?
thanks in advance amir eshterayeh
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Amir,

Hyperlink can take absolute urls. Try clicking on NavigateURL in design mode and you have a ddl where you can specify the type.. whether its doument /
root relative or absolute.
as far as opening a new window is concerned that again is not a problem
cause you can specify the target... i am using frames in one instance and i target a different frame to load the actual page...
as far as using window.open or something like that... well have a look at
registerclientscriptblock.
well that you can pass a javascript function in a string and that string is written to client's browser and can be vbscript or javascript... you can
write you own code to use window.open with all params...and sizes etc... and can even like it with your hyperlink... add something like this
onclick="openwin();"
openwin being the javascript function to open new window the way you would
like to.

Hope this helps,

regards,

HD

"Amir Eshterayeh" <ae*********@yahoo.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Dear Friends

My asp hyperlink goes to relative address instead of absolute. I like
navigate url goes to outsite link like www.asp.net but now, it goes to
www.mysite/www.asp.net

please help.
I create the navigatURL from database dynamically.
I see the same question mentioned here but the response is not souitable for
me: http://www.dotnet247.com/247referenc.../11/57708.aspx
Also, I want to open a new browser window without button and menu but when I
put imagebutton in a itemtemplate of datagrid, the opened browser has

all buttons and menus. Is there is way I can use javascript like windows.open ... status=no or use hyperlink asp control and open brower like as I said. Thank you very much in advance.

Best Regards
Amir Eshterayeh
ae*********@hotmail.com


Nov 18 '05 #3

P: n/a
Amir,

<td height="25">
<asp:HyperLink id="lnkDownloads" runat="server"
cssclass="CommandButton" Target="itemdisplay"
NavigateUrl=http://www.microsoft.com/downloads/search.aspx?displaylang=en
Downloads</asp:HyperLink> </td>

nothing to worry bout absolute... or relative... and just works fine on my
machine....

hope this helps...

hd
"Amir Eshterayeh" <ae*********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Dear Sir
Thank you. I want to change the NavigateURL 's absolute property at run
time using code which I can not find such a property. Do you have an idea? I have both types of url so I want to change from relative to absolute in code for hyperlink control. Is there a way?
thanks in advance amir eshterayeh
"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:OU**************@TK2MSFTNGP11.phx.gbl...
Amir,

Hyperlink can take absolute urls. Try clicking on NavigateURL in design mode
and you have a ddl where you can specify the type.. whether its doument /
root relative or absolute.
as far as opening a new window is concerned that again is not a problem
cause you can specify the target... i am using frames in one instance and i
target a different frame to load the actual page...
as far as using window.open or something like that... well have a look

at registerclientscriptblock.
well that you can pass a javascript function in a string and that string

is
written to client's browser and can be vbscript or javascript... you can
write you own code to use window.open with all params...and sizes etc...

and
can even like it with your hyperlink... add something like this
onclick="openwin();"
openwin being the javascript function to open new window the way you would like to.

Hope this helps,

regards,

HD

"Amir Eshterayeh" <ae*********@yahoo.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
Dear Friends

My asp hyperlink goes to relative address instead of absolute. I like
navigate url goes to outsite link like www.asp.net but now, it goes to
www.mysite/www.asp.net

please help.
I create the navigatURL from database dynamically.
I see the same question mentioned here but the response is not
souitable for
me: http://www.dotnet247.com/247referenc.../11/57708.aspx
Also, I want to open a new browser window without button and menu but

when
I
put imagebutton in a itemtemplate of datagrid, the opened browser has

all buttons and menus. Is there is way I can use javascript like windows.open ... status=no or use hyperlink asp control and open brower like as I said. Thank you very much in advance.

Best Regards
Amir Eshterayeh
ae*********@hotmail.com



Nov 18 '05 #4

P: n/a
Mira, yo programo en .NET utilizando Visual Studio .NET. He utilizado el
HyperLink y nunca he tenido problemas debido a que tienes que tener en mente
lo siguiente: Estas en un sitio http://www.sitio.com/ Puedes establecer en
la propiedad NavigateURL del control lo siguiente respuestas/hyperlink.aspx
que el lo tomará como una dirección relativa, ahora bien, estableces en la
propiedad http://www.otrositio.com/preguntas/preguntas.aspx y el lo tomará
como una dirección absoluta.
Espero que esto te ayude a la hora de utilizar el HyperLink.

Fuccio DaVietre

"Amir Eshterayeh" <ae*********@yahoo.com> escribió en el mensaje
news:ug**************@tk2msftngp13.phx.gbl...
Dear Friends

My asp hyperlink goes to relative address instead of absolute. I like
navigate url goes to outsite link like www.asp.net but now, it goes to
www.mysite/www.asp.net

please help.
I create the navigatURL from database dynamically.
I see the same question mentioned here but the response is not souitable for me: http://www.dotnet247.com/247referenc.../11/57708.aspx
Also, I want to open a new browser window without button and menu but when I put imagebutton in a itemtemplate of datagrid, the opened browser has all
buttons and menus. Is there is way I can use javascript like windows.open
... status=no or use hyperlink asp control and open brower like as I said.
Thank you very much in advance.

Best Regards
Amir Eshterayeh
ae*********@hotmail.com

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.