Click here to Skip to main content
       

ASP.NET

 
QuestionGoogle Analytics in site.master? Pinmemberjrahma10-Oct-12 8:36 
AnswerRe: Google Analytics in site.master? Pinmembern.podbielski10-Oct-12 12:00 
AnswerRe: Google Analytics in site.master? PinmemberSoyDesarrollador.net12-Oct-12 10:07 
QuestionAsp .net Video Player PinmemberShashankUpadhyay10-Oct-12 3:06 
AnswerRe: Asp .net Video Player PinmvpSandeep Mewara10-Oct-12 4:04 
QuestionLabel Text wrapping problem Ms chart control. PinmemberMurugan_vdm10-Oct-12 2:50 
AnswerRe: Label Text wrapping problem Ms chart control. PinmvpSandeep Mewara10-Oct-12 4:06 
QuestionSetting ASP.NET page controls from class library assembly PinmemberChesnokov Yuriy9-Oct-12 20:52 
I use model view presenter approach for ASP.NET web site. The presentation part is compiled in separate class library where view contracts and presenters are defined:
MyPresentation assembly
IMyView
{
     DisplayText(string text);
}
MyPresenter
{
     public IMyView View { get; set; }
     public DisplayText()
     {
         string text = Generate();
         View.DisplayText(text);   
     } 
}
 
MyWebApplication assembly
public partial class MyForm : System.Web.UI.Page, IMyView
{
    public void DisplayText(string text)
    {
        this.myLabel.Text = text;  
    }
    ...
    protected void myButton_Click(object sender, EventArgs e) 
    {
        Presenter.DisplayText(); // calls this.DisplayText()     
    }        
}
However after stepping out of Presenter.DisplayText() Text property of myLabel becomes null again as though no assignment were done. By all means if you replace the only line in myButton click event with direct setting of myLabel Text property everything stays assigned.
Чесноков

QuestionRe: Setting ASP.NET page controls from class library assembly Pinmembern.podbielski10-Oct-12 4:38 
AnswerRe: Setting ASP.NET page controls from class library assembly PinmemberChesnokov Yuriy10-Oct-12 5:50 
GeneralRe: Setting ASP.NET page controls from class library assembly Pinmembern.podbielski10-Oct-12 11:59 
QuestionArchitecture suggestions for an application in Web and IPAD form Pinmemberkrishnapnv9-Oct-12 20:33 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pinmemberjohn-ph10-Oct-12 0:53 
AnswerRe: Architecture suggestions for an application in Web and IPAD form PinmemberPeter Carrasco11-Oct-12 17:31 
QuestionConnecting to IBM's natural language web service from vb.net Pinmemberindian1439-Oct-12 16:48 
AnswerRe: Connecting to IBM's natural language web service from vb.net Pinmemberjkirkerx9-Oct-12 18:25 
QuestionHi Friends i want to create a web application PinmemberVinothData9-Oct-12 16:41 
AnswerRe: Hi Friends i want to create a web application PinmemberVijaychauhan08069-Oct-12 20:18 
GeneralRe: Hi Friends i want to create a web application PinmemberVinothData11-Oct-12 20:37 
QuestionHow to set the x, y positions of the dynamic control PinmemberShashank Srivastava1)9-Oct-12 1:44 
AnswerRe: How to set the x, y positions of the dynamic control Pinmembern.podbielski9-Oct-12 1:59 
AnswerRe: How to set the x, y positions of the dynamic control Pinmemberjkirkerx9-Oct-12 12:20 
GeneralRe: How to set the x, y positions of the dynamic control PinmemberShashank Srivastava1)10-Oct-12 3:10 
GeneralRe: How to set the x, y positions of the dynamic control Pinmemberjkirkerx10-Oct-12 7:49 
GeneralRe: How to set the x, y positions of the dynamic control PinmemberShashank Srivastava1)10-Oct-12 3:19 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 28 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid