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")...
Hi Mufasa,
Thanks for the tip. I will give it a try. Just a bit more informaton for you. There is actually another column I would need to group by as well as year:
ID Year GrossLand GrossImprovements
56 2002 0.00 5000.00
56 2002 1000.00 0.00
56 2004 2000.00 0.00
56...
I have a view which returns a list of records by year. What I would like to do is have one row returned in the view, even though there are two rows in the origin table. Here is an example of the data:
Current View Returns: (2 records)
Year GrossLand GrossImprovements
2002 0.00...
OK, I figured it out....I needed to remove the Page_Load method from my asp page (even though there was no code in there).
Thanks very much for your help. I learn a lot this way!
Mark
So. if I declare in the back end:
IMAGE = "http://www.tek-tips.com/images/logo.gif"
Image1.ImageUrl = IMAGE;
Then in my ASP page:
<asp:image runat ="server" ID = "Image1" />
It should display the image?
Yes, VS 2005. I have moved the Page Load code to the code behind class. I no longer get the no definition error. In fact I don't get any errors other than the image not displaying. Does the ImageURL string have to be in any special format?
Thanks
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.