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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|