Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 February 16th, 2007, 05:08 PM
Authorized User
Join Date: Feb 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default problems with multiple parameters and datagrid

Hi I have been trying to pass 2 parameters to the querystring using datagrid and I keep getting parser errors:
System.Web.UI.WebControls.DataGridColumnCollection must have items of type 'System.Web.UI.WebControls.DataGridColumn'. 'TemplateColumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'

here is my code below, any ideas of how I could fix this?

<asp:DataGrid ID="ProcDataGrid" AutoGenerateColumns="false" runat="server" OnItemDataBound="ProcDataGrid_ItemDataBound" Width="191px">
       <asp:HyperLink Runat="server" NavigateUrl='<%#_
          "ProcessDetail.aspx?ProcName=" & Container.DataItem("ProcName") & _
          "&isInDictionary=" & Container.DataItem("isInDictionary") %>' >

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid/Hyperlink w multiple parameters gobotsoup ASP.NET 2.0 Basics 11 February 21st, 2007 05:49 PM
FilterExpression multiple parameters/placeholders NigelBronson ASP.NET 2.0 Basics 0 September 27th, 2006 04:57 PM
2000 Multiple Parameters jpenn Reporting Services 1 July 19th, 2006 01:39 PM
Multiple parameters for a datagrid jgsuter ASP.NET 2.0 Professional 1 June 14th, 2006 09:31 AM
Multiple Selection on Report Parameters dkaco BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 4 October 1st, 2004 11:05 AM

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