Solved

a href querystring error

Posted on 2011-03-01
3
449 Views
Last Modified: 2012-05-11
by putting the relevant a href,

it is getting invalid url in the popup.aspx,,
aspx.cs
-------
litMedia.Text = "<li><a id='inline' href=""popup.aspx?strapp=" & NewDS1.Tables(0).Rows(i)("ID") & ">" & NewDS1.Tables(0).Rows(i)("Subject").ToString() & "</a></li>"

browser
-------
http://localhost/GTSEClaims/popup.aspx?strapp=1>THIS IS IGTSDEV!!!!!</a></li><li><div id ='1' class=

Open in new window

0
Comment
Question by:doramail05
  • 2
3 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 35013692
What do you expect it to be?
0
 
LVL 5

Expert Comment

by:Kelmen
ID: 35013695
popup.aspx?strapp=" & HtmlUtil.HtmlEncode(NewDS1.Tables(0).Rows(i)("ID")) ...
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 35013739
need double closing quotes after the href
litMedia.Text = "<li><a id='inline' href=""popup.aspx?strapp=" & NewDS1.Tables(0).Rows(i)("ID") & "">" & NewDS1.Tables(0).Rows(i)("Subject").ToString() & "</a></li>"
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

770 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