asp.net 2.0 web control public property problems

G

Guest

Im writing my first asp.net 2.0 app, and wrote a small part of it as a web
control.
I dragged it on the webform and that looks ok, but in the codebehind I dont
see any of the public properties. The control works ok when I run the page
in my browser, but I cant get into it programatically.
Any help would be greatly appreciated. My research has so fast let me
pretty frustrated.
 
G

Guest

Ive gotten a little further ... in my aspx I can see the properties in the
..ascx control and set them. However when I run through it in the debugger I
can see that the properties are being correctlly set in the events in the
..ascx file, but when control goes back to the aspx I only see the values I
set in the properies.

The controls in the .ascx all have autopostback=true, there isnt a "submit"
button on it.
 
G

Guest

The "solution" was not to 1) place the values of the controls in literals and
2) expose the literals via properties. I had not been doing 1).
 

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,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top