Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 September 9th, 2007, 08:00 AM
Authorized User
Points: 395, Level: 6
Points: 395, Level: 6 Points: 395, Level: 6 Points: 395, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: London, , United Kingdom.
Posts: 73
Thanks: 4
Thanked 0 Times in 0 Posts
Default Accessing SelectMethod Property of SQLDataSource

Hi

I am trying to call a Method that retrieve records form a table in database. the method is defined in a class. But for some reason i am unable to access the "SelectMethod" property of the SQLDataSource Object. (The SQLDataSource Object i am trying to use is on line number 12). The Code is written bellow:



1 <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Products.aspx.vb" Inherits="MyCustomerSupport.Products" %>
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml" >
6 <head runat="server">
7 <title>Untitled Page</title>
8 </head>
9 <body>
10 <form id="form1" runat="server">
11 <div>
12 <asp:SqlDataSource ID="SqlDataSource1" runat="server">
13 <SelectParameters>
14 <asp:Parameter Name="parentCategoryId" Type="Int32" />
15 </SelectParameters>
16 </asp:SqlDataSource>
17 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CustomerSupport %>" SelectCommand="sprocCategorySelectList" SelectCommandType="StoredProcedure">
18 <SelectParameters>
19 <asp:ControlParameter ControlID="DropDownList1" Name="parentCategoryId" PropertyName="SelectedValue"
20 Type="Int32" />
21 </SelectParameters>
22 </asp:SqlDataSource>
23 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CustomerSupport %>" SelectCommand="sprocCategorySelectList" SelectCommandType="StoredProcedure">
24 <SelectParameters>
25 <asp:ControlParameter ControlID="DropDownList2" Name="parentCategoryId" PropertyName="SelectedValue"
26 Type="Int32" />
27 </SelectParameters>
28 </asp:SqlDataSource>
29 <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Style="left: 76px;
30 position: relative; top: 0px">
31 </asp:DropDownList>
32 <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" Style="left: 186px;
33 position: relative; top: 0px">
34 </asp:DropDownList>
35 <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" Style="left: 304px;
36 position: relative; top: -2px">
37 </asp:DropDownList></div>
38 </form>
39 </body>
40 </html>
41



Cheers
Sheraz
__________________
Cheers
Sheraz




Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing property from code behind in .ascx reks_dnet ASP.NET 1.0 and 1.1 Professional 1 May 23rd, 2007 08:35 AM
sqldatasource imjayakumar ASP.NET 2.0 Professional 3 May 21st, 2007 01:56 PM
Accessing Control Property pipelineconsulting ASP.NET 1.x and 2.0 Application Design 1 November 28th, 2005 02:48 PM
Accessing the property of the website jyoti_khera General .NET 0 January 28th, 2005 04:17 AM
OLE picture - accessing the picture property bdcrisp Excel VBA 0 December 7th, 2003 09:35 PM





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