DataSourceControl implementation and SlectParameters

W

WT

Hello,
I am trying to implement a DataSourceControl and I need to simulate the same
functionality as the SqlDataSourceControl : being able to set declaratively
the select parameters to use when binding a DetailView to the Selected Row
in a GridView, but I have difficulties with the sample in MSDN concerning
DataSourceControl, Visual Studio give me an error on the
<Parameter><asp:ControlParameter...../> lines: My control doesn't accept
child controls ???
What am I missing to allow this declarative style ?
Should I simply name my properties SelectParameters, InsertParameters,
DeleteParemeters, etc. to allow DetailView to send these parameters in the
method
protected override IEnumerable ExecuteSelect(DataSourceSelectArguments
selectArgs)

Thanks for help
CS
 
S

Steven Cheng[MSFT]

Hi CS,

Thank you for posting.

Regarding on this issue, I've found your another duplicated post in the
following newsgroup:

Subject: DataSourceControl and declarative SelectParameters
Date: Fri, 21 Apr 2006 12:30:14 +0200
Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols

I've posted my response there. And if you feel it convenient that we
continue to discuss in that thread, please feel free to post there.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top