473,440 Members | 1,937 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,440 software developers and data experts.

code behind in a web user control

I'm puzzled!

In a web user control (ascx) I embed some server controls.
I drop the web user control onto an aspx page.
In the web user control's code behind I would like to manipulate the
user control's properties every time the page is loaded.

All this is fine. The ascx code behind runs every time the aspx page
runs and in the debugger I can verify that the properties are getting
set the way I want.
My only problem is the controls on the user control are not changed
visually. The user control's properties set on the first page load
remain the same.

How do I make the user control change visually?

Morten

Nov 19 '05 #1
2 1366
Can you post a snipped of your code or List the prop's?

--
Daniel Fisher(lennybacon)
MCP ASP.NET C#
Blog: http://www.lennybacon.com/
"hansiman" <ha***@hotmail.com> wrote in message
news:gv********************************@4ax.com...
I'm puzzled!

In a web user control (ascx) I embed some server controls.
I drop the web user control onto an aspx page.
In the web user control's code behind I would like to manipulate the
user control's properties every time the page is loaded.

All this is fine. The ascx code behind runs every time the aspx page
runs and in the debugger I can verify that the properties are getting
set the way I want.
My only problem is the controls on the user control are not changed
visually. The user control's properties set on the first page load
remain the same.

How do I make the user control change visually?

Morten

Nov 19 '05 #2
sorry, got in contact with the developer (ComponentArt). It seems to
be a problem with the xml file of the component.

On Mon, 3 Jan 2005 22:53:39 +0100, "Daniel Fisher\(lennybacon\)"
<info@(removethis)lennybacon.com> wrote:
Can you post a snipped of your code or List the prop's?


Nov 19 '05 #3

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

Similar topics

2
by: adiel | last post by:
Hello, I am trying to access the properties and methods from a user control within the code-behind file for a webform but I am receiving the message: Name 'MenuBar1' is not declared It does...
3
by: Scott Collens | last post by:
Hi there, does anyone know if it is possible to set a value in a user control and pick it up in the code behind. I'm trying to reuse the same user control and code behind for multiple pages but...
7
by: Gene | last post by:
I have a number of aspx pages on which a single user control appears. All of the aspx pages and the user control make user of code-behind modules. I need for logic in the user control's code-behind...
2
by: Ric | last post by:
im new to asp.net. from what i understand, you have the aspx file (presentation), user-control(ascx file), code-behind(vb file) and components(compiled vb and dll files). the aspx file contains a...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
2
by: N. Demos | last post by:
I have a user control with code behind of which two instances are created/declared in my aspx page. The aspx page has code behind also, as I need to access methods of the usercontrols on page...
1
by: hansiman | last post by:
I'm puzzled! In a web user control (ascx) I embed some server controls. I drop the web user control onto an aspx page. In the web user control's code behind I would like to manipulate the user...
9
by: Alan Silver | last post by:
Hello, I have a user control which I am trying to load dynamically, but am running into problems. I think the problem is because I have two .ascx files that refer to the same .ascx.cs file. A...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.