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

Template user control

Hi,

I've created a template user control and followed the example on the
MSDN (the message template with fruit as the example).

However, my template needs to be an input control, similar to login;
in that the developer can specify a template or use the default
layout. I've got it working however, if I create my template in the
Page_Init, as in the example, when I do a post back the value of the
control as entered by the user is lost. When I move the template
creation to Page_Load everything seems to be ok.

I've used reflector to look at the login control to see how it works,
and although its not a user control it is the sort of thing I'm trying
to do.

I'm using OnBubbleEvent to detect the post vack and raise my own event
with appropriate eventargs. My only concern is that I can't use
Page_Init (or CreateChildControls) as in the MS code example. Anyone
else have experience of this?

TIA.

Jun 27 '08 #1
0 1113

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

Similar topics

0
by: microdevsolutions | last post by:
Hello I am using ASP.NET - I have written a Custom Control (to output some information) that has a public property declared. I have a user control that is a wrapper around the above custom...
1
by: Barry | last post by:
I have a DataList in which I need to dynamically load a SelectedItemTemplate. However, I ended up turning the template into a User Control because I needed code behind. The reason I did this was...
1
by: Abhishek Srivastava | last post by:
Hello All, In almost all websites which I have developed, we need to follow a layout template (header, footer, menu on left hand side etc) In ASP.NET solutions, we can do this in two ways ...
3
by: Sachin | last post by:
I started a new solution using enterprise template project, added WebUI project to that. Now I want to add web user control (*.ascx) to this project. But i'm not getting web user control in the...
1
by: Chrysan | last post by:
I have created a User Control(.ascx) which include few 3rd-party control on it. And, I would this User Control to appear on all my .aspx pages. How can I add this User Control in my...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
0
by: Isz | last post by:
PROBLEM: This problem is related to the postback and handling events correctly. BACKGROUND: I have a datalist which acts as a tabbes list with horizontal layout. This datalist is bound to a...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
0
by: sreehari | last post by:
Hi, I have a problem and dont have much clue on how to proceed with it. il try to describe the situation best below. I have a user control, and two forms which i have exported as template...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.