Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
How to access values from masterpage to its content page
April 29, 2011
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.
Posted Date: May 01, 2011 Points: 20
Check the path because while using from IIS,there will be some conflict with access path.
Posted Date: May 04, 2011 Points: 20
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.
To post reply
Related Questions Related Questions
How to access Master Page control from another web form
How to access the control in the master page from a child page?
how to pass values of controls from windows form to web page in .net
PreviousPage property is returning null from Content Page
PreviousPage property is null in my content page
Showing Word File on webpage as a web page content
Sharepoint 2010 Master page sticky footer at the bottom irrespective of the content
Content page is not visible Only master page is visible
how to get the printing page content..
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend