Click here to Skip to main content
15,791,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Hi All,

             First i wanna clearly explain my problem.

 1.I have one Aspx page. (Test.aspx)
 2. Am using 3 web user controls (demo1.ascx,demo2.ascx,demo3.ascx)and call all the three at  my aspx.
 3. I have 3 tables in sql (National, International, Business)
 4. National- Contains data related to National
 5. International-  Contains data related to International
 5. Business-  Contains data related to Business
 3. Here my user controls retrieve data from DB. (EX: <b>demo1.ascx - National</b>
 <b><i></i>demo2.ascx - International</b>
 <b>demo3.ascx - Business</b> )

<b>Now i am Put same data in both National,International and Business table</b>

so when am run my aspx page all the 3 user controls having same data, but i wants to avoid repeated contents in my aspx page. Here am just call user controls at my aspx page and pass parameter only.
Posted
Updated 5-Feb-14 19:43pm
v2
Comments
Prasad Avunoori 6-Feb-14 0:45am    
Please broaden your Question.
Dhinesh kumar.V 6-Feb-14 1:40am    
Hi Prasad,

For Ex: I had put one data, Tendulkar retired from cricket at National and International table. But when am extract that data from DB by using National and International Id. Successfully finished yet. But my requirement is same data(tendulkar retired) shown at both user controls. this is not fair for my site. i wants to avoid this repeated data display at screen.

Thanks,
Dhinesh kumar Velmayil
Er. Ajay Chauhan 6-Feb-14 2:32am    
when bind data to 1st control, save ids in string array and then save it in a session... and when bind data to 2nd control then retrieve string array from session and filter data before binding in 2nd control and repeat this with 3rd control.......

1 solution

when bind data to 1st control, save ids in string array and then save it in a session... and when bind data to 2nd control then retrieve string array from session and filter data with the help of this string array before binding in 2nd control and repeat this with 3rd control.......
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900