473,657 Members | 2,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to retain user control property values

JOHNYKUTTY
10 New Member
Help
I am new to c#.net,
and i am developing an application.
For that, I want to retain some property values.
That is, for example,
I changed the selected index of a combobox at the time of debugging the app, and my need is to retain this index after restarting my app(that is once closed and again started).
Please help me to achieve this
thanks in advance
Feb 24 '11 #1
0 1038

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1011
by: Amir Eshterayeh | last post by:
Dear Friends Hope things goes well to you. I have this problem. Would you please give me your solution? I want to change a property that I define on my user control in my web form that contains that user control. but when I want to set the property of user control at my web form, got this error c:\inetpub\wwwroot\test4\WebForm1.aspx.vb(19): Name 'Uc1' is not declared. How can I solve this problem. Please help.
1
1034
by: derek_heasley | last post by:
Thanks in advance. I have a user control on a aspx page. i pass a querysting to the aspx page and set the property to that value. I see this happen when I step through. This happens first. Then as the user control loads the property isn't set. Why would the value not be there after I just set it.
2
991
by: Steph | last post by:
Hello, I have an user control with any public propertys. I wand set up propertys directlly in a code behind of a page where he will be put in, and not directly in the aspx page. How can I refer this us in my cs page ? thanks for your help
16
2005
by: David Gacek | last post by:
Anyone know how to ... make a user control property that shows up in the property pages and allows one to select a value from a set of values ? like a combobox for example ?
0
985
by: ian | last post by:
I have a user control which I am using as a web part. I have a property which is editable when editing the web part (by using the attribute). What I want to know is, is there a way of defaulting the property value when the web part is added to a page for the first time?
0
1616
by: Alli | last post by:
I have a web user control with a property that has the browsable attribute set to true, but property doesn't show up in the HTML design property window when I add the control to a web form. My property is: Imports System.ComponentModel .... <DesignerSerializationVisibility(DesignerSerializationVisibility.Visible),
2
5881
by: Sridhar | last post by:
Hi, I have a user control which has a textbox control and a button. I have created a property to get and set the text box value. In the Page_Load method of the Page that contains the user control, I am setting the textbox value that is inside the user control. When I click the button that is inside the user control and try to access the textbox value it is getting empty string instead of the value set in the Page_Load. I have tried...
0
944
by: Paul | last post by:
I created a user control. It has a text box in it. Everything works fine. However, when I place my control on a form, many of the properties are already in bold. This is supposed to mean that something other than the default was chosen for those properties. But that is not correct. The properties are set to their "default" value. Example of my code for one property: <Browsable(True),...
8
6394
devonknows
by: devonknows | last post by:
Hi, I have a property page for my user control that has a text box and a button on it, when the user enters text into the text box and clicks the button i want a new label to appear on the user control but im unsure of how to do this, And i dont want to have to add loads of blank labels as that is rather impractical and would take up unecessary memory. If anyone could help i would be most appreciated Kind Regards Devon
2
1046
by: Mehrdad | last post by:
Hi all, I am creating a user control. I added a new class as the property of the control. but the value of the class elements are not saved in the form designer. What is my wrong? Any experience? Any help would be appreciated. Thanks, Mehrdad
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4151
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.