Survey Forums

HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentNewbie stupid questionsNewbie stupid questions
Previous
 
Next
New Post
12/19/2011 4:27 AM
 

Hi folks,

I have just downloaded the source code for V2. I have it running in a VM sandbox in Visual Studio 2010 with Sql Server 2008. I have read through some of the documentation on codeplex and hane now decided to try and get my head around some of the source code. That leads me to my first "stupid" question.....

How does the first page login control work?
It does not seem to have a visual designer,  Is it a custom control? Is it dynamically allocated in javascript? I have had a look at the aspx code behind default.aspx and can see where the controls are added e.g. <asp:Literal ID="PasswordLabel" . . .  etc  but when I look at the default.aspx page in designer, all I see is "Error creating control ContentPlaceHolder1" etc

Many thanks for any help

 
New Post
12/19/2011 4:51 AM
 

ah, to answer my own question,  I see now where the page directive references the controls using inherits. DOH!

Just in case anyone else is wondering, if you look at the page directives of default.aspx you will see

Inherits="Votations.NSurvey.WebAdmin.Login" Codebehind="~/nsurveyadmin/Login.aspx.cs"

 

 
New Post
12/19/2011 11:11 PM
 

Hi,

I'm glad you managed to pass the first barier :) There's no real logic behind the fact that the default.aspx page references a codebehind page that's in another directoryand which is called login.aspx.cs. Its there for 'historic' reasons: there's stil a redundant login.aspx page that's no longer used to which the login.aspx.cs page belongs. The login controls were moved to the default.aspx page. Once the new 2.0 version is out we may tidy this up.

 
Previous
 
Next
HomeHomeSurvey Project ...Survey Project ...DevelopmentDevelopmentNewbie stupid questionsNewbie stupid questions