C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




image column in datagrid


Posted Date: 18 Sep 2006      Total Responses: 2

Posted By: Yasotha.P       Member Level: Gold     Points: 2


i am doing project in c#.net.

i want to insert an image column in datagrid with hyperlink.

i.e. if i click that image it will redirect to another page with that respective userid(datagrid column 1 values) as querystring.
how can i do that?

plse tell coding in c#.net

thanx in advance




Responses

Author: Shamala    18 Sep 2006Member Level: SilverRating:     Points: 2
Here is the code for an image column in datagrid with hyperlink:

<Columns>
<asp:TemplateField>
<ItemTemplate>
<a href="Default.aspx">
<asp:Image runat="server" Height="20" Width="20" ImageUrl="~/images/img.jpg" />
</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>


Author: Shamala    18 Sep 2006Member Level: SilverRating:     Points: 2
Here is the code for an image column in datagrid with hyperlink:

<Columns>
<asp:TemplateField>
<ItemTemplate>
<a href="Default.aspx?userid=1">
<asp:Image runat="server" Height="20" Width="20" ImageUrl="~/images/img.jpg" />
</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>


Post Reply
You must Sign In to post a response.
Next : image in datagrid
Previous : "Remember me Next Time" Option of Login Control
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use