Click here to Skip to main content
15,905,912 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMVC 4 Maintain state of the check box,Drop down list Pin
VishwaKL8-Apr-13 0:34
VishwaKL8-Apr-13 0:34 
Question__EVENTTARGET is undefined Pin
GGev7-Apr-13 23:32
GGev7-Apr-13 23:32 
AnswerRe: __EVENTTARGET is undefined Pin
Karthik Harve8-Apr-13 2:01
professionalKarthik Harve8-Apr-13 2:01 
QuestionHow solve (Validation of viewstate MAC failed)? Pin
Jassim Rahma7-Apr-13 0:38
Jassim Rahma7-Apr-13 0:38 
AnswerRe: How solve (Validation of viewstate MAC failed)? Pin
AContractor7-Apr-13 1:48
professionalAContractor7-Apr-13 1:48 
AnswerRe: How solve (Validation of viewstate MAC failed)? Pin
Vani Kulkarni7-Apr-13 20:17
professionalVani Kulkarni7-Apr-13 20:17 
QuestionPlacing & arranging controls on web form Pin
Member 99120916-Apr-13 6:47
Member 99120916-Apr-13 6:47 
AnswerRe: Placing & arranging controls on web form Pin
David C# Hobbyist.6-Apr-13 7:18
professionalDavid C# Hobbyist.6-Apr-13 7:18 
AnswerRe: Placing & arranging controls on web form Pin
jkirkerx7-Apr-13 10:10
professionaljkirkerx7-Apr-13 10:10 
Questionhow to upgrade from iis6 to iis7.5 Pin
Member 87018136-Apr-13 6:35
Member 87018136-Apr-13 6:35 
AnswerRe: how to upgrade from iis6 to iis7.5 Pin
dusty_dex6-Apr-13 7:58
dusty_dex6-Apr-13 7:58 
QuestionUnknown mobile manufacturer and model Pin
Jassim Rahma6-Apr-13 5:43
Jassim Rahma6-Apr-13 5:43 
AnswerRe: Unknown mobile manufacturer and model Pin
Jassim Rahma10-Apr-13 5:03
Jassim Rahma10-Apr-13 5:03 
Questionbypass login Pin
Suman Maji5-Apr-13 1:01
professionalSuman Maji5-Apr-13 1:01 
AnswerRe: bypass login Pin
AContractor5-Apr-13 2:02
professionalAContractor5-Apr-13 2:02 
GeneralRe: bypass login Pin
AmitGajjar5-Apr-13 19:00
professionalAmitGajjar5-Apr-13 19:00 
AnswerRe: bypass login Pin
jayesh.sharma10-Apr-13 3:26
jayesh.sharma10-Apr-13 3:26 
QuestionWhat is the Congiguration manager class in the code and how to you set it in the Project or IDE? Pin
Xarzu4-Apr-13 14:57
Xarzu4-Apr-13 14:57 
What is the Congiguration manager class in the code and how to you set it in the Project or IDE?

How do I set AppSettings in an ASPX project's Configuration manager?

This is an ASPX/CS Project with Visual Studio 2010. It is a Configuration Manager question.

I am successfully debugging (sort of) some code that is being used already on a server. But there is a piece of code that plays with the URL in the live version that should not be used in the debug/localhost version.

<pre lang="c#"> protected void Page_Load(object sender, EventArgs e)
{
if (ConfigurationManager.AppSettings["IsTesting"] == "false" && Request.Url.ToString().Contains("http:"))
{
Response.Redirect(Request.Url.ToString().Replace("http:", "https:"));
}

LoadMasterTemplate();
}</pre>
This piece of code lands on the "Response.Redirect...." line when it should not because the "IsTesting" app setting should be set to true in the ConfigurationManager . How do I set that?
AnswerRe: What is the Congiguration manager class in the code and how to you set it in the Project or IDE? Pin
AmitGajjar5-Apr-13 19:05
professionalAmitGajjar5-Apr-13 19:05 
AnswerRe: What is the Congiguration manager class in the code and how to you set it in the Project or IDE? Pin
jkirkerx6-Apr-13 5:39
professionaljkirkerx6-Apr-13 5:39 
QuestionAccess a control or function from asp page in Global.asax Pin
SajjadZare4-Apr-13 7:01
SajjadZare4-Apr-13 7:01 
QuestionRe: Access a control or function from asp page in Global.asax Pin
Sandeep Mewara4-Apr-13 7:09
mveSandeep Mewara4-Apr-13 7:09 
AnswerMessage Closed Pin
4-Apr-13 7:42
SajjadZare4-Apr-13 7:42 
GeneralRe: Access a control or function from asp page in Global.asax Pin
Sandeep Mewara4-Apr-13 7:47
mveSandeep Mewara4-Apr-13 7:47 
QuestionPlease help me in following Linq Query Pin
indian1433-Apr-13 14:43
indian1433-Apr-13 14:43 

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.