Click here to Skip to main content
12,826,440 members (26,792 online)
   

ASP.NET

 
QuestionGoogle Analytics in site.master? Pin
jrahma10-Oct-12 8:36
memberjrahma10-Oct-12 8:36 
AnswerRe: Google Analytics in site.master? Pin
n.podbielski10-Oct-12 12:00
membern.podbielski10-Oct-12 12:00 
AnswerRe: Google Analytics in site.master? Pin
SoyDesarrollador.net12-Oct-12 10:07
memberSoyDesarrollador.net12-Oct-12 10:07 
QuestionAsp .net Video Player Pin
ShashankUpadhyay10-Oct-12 3:06
memberShashankUpadhyay10-Oct-12 3:06 
AnswerRe: Asp .net Video Player Pin
Sandeep Mewara10-Oct-12 4:04
mvpSandeep Mewara10-Oct-12 4:04 
QuestionLabel Text wrapping problem Ms chart control. Pin
Murugan_vdm10-Oct-12 2:50
memberMurugan_vdm10-Oct-12 2:50 
AnswerRe: Label Text wrapping problem Ms chart control. Pin
Sandeep Mewara10-Oct-12 4:06
mvpSandeep Mewara10-Oct-12 4:06 
QuestionSetting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy9-Oct-12 20:52
memberChesnokov 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 Pin
n.podbielski10-Oct-12 4:38
membern.podbielski10-Oct-12 4:38 
AnswerRe: Setting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy10-Oct-12 5:50
memberChesnokov Yuriy10-Oct-12 5:50 
GeneralRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 11:59
membern.podbielski10-Oct-12 11:59 
QuestionArchitecture suggestions for an application in Web and IPAD form Pin
krishnapnv9-Oct-12 20:33
memberkrishnapnv9-Oct-12 20:33 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
john-ph10-Oct-12 0:53
memberjohn-ph10-Oct-12 0:53 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
Peter Carrasco11-Oct-12 17:31
memberPeter Carrasco11-Oct-12 17:31 
QuestionConnecting to IBM's natural language web service from vb.net Pin
indian1439-Oct-12 16:48
memberindian1439-Oct-12 16:48 
AnswerRe: Connecting to IBM's natural language web service from vb.net Pin
jkirkerx9-Oct-12 18:25
memberjkirkerx9-Oct-12 18:25 
QuestionHi Friends i want to create a web application Pin
VinothData9-Oct-12 16:41
memberVinothData9-Oct-12 16:41 
AnswerRe: Hi Friends i want to create a web application Pin
Vijaychauhan08069-Oct-12 20:18
memberVijaychauhan08069-Oct-12 20:18 
GeneralRe: Hi Friends i want to create a web application Pin
VinothData11-Oct-12 20:37
memberVinothData11-Oct-12 20:37 
QuestionHow to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)9-Oct-12 1:44
memberShashank Srivastava1)9-Oct-12 1:44 
AnswerRe: How to set the x, y positions of the dynamic control Pin
n.podbielski9-Oct-12 1:59
membern.podbielski9-Oct-12 1:59 
AnswerRe: How to set the x, y positions of the dynamic control Pin
jkirkerx9-Oct-12 12:20
memberjkirkerx9-Oct-12 12:20 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 3:10
memberShashank Srivastava1)10-Oct-12 3:10 
GeneralRe: How to set the x, y positions of the dynamic control Pin
jkirkerx10-Oct-12 7:49
memberjkirkerx10-Oct-12 7:49 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 3:19
memberShashank Srivastava1)10-Oct-12 3:19 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.170326.1 | Last Updated 28 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid