| | |
Linking to E-mail through datagrid
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Ok guys, here is what the problem is.
I have a column "reference number", now I want to make a column for "email" and depending what value is in the ref. No cell, the email will change accordingly, here is an example.
If the reference number is "THVP" then I want the email cell on the same row to be zorba@hotmail.com and if the reference number is "SHVP" then I want the email cell on the same row to be slade@hotmail.com can anybody help me out here? Please?
Any help would be tremendously appreciated.
I have a column "reference number", now I want to make a column for "email" and depending what value is in the ref. No cell, the email will change accordingly, here is an example.
If the reference number is "THVP" then I want the email cell on the same row to be zorba@hotmail.com and if the reference number is "SHVP" then I want the email cell on the same row to be slade@hotmail.com can anybody help me out here? Please?
Any help would be tremendously appreciated.
Formerly known as Slade.
hey don't worry about it, I did it myself (I got lazy too), What I did was instead of worrying about that, I worried about the actual e-mail link in the datagrid even working. So I created another column in my database table called "Email" and manually entered the e-mails in according to ref. No. then for the e-mail column in the datagrid I used this code.
ASP.NET Syntax (Toggle Plain Text)
Inquire/Apply
Formerly known as Slade.
my bad, I used this code
ASP.NET Syntax (Toggle Plain Text)
<asp:TemplateColumn SortExpression="Email" HeaderText="E-mail"> <HeaderStyle Width="12%"></HeaderStyle> <ItemTemplate> <asp:HyperLink id=lnkEmail runat="server" NavigateUrl='<%# "<A href="mailto:"&">mailto:"& DataBinder.Eval(Container.DataItem,"Email") %>'>Inquire/Apply</asp:HyperLink> </ItemTemplate> </asp:TemplateColumn>
Formerly known as Slade.
![]() |
Similar Threads
- Looking For Interested 3 Way Linking Websites (Relevant Link Exchanges)
- how to resize datagrid (VB.NET)
- datagrid (VB.NET)
- Displaying datagrid on second form (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Identification of Web Forms
- Next Thread: Newbie Needs Help with this ASPX
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn checkbox class click commonfunctions compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dropdownlist dropdownmenu dynamic edit embeddingactivexcontrol expose findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list login menu microsoft mono mssql multistepregistration nameisnotdeclared numerical objects order panelmasterpagebuttoncontrols problem ratings rotatepage save schoolproject search security serializesmo.table silverlight smartcard sql sqlserver2005 ssl suse textbox tracking unauthorized validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment webservice wizard xml youareanotmemberofthedebuggerusers





