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

ASP.NET

 
GeneralRe: Trace HTTP requests through server Pin
geekfromindia15-Nov-08 6:18
geekfromindia15-Nov-08 6:18 
GeneralRe: Trace HTTP requests through server Pin
N a v a n e e t h16-Nov-08 3:55
N a v a n e e t h16-Nov-08 3:55 
QuestionHello .. i'm new in asp.net : i need to use POST vars ... instead of GET : Request["myGetvar"] Pin
Mahhouraaaaaa14-Nov-08 3:40
Mahhouraaaaaa14-Nov-08 3:40 
AnswerRe: Hello .. i'm new in asp.net : i need to use POST vars ... instead of GET : Request["myGetvar"] Pin
Guffa14-Nov-08 4:54
Guffa14-Nov-08 4:54 
AnswerRe: Hello .. i'm new in asp.net : i need to use POST vars ... instead of GET : Request["myGetvar"] Pin
Sneha Bisht14-Nov-08 17:20
Sneha Bisht14-Nov-08 17:20 
QuestionWCF Web Service Problems... Pin
DotNetCoderJunior14-Nov-08 2:36
DotNetCoderJunior14-Nov-08 2:36 
AnswerRe: WCF Web Service Problems... Pin
Abhijit Jana15-Nov-08 1:09
professionalAbhijit Jana15-Nov-08 1:09 
QuestionWierd behavior in custom control's design time when namespace starts with Style Pin
Sivastyle14-Nov-08 2:35
Sivastyle14-Nov-08 2:35 
Dear All,

I am encountering a wierd behaviour,when writing a Server control where the namespace of the control starts with Style. Please clarify if I am doing something wrong or if I use any reserved keywords?

Issue details are below

1) Create a custom control using the following code

namespace Style.Enum //you can have any namespace which stars with Style.
{
public class EnumClass
{
public enum SomeEnumType
{
TYPE1,
TYPE2
}
}

public class ServerControl : WebControl
{
private EnumClass.SomeEnumType eType;
public ServerControl()
{
}
public EnumClass.SomeEnumType ETYPE
{
get
{
return eType;
}
set
{
eType = value;
}

}
}
}


2) Now add this control in a web page. (sample code)

<%@ Register Assembly="StyleEnum" Namespace="Style1.Enum" TagPrefix="cc1" %>
...
...
<cc1:ServerControl ID="ServerControl1" runat="server" ETYPE="TYPE2" Width="202px" />

3) Now you will get an error as below

Error 1 'System.Web.UI.WebControls.Style' does not contain a definition for 'Enum' X:\XXX/XXXXXX\EnumIssue.aspx


4) If you modify your code with namespace Style1.Enum and other related codes..., you can avoid this issue....

For the past two days, sleeplesly I am verifying all my codes and finally this issue seems something I am not able to understand the reason (according to me I am doing right here.).

Changing the namespace in my application is a bit tough job, as there is a lot of dependency on namespace

Happy Coding,
A.Sivakumar
QuestionSession Timeout Problem!!! Pin
mr_muskurahat14-Nov-08 2:21
mr_muskurahat14-Nov-08 2:21 
AnswerRe: Session Timeout Problem!!! Pin
ToddHileHoffer14-Nov-08 5:36
ToddHileHoffer14-Nov-08 5:36 
AnswerRe: Session Timeout Problem!!! Pin
Abhijit Jana15-Nov-08 22:46
professionalAbhijit Jana15-Nov-08 22:46 
Questionparent window taking long to load while pop up window loading Pin
hellotherelittleboy14-Nov-08 2:20
hellotherelittleboy14-Nov-08 2:20 
QuestionCrystal Report Login Failure Problem(please Help) Pin
mr_muskurahat14-Nov-08 1:53
mr_muskurahat14-Nov-08 1:53 
QuestionASP.NET with Firefox? Pin
Dextter14-Nov-08 1:46
Dextter14-Nov-08 1:46 
AnswerRe: ASP.NET with Firefox? Pin
eyeseetee14-Nov-08 2:06
eyeseetee14-Nov-08 2:06 
GeneralRe: ASP.NET with Firefox? Pin
Dextter14-Nov-08 2:35
Dextter14-Nov-08 2:35 
AnswerRe: ASP.NET with Firefox? Pin
jzonthemtn14-Nov-08 2:06
jzonthemtn14-Nov-08 2:06 
GeneralRe: ASP.NET with Firefox? Pin
Dextter14-Nov-08 2:45
Dextter14-Nov-08 2:45 
QuestionAJAX Control Toolkit's Calendar Extendar Pin
248912814-Nov-08 1:29
248912814-Nov-08 1:29 
AnswerRe: AJAX Control Toolkit's Calendar Extendar Pin
jzonthemtn14-Nov-08 2:57
jzonthemtn14-Nov-08 2:57 
QuestionStrange aspnetdb error ... Pin
dream_liner_7e714-Nov-08 1:14
dream_liner_7e714-Nov-08 1:14 
Questioni want to create widgets in asp.net 2.0 .can u plz guide me how to develop widgets using 2.0? Pin
kathyani14-Nov-08 1:11
kathyani14-Nov-08 1:11 
AnswerRe: i want to create widgets in asp.net 2.0 .can u plz guide me how to develop widgets using 2.0? Pin
simsen14-Nov-08 3:03
simsen14-Nov-08 3:03 
Questionhow can i make rss feed for my website ?? Pin
ahmedhassan9614-Nov-08 0:41
ahmedhassan9614-Nov-08 0:41 
QuestionHow to use sql UserDefined Funtion in Asp.Net Pin
Sneha Bisht13-Nov-08 23:28
Sneha Bisht13-Nov-08 23:28 

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.