473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

asp.net 2.0 web control public property problems

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.
Jun 20 '06 #1
4 2570
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.

"MarkAurit" wrote:
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.

Jun 20 '06 #2
Why not discuss this at
news://microsoft.public.dotnet.frame...ldingcontrols?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"MarkAurit" <Ma*******@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
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.

"MarkAurit" wrote:
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.

Jun 21 '06 #3
aspnet.buildingcontrols or aspnet.webcontrols?

"clintonG" wrote:
Why not discuss this at
news://microsoft.public.dotnet.frame...ldingcontrols?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"MarkAurit" <Ma*******@discussions.microsoft.com> wrote in message
news:BE**********************************@microsof t.com...
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.

"MarkAurit" wrote:
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.


Jun 21 '06 #4
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).

"MarkAurit" wrote:
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.

"MarkAurit" wrote:
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.

Jun 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
2
by: BluDog | last post by:
Hi I have a created a custom web control called ImageBrowser, extract is below: <Code> #Region "Properties" Public Property Images() As ImageCollection
7
by: Buddy Ackerman | last post by:
I created this class Public Class HTMLFileInput : Inherits System.Web.UI.HtmlControls.HtmlInputFile Public Property Data As String Get Return ViewState("HTMLFileInput.Data") End Get Set...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
0
by: Brian Young | last post by:
Hi all. I'm using the Property Grid control in a control to manage a windows service we have developed here. The windows service runs a set of other jobs that need to be managed. The control...
10
by: Yuk Tang | last post by:
Another step on the road to enlightenment, aka producing a UI. I've added a webbrowser control to a form, and I want it to fill the space of the form. Playing around with docking, left, top,...
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
0
by: Christian | last post by:
Hi all, i already posted this in dotnet.vb.controls but i need some help, so i cant wait... I have written a web control library and have some problems with it. The Library contains only two...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.