Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > objectdatasource.

Reply
Thread Tools

objectdatasource.

 
 
motorhead_maniac
Guest
Posts: n/a
 
      05-04-2006
hi all,

how can i define a objectdatasource on my page that refers to the code
behind class in the TypeName, if i specify "this" it doesnt recorgnizes
it, if i specify the actual control_classname, it doest recognize it

thanks a lot
 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      05-05-2006
If you mean the ID in the tag, that is NOT the name of the control on the
server side. It is useful in JavaScript (client side) only.

In ASP.NET 1.x, the model was to manually enter in a tag for the control and
using the name in the tag (on the raw, not rendered, page), like:

protected MySuperControl mySuperControl1;

This gives you the option to control the control in Code Behind/Beside. Now
that we are dealing with partial classes, there are instances where this
wire is not necessary, but there is still some disparity between tagged
portions and coded portions, so it is worth a shot.

Hope this makes sense. If not, post back with more specifics on the problem
(a simple code sample to repro is nice).

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"motorhead_maniac" <> wrote in message
news:...
> hi all,
>
> how can i define a objectdatasource on my page that refers to the code
> behind class in the TypeName, if i specify "this" it doesnt recorgnizes
> it, if i specify the actual control_classname, it doest recognize it
>
> thanks a lot



 
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




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57