Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:514161
More Search Options
RSS Available
Matching Posts
Hyperlink Field in Gridview works only with strings without spaces
I have a Gridview selecting values from a SQL table which has several hyperlinkfields like this one: <asp:HyperLinkField HeaderText="1" DataTextField="GridC1" DataNavigateUrlFormatString="./ScheduleIT.aspx?SlotID={0}" DataNavigateUrlFields="GridC1" NavigateUrl="./ScheduleIT.aspx?SlotID={0}" /> The idea for the hyperlink field is to pass data from the table to another aspx... If the content of the database field is a string with no spaces (i
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Hyperlink Field in Gridview works only with strings without spaces
Thanks Peter. From reading the link it appears that the functionality for nonalphanumeric characters is simply not supported. I wonder how it could have worked for AllStar??
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Hyperlink Field in Gridview works only with strings without spaces
I am including my code above. It is extracting data from table called CompSchedule. One of the fields in this table is GridC3. If GridC3 contains a string like *so/test1/test2 then the hover and click works fine and the resulting hover (and the functional click) is: ScheduleGame.aspx?SlotID=*so/test1/test2 If the GridC3 field contains: Fri 11/13/2009 17:50:00 NYA then the resulting hover shows (and the functional click) is: ScheduleGame.aspx?SlotID={0}
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Hyperlink Field in Gridview works only with strings without spaces
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Scheduling.aspx.vb" Inherits="Scheduling_Scheduling" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>comp Schedule</title> </head> <body> <form id="form1"
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Hyperlink Field in Gridview works only with strings without spaces
It looks like simple conversion of the Hyperlink Field to a Template field has fixed the problem. I'm testing it further but I think that it has answered my question. Thank You for your time.
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Hyperlink Field in Gridview works only with strings without spaces
heh. Yep. I'm Green with embarassment.
Posted to
Data Presentation Controls
(Forum)
by
Molap
on 11/3/2009
Re: Would it be just easier to write an XML string parser for situation when XML has multiple result sets?
I found a way to load the string: Dim s As New System.IO.MemoryStream(System.Text.ASCIIEncoding.Default.GetBytes(parsedString)) ds.ReadXml(s) This will load the info and I although the result returns 2 xml tables and I need the second one I was able to traverse to the second one by For Each table As DataTable In ds.Tables Now I would like to just do GridView1.DataSource = ds.Tables.Item(2) GridView1.DataBind()
Posted to
XML and XmlDataSource Control
(Forum)
by
Molap
on 8/1/2008
Re: readXML - Want to read an xml string and not a path to a document
oh. Sorry. That string may have been from another post and I just made it up. The real return values have allways 3 tables. 1st one is the status (success or errror), second one is how many records are in the third table and the third one is the actual records. I've got it working great now. Now I'm trying to figure out how to make the edit button work. I will have to capture the event on edit and capture the edited values from the grid and then behind the scened construct another API call
Posted to
XML and XmlDataSource Control
(Forum)
by
Molap
on 8/1/2008
Re: readXML - Want to read an xml string and not a path to a document
I figured it out. The xml actually returned 3 tables and the third one was the data I needed. I was able to reference the third table when filling the Gridview by: GridView1.DataSource = ds.Tables.Item(2) GridView1.DataBind()
Posted to
XML and XmlDataSource Control
(Forum)
by
Molap
on 8/1/2008
Re: readXML - Want to read an xml string and not a path to a document
Yes thank You. This is helpful. In the meantime I also found another way to load the string. I have done quick test and it appears to work ok. I wonder if I'll utilize it further. Dim s As New System.IO.MemoryStream(System.Text.ASCIIEncoding.Default.GetBytes(parsedString)) ds.ReadXml(s) This will load the info and I although the result returns 2 xml tables and I need the second one I was able to traverse to the second one by For Each table As DataTable In ds.Tables Now I would like to just do
Posted to
XML and XmlDataSource Control
(Forum)
by
Molap
on 8/1/2008
Page 1 of 7 (62 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online