Solved

a href querystring error

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating textboxes in red square borders. 2 32
HTML5 storage and web apps 11 44
CSS DIV Height in Percent 1 25
CSS Style on Chrome 1 33
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

685 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