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

how do I add additional path to Asp.Net expressions?

I 'm trying to do something like this but it doesn't come out correctly on
the browser side.

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl
%>/MyPage.aspx" Text="View My Page"></asp:HyperLink>

I've tried several variations of quotes to no avail

Any help

thanks


Dec 16 '07 #1
3 1133
You must load all the parameter value from code

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl %>"
Text="View My Page"></asp:HyperLink>

and if you want to add something, then:

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl +
"/MyPage.aspx" %>" Text="View My Page"></asp:HyperLink>

Regards,

Lukas Holota

"Coaster" <Co*****@Coaster.netwrote in message
news:#d**************@TK2MSFTNGP02.phx.gbl...
I 'm trying to do something like this but it doesn't come out correctly on
the browser side.

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl
%>/MyPage.aspx" Text="View My Page"></asp:HyperLink>

I've tried several variations of quotes to no avail

Any help

thanks

Dec 16 '07 #2
Great, thanks!!!

thats one combination I hadn't tried yet
<l.******@hotmail.comwrote in message
news:81**********************************@microsof t.com...
You must load all the parameter value from code

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl %>"
Text="View My Page"></asp:HyperLink>

and if you want to add something, then:

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl +
"/MyPage.aspx" %>" Text="View My Page"></asp:HyperLink>

Regards,

Lukas Holota

"Coaster" <Co*****@Coaster.netwrote in message
news:#d**************@TK2MSFTNGP02.phx.gbl...
>I 'm trying to do something like this but it doesn't come out correctly
on the browser side.

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl
%>/MyPage.aspx" Text="View My Page"></asp:HyperLink>

I've tried several variations of quotes to no avail

Any help

thanks


Dec 16 '07 #3
actually I spoke too soon. It throws an exception saying it cannot find the
key 'AppSettings: myUrl + '/MyPage.aspx'


"Coaster" <Co*****@Coaster.netwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
Great, thanks!!!

thats one combination I hadn't tried yet
<l.******@hotmail.comwrote in message
news:81**********************************@microsof t.com...
>You must load all the parameter value from code

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl %>"
Text="View My Page"></asp:HyperLink>

and if you want to add something, then:

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl +
"/MyPage.aspx" %>" Text="View My Page"></asp:HyperLink>

Regards,

Lukas Holota

"Coaster" <Co*****@Coaster.netwrote in message
news:#d**************@TK2MSFTNGP02.phx.gbl...
>>I 'm trying to do something like this but it doesn't come out correctly
on the browser side.

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl
%>/MyPage.aspx" Text="View My Page"></asp:HyperLink>

I've tried several variations of quotes to no avail

Any help

thanks



Dec 17 '07 #4

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

Similar topics

0
by: amit | last post by:
Hi. I need two regular expressions that will work in .Net The first one is for valid unc paths to file shares.. server,share,folder names can be any vailid windows name so these are valid...
1
by: Jason Gleason | last post by:
I'm trying to set up an http upload program that has almost identical code to the following page: ...
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
2
by: Stevet96 | last post by:
I am building a C++ library using VS .NET 2003. I am adding a library into the Additional Dependencies input box. I then click apply and check the resulting command line. This causes the library...
3
by: ksr | last post by:
Hi, I am looking for a regular expression that would extract UNC paths from a given string and place that inside a href. Currently the expression fails if there is a space in the path.. eg....
5
by: Jonathan | last post by:
Hello All, I am in the process of creating a 2/3 level collapsible/exspanible menu (called "nav") where users can click on a category and have the submenus appear beneath it and so on (allow...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
9
by: markla | last post by:
Hi, I have an EDM model, which I'm rendering using DynamicData pages. I need to add a derived/calculated field. For example, in a "Person" entity, I have LastName and FirstName. I need to...
2
by: anklos | last post by:
Hey, I need to use a additional lib on unix sever, I download the lib files in my home directory "./lib". I tried several ways to use it, but all failed for the same prompt Can't locate...
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: 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
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
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
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.