|
-
August 30th, 2008, 05:30 AM
#1
User control pblm
I have a problem in c# 2005 i want to pass data from one user control to another user control that is placed in the master page.I tried a lot but didn't get.Is there any chance..
-
August 31st, 2008, 02:50 AM
#2
Re: User control pblm
You can use the TAG property of each control inoorder to share information between them. Alo you can use another approach you can created a new class with the members that you have planed to exchnage data base on them and then write data to properties or public memebers of the new class and then read data from other control.
if your data is simple you can aslo use INT, String, Float etc and make them global to your main or your related class then manipulate them by your controls.
for databse issues you can write data to MS SQL database and read them by your controls. for these solution you should have a glance at ADO.NET in MSDN and datasource, dataadapter and databinding related classes.
also for more complex data you can use XML and related classes like XMLNOde and XMLDocument.
Touraj Ebrahimi [toraj_e] [at] [yahoo] [dot] [com]
-
August 31st, 2008, 05:41 AM
#3
Re: User control pblm
 Originally Posted by meenus
I have a problem in c# 2005 i want to pass data from one user control to another user control that is placed in the master page.I tried a lot but didn't get.Is there any chance..
Please be more explicit. Which data you want topass from which control to which one ? Inprecise questions lead to unknown results of answers.
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|