objectdatasource.

  • Thread starter motorhead_maniac
  • Start date
M

motorhead_maniac

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
 
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

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,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top