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
804 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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 Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

785 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