Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > asp.net datagrid control > december 2006

Button in GridView causes Invalid postback or callback argument
Posted by dev648237923 at 12/28/2006 5:35:29 PM
In my GridView I have a button in the Footer. When I click it it causes: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this featu...more >>

Creating Template Fields from code
Posted by Henrik Skak Pedersen at 12/28/2006 1:20:53 PM
Hi, I have a template field looking like this: <asp:TemplateField> <ItemTemplate> <asp:Image ID="Image1" Width="75" Height="100" ImageUrl='<%# GetURL(DataBinder.Eval(Container.DataItem, "Picture") as System.Byte[]) %>' Runat=server /> </ItemTemplate> </asp:Te...more >>

Displaying images in the DataGrid
Posted by Henrik Skak Pedersen at 12/27/2006 8:51:21 PM
Hi, I have a Datasource which contains strings fields and a binary field containing a image. How do I display them in the DataGrid using data binding? Normally in Windows Forms Applications is it very easy to bind to image controls, but do I do it in ASP? Thanks Henrik. ...more >>

Custom Paging - ASP.NET Grid + SQL 2000
Posted by Logu Krishnan at 12/27/2006 11:30:09 AM
in short, the question is "How do i do custom paging in my asp.net grids" in SQL 2000. if i use default paging and if my db has ~200000 records, then i have to select all the 2 lac records then bind to the grid. whereas i've to show only 50 rows... so if i do custom paging i can implement t...more >>

GridView Update?
Posted by sebastian.buschdorf at 12/12/2006 12:00:00 AM
Hello, I'm new in programming with ASP.NET 2.0 and I have a problem with the updating of the Grid View! I have one GridView with a connection to a database, three textboxes and a button! The Values of the textboxes should wrote down to the database, after clicking the button! That's worked,...more >>

Format Date in BoundField
Posted by stefanjohansson_2005 NO[at]SPAM yahoo.se at 12/8/2006 7:06:44 AM
I have the code below to display and format a date column in a GridView. This works when the GridView is in read mode. But when I select Edit the date is no longer formated with DataFormatString. What should I do? <asp:BoundField DataField="StartDate" HeaderText="StartDate" SortExpression="St...more >>

feeding a seesion/parameter value to Gridview
Posted by staffan at 12/7/2006 12:00:00 AM
Hi I am quite new to asp.net and before in old asp I used Session variables with <% %> to have dynamic parametrars in a SQL Stmt for example. But the serverside tag don´t accept <% %>. So what should a use? Is there serverside sessions and how do I use them or is there a simple method to us...more >>

HyperLink with an image
Posted by Samuel Shulman at 12/6/2006 6:05:06 PM
Below is the code that I use <asp:TemplateField> <ControlStyle Height="75px" Width="75px" /> <ItemStyle Height="75px" Width="75px" /> <ItemTemplate> <asp:HyperLink ID="HPF1" runat="server" Height="75px" Width="75px" ImageUrl='<%# Eval("ImageFilePath") %>' NavigateUrl='<%# Eval("Produc...more >>



Datagrid and child collections
Posted by lightsaberwiz NO[at]SPAM gmail.com at 12/4/2006 9:25:12 AM
Hi I am writing a program that has the following structure: YearlySemesterPlans (collection object that contains a collection of YearlySemesterPlan) | | |---> YearlySemesterPlan (Object that holds a semester 'year' and uses that to grab a child object 'SemesterPlans') ...more >>


DevelopmentNow Blog