Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Sumeet Mahajan #1
User Control - Accessing Properties from the Container Page
Dear all,
Please check my problem -
Problem:
I have created a User Control(UC1) for navigating between pages. There are 4
buttons on the user control. The click of each button opens up the
respective aspx page. All works fine. I have my UC placed on all the 4
containing pages. NOW the PROBLEM is that I want to save some data (from the
containing page) in the session variable when the user clicks on any of the
buttons in the User Control. CAN U suggets me where is the best place to
write the code for this and how do I achieve this..?
I am not able to figure out that when does the click event of the UC buttons
get fired and how to pass the information(data) to the UC for it to save it
in the session variable. AM I supposed to write a property for the User
Control?? If that's the case then how do I refer to the property of the UC
in the containg page in my JAVASCRIPT...???? (PLEASE HELP..???)
NOTE: The data I want to store in the session variable is generated using
DHTML on the fly. These are some selections that I want to store to be able
to generate my DataView using this data as the parameter.
many thanks to you
regards
Sumeet Mahajan
Sumeet Mahajan Guest
-
Template control not displaying Container properties
I am trying to create a templated control for asp.net 2.0 using the example found in the documentation, however when outputing <%# Container.Message... -
Child user control accessing parent properties
We have a user control (Titlebar) that loads other user controls (children) into itself based on a property set in the HTML: <fss:Titlebar... -
Setting Properties on a user control on from the Parent Page
"Eric Elliston" <eelliston@neighborhoodamerica.com> wrote in message news:OiPSIL2ZDHA.1492@TK2MSFTNGP12.phx.gbl... All and control end the -
accessing page variable from user control code behind
Hi all, I have a aspx page that inherits from a cs class which is common for all pages in my application. In that cs file, I define some... -
Access properties of parent page from user control
I am trying to build a control that can only be used on a page that inherits from a custom class. This base class as a series of public...



Reply With Quote

