By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,786 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,786 IT Pros & Developers. It's quick & easy.

Why doesnt this work?

P: n/a
Hi

Why doesnt this work?

<% CatID = dsMain.SelectParameters("fkCatID").ToString%>
or
<% CatID = Eval("fkCatID") %>

Anyone have a solution?

MC
May 7 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mark Cooney wrote:
Hi

Why doesnt this work?

<% CatID = dsMain.SelectParameters("fkCatID").ToString%>
or
<% CatID = Eval("fkCatID") %>

Anyone have a solution?

MC
In what way doesn't it work? What is "fkCatID"? What do you intent the
code to do?

--
Göran Andersson
_____
http://www.guffa.com
May 8 '07 #2

P: n/a
I am creating an ASPX page.

2 SqlDataSources dsMain and dsMinor
2 Repeaters, Repeater1 and Repeater2

One Table, HTML not control.

Repeater1 is calling dsMain and making Main Headings

I need Repeater2 to call dsMinor which I am doing successfully and then to
take fkCatID from dsMain which is a column in my db, put it into the
commandparameter CatID for dsMinor so that Repeater2 can then input in HTML
table contents of the Filtered dsMinor.

Hope that makes sense?
MC

"Göran Andersson" <gu***@guffa.comwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
Mark Cooney wrote:
>Hi

Why doesnt this work?

<% CatID = dsMain.SelectParameters("fkCatID").ToString%>
or
<% CatID = Eval("fkCatID") %>

Anyone have a solution?

MC

In what way doesn't it work? What is "fkCatID"? What do you intent the
code to do?

--
Göran Andersson
_____
http://www.guffa.com

May 8 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.