.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to access values from masterpage to its content page

Posted By: Vikramraj     Posted Date: April 29, 2011    Points:5   Category :C#
i have deloped Wepapplication in C#.net 2010 and use backend as MS SQL Server 2005 project in that project i write insert Query which is working properly in that application when run.

But when i run it from IIS then that Qry dosnt work properly.

and all values from masterpage gets cleared.



Responses
Author: Ravishankar       [Moderator]      
Posted Date: May 01, 2011     Points: 20   

Hi Vikram,
Check the path because while using from IIS,there will be some conflict with access path.

Ravishankar Singh
Author: Maverick             
Posted Date: May 04, 2011     Points: 20   

Hello,

You can access the master page contents as follows.

DropDownList ddlDepartmentName = (DropDownList)Master.FindControl("ddlDepartmentName");

will give me the dropdownlist created in masterpage.

Hope it helps.

Thanks,
Maverick


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend