ddl datasource and User.Identity.Name (2.0)

G

Guest

I have a drop down list of saved searches for a user and i'm trying to use
the datasource control to populate the ddl. The select value in the
storedproc is the user.Identity.name. How can i use this parameter? it's not
a form field, nor a session, but it's there. Any idea how i can get this?
 
G

Guest

Thanks for responding,
i agree, but how do you reference it for a datasource parameter? Is it a
control? a session variable, or cookie, or other? that's my problem i not
sure how to reference it from my page to the datasource.

--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
 
G

Guest

Thanks again for responding,
I was able to figure out how to do it. I have to save out the userid as a
hidden field. Now granted this is not the correct way to do it so i will be
dropping the datasource and doing it the 1.1 by creating a datalayer with
datareaders, and so on...
However, your response raises a relevent issue. If the datasource is not
designed for this: In my case drop down lists. What is it designed for?
MS has been pushing it's use and the most common examples are drop downs and
dataviews. It is designed to accept parameter, the wizard asks for parameters
when the sp or qry asks for them, but only a limited set of types. Cookie,
session, control, url, form, but not useridentity. I realize the "real"
programmers don't use drag and drop, but again the point of all the 2.0 stuff
is to make it easier for the non-programmer. I think it is designed for this
purpose, but it's just not fully developed. Here and else where 2.0 seems to
have some holes that need to be filled.


--
thanks (as always)
some day i''m gona pay this forum back for all the help i''m getting
kes
 
N

Not Me

WebBuilder451 said:
Thanks again for responding,
I was able to figure out how to do it. I have to save out the userid as a
hidden field. Now granted this is not the correct way to do it <snip>

Well that's how I did it in my work ;)

cheers,
Chris
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top