[asp.net c#] GridView datasource XML.doc, trying to get XML element as a dynamic Hyperlink, Googling is coming up with nothing. Would appreciate any help given or feed back given, quite stumped.

I'm quite stumped.

http://ift.tt/1O31u6d

I'm trying to get 'Link' value as a hyper linke, the current source of the gridView is an XML doc. How do I go about on doing this?

Any help would be appreciated.

Thanks

GridView:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> <Columns> <asp:BoundField HeaderText="Jop ID" DataField="jobID" /> <asp:BoundField HeaderText="Job Category" DataField="jobCategory" /> <asp:BoundField HeaderText="Title" DataField="title" /> <asp:BoundField HeaderText="Location" DataField="location" /> <asp:BoundField HeaderText="Description" DataField="description" /> <asp:BoundField HeaderText="Salary" DataField="salary" /> <asp:BoundField HeaderText="Date" DataField="dateCreated" /> <asp:BoundField HeaderText="Link" DataField="link" /> <asp:ButtonField Text="Apply" ButtonType="Button" DataTextFormatString="link" /> </Columns> </asp:GridView> 

XML~~~~______________________________________________________-

<?xml version="1.0" standalone="yes"?> <jobs> <job> <jobID>14</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>Well hame</company> <title>tillywillyboy</title> <location>Dublin</location> <description>dsfadsf</description> <requirements>sdkfasdfa</requirements> <terms>Permanent</terms> <salary>25000</salary> <dateCreated>04/09/2015 21:53:14</dateCreated> <Link>~/Job.aspx?id=14&amp;empId=1</Link> </job> <job> <jobID>15</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>sdf</company> <title>asdf</title> <location>Dublin</location> <description>asdf</description> <requirements>asdf</requirements> <terms>Permanent</terms> <salary>25000</salary> <dateCreated>04/09/2015 21:54:36</dateCreated> <Link>~/Job.aspx?id=15&amp;empId=1</Link> </job> <job> <jobID>16</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>asdfa</company> <title>asdf</title> <location>Dublin</location> <description>asdf</description> <requirements>asfd</requirements> <terms>Permanent</terms> <salary>25000</salary> <dateCreated>04/09/2015 22:05:00</dateCreated> <Link>~/Job.aspx?id=16&amp;empId=1</Link> </job> <job> <jobID>17</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>Well sham</company> <title>fuck you too</title> <location>Dublin</location> <description>joe duffy smells</description> <requirements>well isn't it all great </requirements> <terms>Permanent</terms> <salary>2500</salary> <dateCreated>04/09/2015 22:17:20</dateCreated> <Link>~/Job.aspx?id=17&amp;empId=1</Link> </job> <job> <jobID>18</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>asfd</company> <title>asdf</title> <location>Dublin</location> <description>asdf</description> <requirements>asdf</requirements> <terms>Permanent</terms> <salary>2500</salary> <dateCreated>04/09/2015 22:35:43</dateCreated> <Link>~/Job.aspx?id=18&amp;empId=1</Link> </job> <job> <jobID>19</jobID> <empID>1</empID> <jobCategory>Finance</jobCategory> <company>asdf</company> <title>asfd</title> <location>Dublin</location> <description>safd</description> <requirements>asf</requirements> <terms>Permanent</terms> <salary>25000</salary> <dateCreated>04/09/2015 22:39:08</dateCreated> <Link>~/Job.aspx?id=19&amp;empId=1</Link> </job> </jobs> 

by Tiddleywanksofcum via /r/csharp

Leave a Reply