Click here to Skip to main content
15,887,596 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
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 
Brady Kelly wrote:
I just did, and it still works,


Either you have something cached, or referencing wrong assembly.

Here is what have done to verify.

1. Created new web application - Used default.aspx
2. Added User Control, following your example I have
public string Greeting()
  {
    return ("Hello From User Control");
  }


3. call User Control from default page
protected void Page_Load(object sender, EventArgs e)
    {
      WebUserControl uc = new WebUserControl();
      Response.Write(uc.Greeting());
    }


Run the app and I get Hello From User Control

Now while the app is running on my browser I changed my method to

public string Greeting()
  {
    int i = 
    return ("Hello From User Control");
  }


notice I left ';' intentionally and saved the code. I hit refresh on the page which is already running, JIT kicks in and throws an error.

Yusuf

Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

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 
GeneralRe: Hide/Show Div when selecting radio button Pin
Dev S6-Apr-09 2:38
Dev S6-Apr-09 2:38 
AnswerRe: Hide/Show Div when selecting radio button [modified] Pin
PauloCastilho6-Apr-09 6:36
PauloCastilho6-Apr-09 6:36 
GeneralRe: Hide/Show Div when selecting radio button Pin
Hajab6-Apr-09 19:58
Hajab6-Apr-09 19:58 
AnswerRe: Hide/Show Div when selecting radio button Pin
vivek_r7-Apr-09 0:12
vivek_r7-Apr-09 0:12 
QuestionAsp.net support Webdav Protocol? Pin
balu123456-Apr-09 2:11
balu123456-Apr-09 2:11 
AnswerRe: Asp.net support Webdav Protocol? Pin
SeMartens6-Apr-09 2:30
SeMartens6-Apr-09 2:30 

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.