Solved

a href querystring error

Posted on 2011-03-01
3
447 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

708 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