Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2007, 05:03 AM
vbn vbn is offline
Authorized User
 
Join Date: May 2005
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

The following code displays jobs in the datagrid control and depends on the user selection it will display the details of the job in the another page detaildisplay.aspx.

<div align="left" style="padding-left:30px">
<asp:DataGrid
  ID="dgrdNewJobs"
  AllowPaging="True"
  OnPageIndexChanged="NewJobsPage"
  PageSize="15"
  PagerStyle-HorizontalAlign="left"
  GridLines="None"
  Cellspacing="4"
  AutoGenerateColumns="False"
  ShowHeader="False"
  Runat="Server">
<Columns>
<asp:BoundColumn
  DataField="job_entrydate"
  DataFormatString="{0:m} : " />

<asp:HyperLinkColumn
  DataTextField="job_briefdesc"
  DataNavigateUrlField="job_id"
  DataNavigateUrlFormatString="~/sitejob/detaildisplay.aspx?id={0}"/>

 <asp:TemplateColumn HeaderText="FAQ Description">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "job_area") %>
</ItemTemplate>
</asp:TemplateColumn>

</Columns>
</asp:DataGrid></p>

Develop web accounting application using asp.net
http://www.vkinfotek.com







Similar Threads
Thread Thread Starter Forum Replies Last Post
How to design a HyperLinkColumn in Datagrid? taoree ASP.NET 1.0 and 1.1 Basics 12 May 30th, 2007 10:37 AM
Passing value from HyperLinkColumn to UserControl 62vette ASP.NET 1.0 and 1.1 Basics 0 April 19th, 2006 06:16 AM
HyperLinkColumn amantona Classic ASP Professional 2 April 5th, 2004 08:35 AM
HyperLinkColumn amantona ASP.NET Espanol 0 April 5th, 2004 03:35 AM
how to link asp pages without MSvisual Interdev meena Classic ASP Basics 2 October 1st, 2003 08:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.