Click here to Skip to main content
15,894,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridview AJAX hovermenu problem Pin
Ridge Howison19-Jun-09 7:00
Ridge Howison19-Jun-09 7:00 
QuestionIIS wont serve up web pages Pin
dwolver19-Jun-09 5:26
dwolver19-Jun-09 5:26 
AnswerRe: IIS wont serve up web pages Pin
Abhijit Jana19-Jun-09 8:52
professionalAbhijit Jana19-Jun-09 8:52 
GeneralRe: IIS wont serve up web pages Pin
dwolver19-Jun-09 11:43
dwolver19-Jun-09 11:43 
QuestionASP.NET session synch with Legacy ASP 3.0 problem Pin
dew219-Jun-09 4:56
dew219-Jun-09 4:56 
AnswerRe: ASP.NET session synch with Legacy ASP 3.0 problem Pin
DoctorMick19-Jun-09 5:34
DoctorMick19-Jun-09 5:34 
GeneralRe: ASP.NET session synch with Legacy ASP 3.0 problem Pin
dew222-Jun-09 8:53
dew222-Jun-09 8:53 
QuestionCreate a page instance with controls? Pin
Lukaspojk19-Jun-09 4:27
Lukaspojk19-Jun-09 4:27 
I'm trying to create an automatic test on different page-types. But I do not succeed in creating a page-instance with its controls. Do anyone know how I can solve it.

I have tried this:
Type pageType = Page.GetType();
Page newPage = (Page)pageType.GetConstructor(new Type[0]).Invoke(new object[0]);

if (Page.Controls.Count == 0)
{
throw new Exception("No controls");
}

I get the controls if I call the processRequest-method like here below but this method executes the page and that is not a optimal solution. I only want to get the controls and not execute the page. Is there a way to solve it?

Type pageType = Page.GetType();
Page newPage = (Page)pageType.GetConstructor(new Type[0]).Invoke(new object[0]);
newPage.ProcessRequest(HttpContext.Current);

I have identified that the controls are created somewhere after the InitializeCulture-method and before the OnPreInit-method. But as I said I have problems in finding the method that creates controls. Do someone have a clue?
AnswerRe: Create a page instance with controls? Pin
Abhishek Sur19-Jun-09 6:12
professionalAbhishek Sur19-Jun-09 6:12 
GeneralRe: Create a page instance with controls? Pin
Lukaspojk19-Jun-09 21:32
Lukaspojk19-Jun-09 21:32 
QuestionHow to get a selected Listbox Item? Pin
bnonym081519-Jun-09 2:56
bnonym081519-Jun-09 2:56 
AnswerRe: How to get a selected Listbox Item? Pin
5fingers19-Jun-09 3:02
5fingers19-Jun-09 3:02 
GeneralRe: How to get a selected Listbox Item? Pin
bnonym081519-Jun-09 3:12
bnonym081519-Jun-09 3:12 
QuestionCrystal reports Pin
5fingers19-Jun-09 2:45
5fingers19-Jun-09 2:45 
AnswerRe: Crystal reports Pin
Abhishek Sur19-Jun-09 4:04
professionalAbhishek Sur19-Jun-09 4:04 
QuestionTFS2010 Pin
ananthakumar_s19-Jun-09 2:41
ananthakumar_s19-Jun-09 2:41 
AnswerRe: TFS2010 Pin
Not Active19-Jun-09 2:45
mentorNot Active19-Jun-09 2:45 
GeneralRe: TFS2010 Pin
ananthakumar_s19-Jun-09 2:48
ananthakumar_s19-Jun-09 2:48 
GeneralRe: TFS2010 Pin
Not Active19-Jun-09 3:36
mentorNot Active19-Jun-09 3:36 
GeneralRe: TFS2010 Pin
5fingers19-Jun-09 2:49
5fingers19-Jun-09 2:49 
AnswerRe: TFS2010 Pin
SeMartens19-Jun-09 2:48
SeMartens19-Jun-09 2:48 
GeneralRe: TFS2010 Pin
Abhishek Sur19-Jun-09 4:14
professionalAbhishek Sur19-Jun-09 4:14 
QuestionUrl r ewriting Pin
Unknown Ajanabi19-Jun-09 1:55
Unknown Ajanabi19-Jun-09 1:55 
AnswerRe: Url r ewriting Pin
SeMartens19-Jun-09 2:46
SeMartens19-Jun-09 2:46 
AnswerRe: Url r ewriting Pin
Christian Graus19-Jun-09 11:16
protectorChristian Graus19-Jun-09 11:16 

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.