Click to See Complete Forum and Search --> : User control pblm


meenus
August 30th, 2008, 05:30 AM
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..

toraj58
August 31st, 2008, 02:50 AM
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]

JonnyPoet
August 31st, 2008, 05:41 AM
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.