Yikes...it appears that the HtmlEncode propety is not available for a template field! It looks like I am going to have to get creative with this and write some code-behind or something...Any ideas?
I think we're getting closer, however, for some reason ASP doesn't like my string:
Results of NavigateURL:
http://localhost:2080/start.aspx?MSLINK=3529&MAPIMAGE=http://www.tek-tips.com/images/logo.gif
Error Returned:
'~/PropInfo.aspx?PID=018-793-428...
Still get this error:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'MAPIMAGE'.
MAPIMAGE is a variable set from a querystring. I need to pass this variable into the NavigateURLString.
I converted to a template field but am still getting an error. Any ideas?
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("PID", "~/PropInfo.aspx?PID={0}") + "&Image=" + Eval("MAPIMAGE") %>'
Text='<%# Eval("MSLINK") %>'></asp:HyperLink>...
The URL turns out like this:
http://localhost:2080/PropInfo.aspx?IMAGE=<%=MAPIMAGE%>&PID=000-786-748
I did try something similiar but I got some sort of error regarding code blocks not allowed in that context...
I am having trouble getting the syntax correct for passing a variable into a URL from a Hyperlink field.
I have a string variable named MAPIMAGE. I would like to pass it to the URL after the "IMAGE=" section, then, get the next paramater from a table value.
How can I do this...
I have some simple xml:
<users>
<title>Floor1</title>
<user>
<fullname>John Doe</fullname>
<ID>Binary Avenue 1234 FL</ID>
<email>john@john-domain.com</email>
<lat>2</lat>
<lon>4</lon>
</user>
</users>
I am trying to retrieve the value of "lat" where "fullname=John Doe" using this...
Hmmm...is it easier, or better to use PHP and/or Xquery? Are ther javascipt libraries available for parsing XML? if so, are there any you can suggest?
Thanks,
Mark
Is it possible to populate a list box with data from an xml file, then, get the selected item from the list box and query an xml file and return a few nodes of data into an array or variables?
Any reply would be greatly appreciated!
QF
Is it possible to populate a list box with data from an xml file, then, get the selected item from the list box and query an xml file and return a few nodes of data into an array or variables?
Any reply would be greatly appreciated!
QF
Ahhh...of course...
Now that it works, I have perhaps a tricker question. The data in my list is in the format:
"Penner, Fred"
"Pitt, Brad"
The data getting sent to the variable is only the text up to the comma. Does this make sense?
QF
I have some code that populates a list box from a database. I am trying to assign the value of the list box to a variable when the user clicks on a button. For some reason, my code does not set the variable. Any ideas? Here is the code I am using:
<?php
require("phpsqlajax_dbinfo.php")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.