Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: query string problem Pin
Brij26-Apr-10 19:12
mentorBrij26-Apr-10 19:12 
GeneralRe: query string problem Pin
vkumar0926-Apr-10 21:06
vkumar0926-Apr-10 21:06 
GeneralRe: query string problem Pin
Brij26-Apr-10 21:09
mentorBrij26-Apr-10 21:09 
GeneralRe: query string problem Pin
Jamil Hallal26-Apr-10 21:15
professionalJamil Hallal26-Apr-10 21:15 
AnswerRe: query string problem Pin
Jamil Hallal26-Apr-10 19:56
professionalJamil Hallal26-Apr-10 19:56 
QuestionSQlserver to excel Pin
amina8926-Apr-10 13:48
amina8926-Apr-10 13:48 
AnswerRe: SQlserver to excel Pin
Not Active26-Apr-10 17:26
mentorNot Active26-Apr-10 17:26 
QuestionHow to use namespace defined in dynamic compilation code in an aspx.cs code-behind file Pin
Adam Brown 326-Apr-10 10:55
Adam Brown 326-Apr-10 10:55 
I am using .Net framework 3.5, ASP.Net, C#, and VS2008.

I have a C# class defined in dynamic compilation code (i.e. in a .cs file in the App_Code folder). I am using a namespace in the C# code, i.e. "namespace AltaNove". I can use classes in this namespace in databound controls on an aspx page just fine. The problem is that when I try to access the namespace (i.e. "using AltaNove") in the code-behind file, it is not exposed. I get the infamous "The type or namespace name "AltaNove" could not be found (are you missing a using directive or an assembly reference?"

How can a namespace defined in dynamic code not be exposed in the .aspx.cs file, but it is exposed and referenced correctly in the associated .aspx file? My last resort is to do away with the dynamic compilation and create an assembly, but i would rather not go through the hassle of managing shared assemblies.

Thanks.

Adam
AnswerRe: How to use namespace defined in dynamic compilation code in an aspx.cs code-behind file Pin
Not Active26-Apr-10 11:25
mentorNot Active26-Apr-10 11:25 
QuestionSome of Gridview horizontal line missing Pin
Andraw11126-Apr-10 10:21
Andraw11126-Apr-10 10:21 
AnswerRe: Some of Gridview horizontal line missing Pin
Andraw11126-Apr-10 10:24
Andraw11126-Apr-10 10:24 
GeneralRe: Some of Gridview horizontal line missing Pin
Not Active26-Apr-10 10:45
mentorNot Active26-Apr-10 10:45 
GeneralRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:57
daveyerwin26-Apr-10 11:57 
AnswerRe: Some of Gridview horizontal line missing Pin
T M Gray26-Apr-10 11:24
T M Gray26-Apr-10 11:24 
GeneralRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:43
daveyerwin26-Apr-10 11:43 
AnswerRe: Some of Gridview horizontal line missing Pin
daveyerwin26-Apr-10 11:26
daveyerwin26-Apr-10 11:26 
QuestionDelete group from Active Directory in C# Pin
blskv26-Apr-10 5:37
blskv26-Apr-10 5:37 
AnswerRe: Delete group from Active Directory in C# Pin
Michel Godfroid26-Apr-10 5:53
Michel Godfroid26-Apr-10 5:53 
GeneralRe: Delete group from Active Directory in C# Pin
blskv26-Apr-10 5:59
blskv26-Apr-10 5:59 
QuestionHow to set default access modifier for subs in Visual Studio Pin
Hypermommy26-Apr-10 4:23
Hypermommy26-Apr-10 4:23 
QuestionAJAX Pin
Civic0626-Apr-10 4:13
Civic0626-Apr-10 4:13 
AnswerRe: AJAX Pin
Not Active26-Apr-10 4:35
mentorNot Active26-Apr-10 4:35 
AnswerRe: AJAX Pin
Sandesh M Patil26-Apr-10 5:11
Sandesh M Patil26-Apr-10 5:11 
GeneralRe: AJAX Pin
Michel Godfroid26-Apr-10 5:26
Michel Godfroid26-Apr-10 5:26 
GeneralRe: AJAX Pin
Sandesh M Patil26-Apr-10 5:42
Sandesh M Patil26-Apr-10 5:42 

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.