Click here to Skip to main content
15,881,204 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Can't send mail on localhost Pin
archit300020-Apr-09 0:24
archit300020-Apr-09 0:24 
QuestionDate Conversion Problem Pin
specialdreamsin6-Apr-09 3:12
specialdreamsin6-Apr-09 3:12 
AnswerRe: Date Conversion Problem Pin
mr_muskurahat6-Apr-09 3:40
mr_muskurahat6-Apr-09 3:40 
AnswerRe: Date Conversion Problem Pin
Hajab6-Apr-09 19:49
Hajab6-Apr-09 19:49 
AnswerRe: Date Conversion Problem Pin
Zia Ul Haq Soofi7-Apr-09 0:52
Zia Ul Haq Soofi7-Apr-09 0:52 
AnswerRe: Date Conversion Problem Pin
archit300020-Apr-09 0:40
archit300020-Apr-09 0:40 
QuestionForms Authentication Sample Pin
mehrdadc486-Apr-09 3:12
mehrdadc486-Apr-09 3:12 
QuestionWhen and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 2:57
Brady Kelly6-Apr-09 2:57 
I have a page, Default.aspx, and a UserControl, HelloControl.ascx. In the page, I dynamically instantiate the control as follows:
protected void Page_Load(object sender, EventArgs e)
{
    HelloControl c = new HelloControl();
    Response.Write(c.Greet());
}

This works fine, and the user control returns "Hello from a control", which is written to the response. I have no @Register directive in Default.aspx, but when I try a similar dynamic control creation on a client's machine, I get an error that the "Type or Namespace does not exist".

I have even gotten feedback, on forums, from MS, that I need the @Register directive, but I obviously don't. Can anyone help me out with info on how and when the user control is compiled if no @Register directive references it?



AnswerRe: When and where does a UserControl compile? Pin
Dev S6-Apr-09 3:52
Dev S6-Apr-09 3:52 
GeneralRe: When and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 3:56
Brady Kelly6-Apr-09 3:56 
GeneralRe: When and where does a UserControl compile? Pin
Yusuf6-Apr-09 4:14
Yusuf6-Apr-09 4:14 
AnswerRe: When and where does a UserControl compile? Pin
Yusuf6-Apr-09 4:29
Yusuf6-Apr-09 4:29 
GeneralRe: When and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 4:37
Brady Kelly6-Apr-09 4:37 
GeneralRe: When and where does a UserControl compile? Pin
Yusuf6-Apr-09 4:48
Yusuf6-Apr-09 4:48 
GeneralRe: When and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 5:04
Brady Kelly6-Apr-09 5:04 
AnswerRe: When and where does a UserControl compile? Pin
Rama Krishna Vavilala6-Apr-09 5:12
Rama Krishna Vavilala6-Apr-09 5:12 
GeneralRe: When and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 5:22
Brady Kelly6-Apr-09 5:22 
GeneralRe: When and where does a UserControl compile? Pin
Rama Krishna Vavilala6-Apr-09 5:27
Rama Krishna Vavilala6-Apr-09 5:27 
AnswerRe: When and where does a UserControl compile? Pin
Paddy Boyd6-Apr-09 5:24
Paddy Boyd6-Apr-09 5:24 
GeneralRe: When and where does a UserControl compile? Pin
Brady Kelly6-Apr-09 5:25
Brady Kelly6-Apr-09 5:25 
GeneralRe: When and where does a UserControl compile? Pin
Paddy Boyd6-Apr-09 5:29
Paddy Boyd6-Apr-09 5:29 
GeneralHide/Show Div when selecting radio button Pin
M. K. BASHER6-Apr-09 2:15
M. K. BASHER6-Apr-09 2:15 
GeneralRe: Hide/Show Div when selecting radio button Pin
Dev S6-Apr-09 2:23
Dev S6-Apr-09 2:23 
GeneralRe: Hide/Show Div when selecting radio button Pin
M. K. BASHER6-Apr-09 2:28
M. K. BASHER6-Apr-09 2:28 
GeneralRe: Hide/Show Div when selecting radio button Pin
Alok Sharma ji6-Apr-09 2:31
Alok Sharma ji6-Apr-09 2:31 

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.