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

ASP.NET

 
GeneralRe: Nested Master Page Problem Pin
Not Active9-Jul-10 4:08
mentorNot Active9-Jul-10 4:08 
GeneralRe: Nested Master Page Problem Pin
shreekar9-Jul-10 6:48
shreekar9-Jul-10 6:48 
GeneralRe: Nested Master Page Problem Pin
Not Active9-Jul-10 8:05
mentorNot Active9-Jul-10 8:05 
QuestionGet Client side printer list Pin
Hum Dum9-Jul-10 1:08
Hum Dum9-Jul-10 1:08 
AnswerRe: Get Client side printer list Pin
shreekar9-Jul-10 6:59
shreekar9-Jul-10 6:59 
Questiongridview rowupdating Pin
sudheesh kumar s9-Jul-10 0:49
sudheesh kumar s9-Jul-10 0:49 
AnswerRe: gridview rowupdating Pin
adkalavadia9-Jul-10 3:19
adkalavadia9-Jul-10 3:19 
QuestionHow to set login url programmatically for Forms Authentication ? Pin
Nadia Monalisa8-Jul-10 19:11
Nadia Monalisa8-Jul-10 19:11 
Hello,

I am wondering how I can set the LoginUrl property of the Forms Authentication programmatically ? So far I see, i need to hard code this value in web.config file. But that is a problem. I need to use absolute SSL url for login url like,
"https://myDomain.com/Login.aspx" if the application is hosted in production server. If it is running from localhost, then this property value should be "/Login.aspx". Of course, most of the developers are using SSL for login page, so I hope there should be a solution to this problem. Would anyone tell me how ?

I tried to set

if(Request.IsLocal)
 FormsAuthentication.LoginUrl = "https://myDomain.com/Login.aspx" ;


in Global.asax file's Application_Start event, but I see that, FormsAuthentication.LoginUrl is a readonly property, so above try wont work. Anyother way ?
QuestionCSS question about text trimming Pin
_iobuf8-Jul-10 14:24
_iobuf8-Jul-10 14:24 
AnswerRe: CSS question about text trimming Pin
Anurag Gandhi8-Jul-10 20:59
professionalAnurag Gandhi8-Jul-10 20:59 
QuestionGeneral Approach to DropDownLists Pin
BugMeNotFTW8-Jul-10 4:00
BugMeNotFTW8-Jul-10 4:00 
AnswerRe: General Approach to DropDownLists Pin
David Mujica8-Jul-10 4:14
David Mujica8-Jul-10 4:14 
AnswerRe: General Approach to DropDownLists Pin
shreekar9-Jul-10 6:39
shreekar9-Jul-10 6:39 
QuestionHow to replace a a number in doc file with an image using windows application Pin
raghvendrapanda8-Jul-10 3:48
raghvendrapanda8-Jul-10 3:48 
AnswerRe: How to replace a a number in doc file with an image using windows application Pin
Eddy Vluggen8-Jul-10 4:16
professionalEddy Vluggen8-Jul-10 4:16 
QuestionMicrosoft JScript runtime error: Object required Pin
Haider M Rizvi8-Jul-10 3:07
Haider M Rizvi8-Jul-10 3:07 
AnswerRe: Microsoft JScript runtime error: Object required Pin
Vengatachalapathy Palanivel8-Jul-10 3:20
Vengatachalapathy Palanivel8-Jul-10 3:20 
QuestionASP.NET IIS login problem Pin
Gjm8-Jul-10 1:58
Gjm8-Jul-10 1:58 
AnswerRe: ASP.NET IIS login problem Pin
Rhys Jacob8-Jul-10 2:57
Rhys Jacob8-Jul-10 2:57 
GeneralRe: ASP.NET IIS login problem [modified] Pin
Gjm8-Jul-10 6:08
Gjm8-Jul-10 6:08 
GeneralRe: ASP.NET IIS login problem Pin
Rhys Jacob9-Jul-10 3:09
Rhys Jacob9-Jul-10 3:09 
QuestionHow to do a regular expression in chinese character? Pin
cocoonwls8-Jul-10 1:07
cocoonwls8-Jul-10 1:07 
QuestionFacebook web applications Pin
samerh8-Jul-10 1:00
samerh8-Jul-10 1:00 
QuestionProblem while exporting and Importing using Gridview to Excel Pin
codingrocks8-Jul-10 0:47
codingrocks8-Jul-10 0:47 
QuestionWhat Service Technology is the one we need to use ? [modified] Pin
Nadia Monalisa7-Jul-10 23:52
Nadia Monalisa7-Jul-10 23:52 

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.