Click here to Skip to main content
15,902,299 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to send email? Pin
CoderForEver17-Oct-09 1:22
CoderForEver17-Oct-09 1:22 
AnswerRe: How to send email? Pin
Richard MacCutchan17-Oct-09 21:42
mveRichard MacCutchan17-Oct-09 21:42 
GeneralRe: How to send email? Pin
CalvinHartwell19-Oct-09 12:20
CalvinHartwell19-Oct-09 12:20 
QuestionHow to display text(Lyrics) when a link is clicked? [modified] Pin
CoderForEver17-Oct-09 1:13
CoderForEver17-Oct-09 1:13 
QuestionQuery EA Sports Madden Server Pin
Russell Colwell16-Oct-09 8:17
Russell Colwell16-Oct-09 8:17 
AnswerRe: Query EA Sports Madden Server Pin
David Mujica16-Oct-09 8:25
David Mujica16-Oct-09 8:25 
QuestionHow to date time picker inside an asp datagrid Pin
EcK3kO14-Oct-09 14:36
EcK3kO14-Oct-09 14:36 
QuestionSimple HTML Email Submission Pin
benji0814-Oct-09 10:29
benji0814-Oct-09 10:29 
AnswerASP.net code to send email Pin
David Mujica14-Oct-09 10:50
David Mujica14-Oct-09 10:50 
GeneralRe: ASP.net code to send email Pin
benji0814-Oct-09 13:12
benji0814-Oct-09 13:12 
GeneralRe: ASP.net code to send email Pin
CoderForEver18-Oct-09 18:25
CoderForEver18-Oct-09 18:25 
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 

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.