Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Adding Parameters in code, how?

Reply
Thread Tools

Adding Parameters in code, how?

 
 
Jeff
Guest
Posts: n/a
 
      10-28-2008
hi

asp.net 2.0

I have a ObjectDataSource which I in my code wants to create the
SelectParameters for.
(reason as this GridView is used on multiple pages and hence sometime
parameters will differ)

ObjectDataSource ods = (ObjectDataSource)LoginView1.FindControl("odsCars" );
ods.SelectParameters.Add(new Parameter());

Problem, i don't know what arguments to send into the Paramer() constructor.
I want to define parameter name, default value (or value) and datatype

any suggestions?




 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a
 
      10-28-2008

"Jeff" <(E-Mail Removed)> wrote in message
news:Olq$(E-Mail Removed)...
> hi
>
> asp.net 2.0
>
> I have a ObjectDataSource which I in my code wants to create the
> SelectParameters for.
> (reason as this GridView is used on multiple pages and hence sometime
> parameters will differ)
>
> ObjectDataSource ods =
> (ObjectDataSource)LoginView1.FindControl("odsCars" );
> ods.SelectParameters.Add(new Parameter());
>
> Problem, i don't know what arguments to send into the Paramer()
> constructor. I want to define parameter name, default value (or value) and
> datatype
>
> any suggestions?
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
skipping template parameters inside template parameters kito C++ 2 09-26-2010 12:04 AM
Class Member Data and Member Function Parameters - Should Parameters Be Data Members? Jason C++ 2 05-13-2006 07:11 AM
does a "parameters"-parameter overwrite the "parameters"-object? Florian Loitsch Javascript 11 03-15-2005 03:33 PM
Servlet parameters different from the command line parameters? Jonck van der Kogel Java 2 05-26-2004 11:34 PM
Re: Stop .Net editor from adding ID parameters to tags? news.microsoft.com ASP .Net 0 05-03-2004 08:18 PM



Advertisments