Click here to Skip to main content
15,888,521 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUsing a CheckBoxList inside of a Calendar control ? Pin
Daniel23514-Oct-09 8:35
Daniel23514-Oct-09 8:35 
QuestionASP.Net HTML Editor at Runtime? Pin
hifiger200412-Oct-09 22:14
hifiger200412-Oct-09 22:14 
Questionhosting website for JSP platform Pin
sangeeta200912-Oct-09 7:40
sangeeta200912-Oct-09 7:40 
AnswerRe: hosting website for JSP platform Pin
Aman Bhullar12-Oct-09 19:05
Aman Bhullar12-Oct-09 19:05 
GeneralRe: hosting website for JSP platform Pin
sangeeta200914-Oct-09 4:59
sangeeta200914-Oct-09 4:59 
QuestionPlans, Guidelines and Decisions for a Charity Web Application Project Pin
Voulnet12-Oct-09 3:56
Voulnet12-Oct-09 3:56 
AnswerRe: Plans, Guidelines and Decisions for a Charity Web Application Project [Crosspost] Pin
Richard MacCutchan12-Oct-09 5:03
mveRichard MacCutchan12-Oct-09 5:03 
QuestionDoes not Work - Literal1 control in MasterPage.Master Pin
hifiger200411-Oct-09 7:59
hifiger200411-Oct-09 7:59 
Hi Guys,

I have a problem here and I don't know if why does the Literal1 control in MasterPage.Master will not change the value.

What I am currently doing is to call the Litera1 control of MasterPage.Master from the content page. And when I tried this one I got an error that says - Object reference not set to an instance of an object". I really don't know why does the calling Literal1 control when call at runtime and change the value of it, it just didn't reflect the changes, and I even got an error that says - "Object reference not set to an instance of an object". I am stuck with this portion. I pasted below here a sample of asp.net/C# source codes. Actually the error is pointing here ltlBodyTitle.Text = "<b>hello</b>";


MasterPage.Master:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
      <title></title>
      <asp:ContentPlaceHolder id="head" runat="server">
      </asp:ContentPlaceHolder>
</head>
<body>
      <form id="form1" runat="server">
      <div>
            <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
           
                  <asp:Literal ID="Literal1" runat="server"></asp:Literal>
           
            </asp:ContentPlaceHolder>
      </div>
      </form>
</body>
</html>

----------------------

Content Page should change the value of Literal1.text which was placed in the MasterPage.page. But it won't.

Below is the finding of Literal1.text and suppose should change new value.

Test.ASP.aspx.cs source codes.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class test : System.Web.UI.Page
{
      protected void Page_Load(object sender, EventArgs e)
      {
            Literal ltlBodyTitle = (Literal)Master.FindControl("Literall1");
            ltlBodyTitle.Text = "<b>hello</b>"; // Error here in this line
      }
}

hifiger2004

AnswerRe: Does not Work - Literal1 control in MasterPage.Master Pin
Christian Graus11-Oct-09 10:54
protectorChristian Graus11-Oct-09 10:54 
GeneralRe: Does not Work - Literal1 control in MasterPage.Master Pin
hifiger200412-Oct-09 21:41
hifiger200412-Oct-09 21:41 
QuestionThe maximum report processing jobs limit configured by your system administrator has been reached. Pin
singh.sunder10-Oct-09 19:54
singh.sunder10-Oct-09 19:54 
AnswerRe: The maximum report processing jobs limit configured by your system administrator has been reached. Pin
Richard MacCutchan10-Oct-09 21:53
mveRichard MacCutchan10-Oct-09 21:53 
AnswerRe: The maximum report processing jobs limit configured by your system administrator has been reached. Pin
Mohanraj Selvarathinam7-Jun-11 20:04
Mohanraj Selvarathinam7-Jun-11 20:04 
QuestionSherd server Issues? Pin
DSP3710-Oct-09 6:44
DSP3710-Oct-09 6:44 
AnswerRe: Sherd server Issues? Pin
Marc Firth12-Oct-09 3:44
Marc Firth12-Oct-09 3:44 
Questionstoring visitor IP address Pin
sangeeta20099-Oct-09 22:16
sangeeta20099-Oct-09 22:16 
AnswerRe: storing visitor IP address Pin
Aman Bhullar11-Oct-09 18:54
Aman Bhullar11-Oct-09 18:54 
GeneralRe: storing visitor IP address Pin
April Fans14-Oct-09 15:11
April Fans14-Oct-09 15:11 
QuestionIs there a documentation while developing Web Pages? Pin
CoderForEver9-Oct-09 21:11
CoderForEver9-Oct-09 21:11 
AnswerRe: Is there a documentation while developing Web Pages? Pin
Richard MacCutchan9-Oct-09 23:31
mveRichard MacCutchan9-Oct-09 23:31 
AnswerRe: Is there a documentation while developing Web Pages? Pin
cyrossis16-Oct-09 23:51
cyrossis16-Oct-09 23:51 
QuestionLooking for Website Host Provider (PHP/MYSQL/Wordpress) Pin
hifiger20047-Oct-09 17:01
hifiger20047-Oct-09 17:01 
AnswerRe: Looking for Website Host Provider (PHP/MYSQL/Wordpress) Pin
Aman Bhullar7-Oct-09 21:45
Aman Bhullar7-Oct-09 21:45 
AnswerRe: Looking for Website Host Provider (PHP/MYSQL/Wordpress) Pin
Marc Firth7-Oct-09 22:15
Marc Firth7-Oct-09 22:15 
GeneralRe: Looking for Website Host Provider (PHP/MYSQL/Wordpress) Pin
hifiger200411-Oct-09 7:40
hifiger200411-Oct-09 7:40 

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.