Browse by Tags

Related Posts

  • passing parameters to GridView TemplateField ItemTemplate

    Hello to all, I hope there is an answer to my question... I have a GridView1 with the following columns: < Columns > < asp : BoundField DataField ="Action_by" HeaderText ="Action_by" SortExpression ="Action_by"> < HeaderStyle HorizontalAlign ="Center"...
    Posted to Data Presentation Controls (Forum) by falconzx on 03-19-2009, 12:00 AM
    Filed under: parameter, TemplateField, ItemTemplate, GridView
  • GridView with multiple datakeynames & ObjectDataSource Delete Method Parameter Problem

    I have a gridview that has two datakeynames. When trying to run the DeleteMethod, the gridview appears to be trying to pass both datakeys. My DeleteMethod expects a single parameter, so it crashes. I tried to limit the code below to the relevant parts. GridView: <asp:GridView runat="server"...
    Posted to Data Access and ObjectDataSource Control (Forum) by RetroGlider on 11-16-2008, 12:00 AM
    Filed under: Parameter, "object data source" codebehind ListView SelectedItemTemplate paging, asp .NET 2.0, Binding objectdatasource, datakey, DataKeyName OnItemDelete, datakeynames, GridViewiew, Gridview DataGrid, Gridview, ASP .NET 2
  • GridView parameter problem

    Hello, Here's my situation: 1. I have an interface consisting of a few TextBox objects and a DropDownList. I populate this from a collection object in my BLL and cycle through them by using two Button objects (one for moving backward and one for moving forward.) This is almost like using a DetailsView...
    Posted to Data Presentation Controls (Forum) by dawkirst on 05-19-2008, 12:00 AM
    Filed under: parameter, GridView
  • Nested Gridview passing parameters from GV to GV

    I am trying to nest two gridviews. But the problem I am having is trying to figure out how to pass a parameter to the ObjectDataSource the the 2nd GV is using. I was trying to use OnRowDataBound on 1st GV, but I am not sure how to get access to the ODS the 2nd GV is using so that I can pass the "id"...
    Posted to Data Presentation Controls (Forum) by JWalker67 on 08-19-2007, 12:00 AM
    Filed under: ObjectDataSource, parameter, RowDatabound, rowdatabound gridview, .NET Gridview Problems, asp net 2.0 gridview objectdatasource dynamic runtime, c#, ChildTable, Grid view rows, GridView FindControl Child Template Field, GridView getdata at row/column, Gridview_rowdatabound, GridViewiew, gridviewrow, GridView, GridView asp.net, gridview binding, RowDataBound gridview conditional values
  • problem with retrieving/displaying data based on form input

    Hi, I've developed a form which accesses a database through a data layer and sends parameters based on the form input. I have written the following code which works by checking if the textbox is empty and passing a null value as a string to the search parameter in the query, of which there are five:...
    Posted to Data Presentation Controls (Forum) by tomosap on 02-22-2007, 12:00 AM
    Filed under: Null, parameter, problem, querystring, records, rows, search, sql, sqldatasource, string, table adapter, textbox, Updateparameters, VB, access database, ADO.NET, ASP.net 2.0 GridView InsertParameters ControlParameter PropertyName, data, data access layer, database, databinding, datasource, If Statement, method, SELECT, FORM, GridView, label, GridView asp.net
  • CookieParameter/SQLDataSource driving GridView load out of sync

    I have been fighting this for an embarrasing amount of time and need some help. Here is the scenario: I have two dropdowns and a Gridview embedded inside a Panel. I want updates to be chained. In other words... 1. Select Item from dropdown#1 (w/AutoPostBack), then inside "SelectedIndexChanged" event...
    Posted to Data Presentation Controls (Forum) by Woodman on 02-13-2007, 12:00 AM
    Filed under: parameter, postback, selectedindexchanged gridview, GridView FilterExpression Date Values, GridView, GridView asp.net
  • How do I launch a method with a databound parameter from a gridview ?

    Hello ! I have a gridview, and I want to launch a custom method (to create a pdf file) I tried something like this : < asp:TemplateField HeaderText= "Générer PDF" ShowHeader= "False" > < ItemTemplate > < asp:LinkButton ID= "LinkButton1" runat= "server" CausesValidation= "False" Text= ...
    Posted to Data Presentation Controls (Forum) by cosmo0 on 01-19-2007, 12:00 AM
    Filed under: parameter, method, GridView
  • use 4 gridviews within one page with one datasource but specify different Select parameters

    i have a SQL table where i store different tasks associated with a project. there are four different task types that are simply specified by a column in the table. i have one sql data source and use a stored procedure to fetch all tasks. if i pass NULL for the task type, it will show all tasks but if...
    Posted to Data Presentation Controls (Forum) by Arsalan03 on 07-13-2009, 12:00 AM
    Filed under: GridView, data, c#, parameter, ASP.NET
  • Problem with GridView Update with SQL Parameters

    If I use UPDATE [PWL] SET [QTY] = @Quantity WHERE [Id] = @Id QTY changes to null If I use UPDATE [PWL] SET [QTY] = '1' WHERE [Id] = @Id. It works fine so I know it is the Parameter that is causeing the issue. Where else do I set the Parameter besides <UpdateParameters> <asp:Parameter...
    Posted to Data Presentation Controls (Forum) by KenNichols on 11-11-2009, 12:00 AM
    Filed under: GridView, sql, parameter
Page 1 of 1 (9 items)