Click here to Skip to main content
15,888,579 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGoogle Analytics in site.master? Pin
Jassim Rahma10-Oct-12 7:36
Jassim Rahma10-Oct-12 7:36 
AnswerRe: Google Analytics in site.master? Pin
n.podbielski10-Oct-12 11:00
n.podbielski10-Oct-12 11:00 
AnswerRe: Google Analytics in site.master? Pin
SoyDesarrollador.net12-Oct-12 9:07
SoyDesarrollador.net12-Oct-12 9:07 
QuestionAsp .net Video Player Pin
ShashankUpadhyay10-Oct-12 2:06
ShashankUpadhyay10-Oct-12 2:06 
AnswerRe: Asp .net Video Player Pin
Sandeep Mewara10-Oct-12 3:04
mveSandeep Mewara10-Oct-12 3:04 
QuestionLabel Text wrapping problem Ms chart control. Pin
Murugan Kolanji10-Oct-12 1:50
Murugan Kolanji10-Oct-12 1:50 
AnswerRe: Label Text wrapping problem Ms chart control. Pin
Sandeep Mewara10-Oct-12 3:06
mveSandeep Mewara10-Oct-12 3:06 
QuestionSetting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy9-Oct-12 19:52
professionalChesnokov Yuriy9-Oct-12 19: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:
C#
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 3:38
n.podbielski10-Oct-12 3:38 
AnswerRe: Setting ASP.NET page controls from class library assembly Pin
Chesnokov Yuriy10-Oct-12 4:50
professionalChesnokov Yuriy10-Oct-12 4:50 
GeneralRe: Setting ASP.NET page controls from class library assembly Pin
n.podbielski10-Oct-12 10:59
n.podbielski10-Oct-12 10:59 
QuestionArchitecture suggestions for an application in Web and IPAD form Pin
krishnapnv9-Oct-12 19:33
krishnapnv9-Oct-12 19:33 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
John-ph9-Oct-12 23:53
John-ph9-Oct-12 23:53 
AnswerRe: Architecture suggestions for an application in Web and IPAD form Pin
Peter Carrasco11-Oct-12 16:31
Peter Carrasco11-Oct-12 16:31 
QuestionConnecting to IBM's natural language web service from vb.net Pin
indian1439-Oct-12 15:48
indian1439-Oct-12 15:48 
AnswerRe: Connecting to IBM's natural language web service from vb.net Pin
jkirkerx9-Oct-12 17:25
professionaljkirkerx9-Oct-12 17:25 
QuestionHi Friends i want to create a web application Pin
VinothData9-Oct-12 15:41
VinothData9-Oct-12 15:41 
AnswerRe: Hi Friends i want to create a web application Pin
Rockstar_9-Oct-12 19:18
professionalRockstar_9-Oct-12 19:18 
GeneralRe: Hi Friends i want to create a web application Pin
VinothData11-Oct-12 19:37
VinothData11-Oct-12 19:37 
QuestionHow to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)9-Oct-12 0:44
Shashank Srivastava1)9-Oct-12 0:44 
AnswerRe: How to set the x, y positions of the dynamic control Pin
n.podbielski9-Oct-12 0:59
n.podbielski9-Oct-12 0:59 
AnswerRe: How to set the x, y positions of the dynamic control Pin
jkirkerx9-Oct-12 11:20
professionaljkirkerx9-Oct-12 11:20 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 2:10
Shashank Srivastava1)10-Oct-12 2:10 
GeneralRe: How to set the x, y positions of the dynamic control Pin
jkirkerx10-Oct-12 6:49
professionaljkirkerx10-Oct-12 6:49 
GeneralRe: How to set the x, y positions of the dynamic control Pin
Shashank Srivastava1)10-Oct-12 2:19
Shashank Srivastava1)10-Oct-12 2: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.