Click here to Skip to main content
15,908,013 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Difference between VB.NET and ASP,NET Pin
Guffa16-Aug-06 18:51
Guffa16-Aug-06 18:51 
GeneralRe: Difference between VB.NET and ASP,NET Pin
Suresh Pirsquare17-Aug-06 4:33
Suresh Pirsquare17-Aug-06 4:33 
AnswerRe: Difference between VB.NET and ASP,NET Pin
Guffa17-Aug-06 12:31
Guffa17-Aug-06 12:31 
QuestionBooks to buy on ASP .net ? Pin
Meena T Shivaram16-Aug-06 16:27
Meena T Shivaram16-Aug-06 16:27 
AnswerRe: Books to buy on ASP .net ? Pin
_AK_16-Aug-06 19:25
_AK_16-Aug-06 19:25 
AnswerRe: Books to buy on ASP .net ? Pin
Meena T Shivaram17-Aug-06 2:44
Meena T Shivaram17-Aug-06 2:44 
AnswerRe: GridView1_RowDataBound Pin
Jay_se16-Aug-06 18:31
Jay_se16-Aug-06 18:31 
QuestionMaster Pages and Passing Variables [modified] Pin
kalyanPaladugu16-Aug-06 14:04
kalyanPaladugu16-Aug-06 14:04 
I have a MainMaster Page. I created SubMaster page using the above MainMaster page.
I creted a Content Page called MyContentPage using this SubMaster Page. I have a Label
inside the SubMasterPage. I want to Grab the Value of the Label in my MyContentPage.

This is what i did for this

I have a label like this in SubMaster Page.

asp:Label ID="Label1" runat="server"

In SubMaster Page cs file i just assign a string called Test to the Label1
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Label1.Text = "Test";
}
}

In MyContentPage i did this below

protected void Page_LoadComplete(object sender, EventArgs e)
{
string test = (Master.FindControl("Label1") as Label).Text;

}

The above one is throwing up an null point exception error
Object reference not set to an instance of an object

Now i Created a content page using the MainMaster Page and repeated the above process
and it seems to work fine(i.e able to pass the label value from MainMaster Page to Content Page)

Can you guys tell me what iam doing wrong with the first case as soon as possible






-- modified at 20:19 Wednesday 16th August, 2006
AnswerRe: Master Pages and Passing Variables Pin
minhpc_bk16-Aug-06 15:38
minhpc_bk16-Aug-06 15:38 
QuestionApply css stylesheet to asp.net pages Pin
digsy_16-Aug-06 9:09
digsy_16-Aug-06 9:09 
AnswerRe: Apply css stylesheet to asp.net pages Pin
eggsovereasy16-Aug-06 9:43
eggsovereasy16-Aug-06 9:43 
GeneralRe: Apply css stylesheet to asp.net pages Pin
eggsovereasy16-Aug-06 9:44
eggsovereasy16-Aug-06 9:44 
AnswerRe: Apply css stylesheet to asp.net pages Pin
Guffa16-Aug-06 10:12
Guffa16-Aug-06 10:12 
GeneralRe: Apply css stylesheet to asp.net pages Pin
eggsovereasy17-Aug-06 3:34
eggsovereasy17-Aug-06 3:34 
QuestionASP.NET TAB in IIS Pin
seee sharp16-Aug-06 7:31
seee sharp16-Aug-06 7:31 
AnswerRe: ASP.NET TAB in IIS Pin
Mike Ellison16-Aug-06 10:32
Mike Ellison16-Aug-06 10:32 
QuestionRe: ASP.NET TAB in IIS Pin
seee sharp17-Aug-06 2:53
seee sharp17-Aug-06 2:53 
Questionhelp me see where i did wrong pls Pin
neodeaths16-Aug-06 6:28
neodeaths16-Aug-06 6:28 
AnswerRe: help me see where i did wrong pls Pin
Jesse Squire16-Aug-06 6:40
Jesse Squire16-Aug-06 6:40 
AnswerRe: help me see where i did wrong pls Pin
Guffa16-Aug-06 7:21
Guffa16-Aug-06 7:21 
GeneralRe: help me see where i did wrong pls Pin
neodeaths16-Aug-06 8:35
neodeaths16-Aug-06 8:35 
AnswerRe: help me see where i did wrong pls Pin
Guffa16-Aug-06 10:14
Guffa16-Aug-06 10:14 
GeneralRe: help me see where i did wrong pls Pin
neodeaths16-Aug-06 15:02
neodeaths16-Aug-06 15:02 
AnswerRe: help me see where i did wrong pls Pin
Guffa16-Aug-06 19:01
Guffa16-Aug-06 19:01 
GeneralRe: help me see where i did wrong pls Pin
neodeaths17-Aug-06 21:14
neodeaths17-Aug-06 21:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.