Solved

Setting ASP:Hyperlink controls  NavigateURL attribute to somepage.aspx?file=<XPath(@path)> where path is some html file on server

Posted on 2008-06-18
2
794 Views
Last Modified: 2012-06-27
n my aspx file i am using asp:hyperlink

            <asp:HyperLink ID="link" runat="server" Text='<%# XPath("@id") %>' NavigateUrl= 'Somepage.aspx?file=  <%# XPath("@Path") %>'
                    Font-Names="Verdana" Font-Size="X-Small"></asp:HyperLink> |

and getting the error "the server tag is not well formed". for NavigatURL attribute
without - Sectionlayer.aspx?file=  part i am getting the Xpath value correctly in NavigateUrl.
there is some problem in quotes in NavigateURL attribute.can u plz let me know where am i going wrong in Navigateurl attribute.
0
Comment
Question by:Nileshlulla
2 Comments
 
LVL 4

Assisted Solution

by:itzdarc
itzdarc earned 100 total points
ID: 21819269
The <%# tag takes over the entire property value... which means you can't do "somepage.aspx"<%#...

The good news is that you can make this execute code also... so you can do...

NavigateURL='<%# "Somepage.aspx?file=" + XPath("@id") %>'


Below:


<asp:HyperLink ID="link" runat="server" Text='<%# XPath("@id") %>' NavigateUrl= '<%# "Somepage.aspx?file=" + XPath("@Path") %>' Font-Names="Verdana" Font-Size="X-Small"></asp:HyperLink>
0
 

Accepted Solution

by:
Nileshlulla earned 0 total points
ID: 21939640
thx itzdarc for ur time.

But i got the solution and it is :
NavigateUrl= '<%# XPath("@id", "article.aspx?file={0}")%>'

can anyone help me for the pager control with numeric and previous and next button in the below order.
previous  1 2 3 4 5 6 7 .... 10 20  next.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now