Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Coaster - 16 Dec 2007 10:30 GMT
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
l.holota@hotmail.com - 16 Dec 2007 13:13 GMT
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

> I 'm trying to do something like this but it doesn't come out correctly on
> the browser side.
[quoted text clipped - 7 lines]
>
> thanks
Coaster - 16 Dec 2007 14:14 GMT
Great, thanks!!!

thats one combination I hadn't tried yet
> You must load all the parameter value from code
>
[quoted text clipped - 21 lines]
>>
>> thanks
Coaster - 17 Dec 2007 05:10 GMT
actually I spoke too soon. It throws an exception saying it cannot find the
key 'AppSettings: myUrl + '/MyPage.aspx'

> Great, thanks!!!
>
[quoted text clipped - 24 lines]
>>>
>>> thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.