Click here to Skip to main content
15,896,912 members
Home / Discussions / C#
   

C#

 
AnswerRe: CheckBoxCell in DataGridView. Pin
Henry Minute3-Sep-09 9:51
Henry Minute3-Sep-09 9:51 
QuestionBroad casting of message to Client Browser. Pin
prem19423-Sep-09 7:26
prem19423-Sep-09 7:26 
AnswerRe: Broad casting of message to Client Browser. Pin
Ashfield3-Sep-09 8:48
Ashfield3-Sep-09 8:48 
Question[Message Deleted] Pin
mobius1110013-Sep-09 7:24
mobius1110013-Sep-09 7:24 
AnswerRe: Database Responding Pin
Not Active3-Sep-09 7:39
mentorNot Active3-Sep-09 7:39 
GeneralRe: Database Responding Pin
mobius1110013-Sep-09 7:52
mobius1110013-Sep-09 7:52 
GeneralRe: Database Responding Pin
Ashfield3-Sep-09 8:49
Ashfield3-Sep-09 8:49 
QuestionRedirect URL problem Pin
zeeShan anSari3-Sep-09 6:40
zeeShan anSari3-Sep-09 6:40 
hi all Smile | :) ,

this my codebehind on login button click
FormsAuthentication.Initialize();
           FormsAuthenticationTicket ObjTicket = new FormsAuthenticationTicket(1, txtLoginId.Text, DateTime.Now, DateTime.Now.AddMinutes(60), false, txtLoginId.Text + "," + txtPassword.Text, FormsAuthentication.FormsCookiePath);
           string encTicket = FormsAuthentication.Encrypt(ObjTicket);
           string sLoginId = txtLoginId.Text;
           sLoginId = sLoginId.Replace(" ", "");

           Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
                      Response.Redirect(FormsAuthentication.GetRedirectUrl(txtLoginId.Text, false)+"?id="+txtLoginId.Text);


and this is web config code

<authentication mode="Forms">
			<forms defaultUrl="~/PresentationLayer/Forms/Main.aspx" loginUrl="~/Default.aspx" >
			</forms>
      
		</authentication>



above code well working on local host .......but on live host
"~/" append with url
for example i want
www.abc.com/abc/PresentationLayer/Forms/Main.aspx
but i get
www.abc.com/abc/~/PresentationLayer/Forms/Main.aspx

can anybody tell me that where is problem
AnswerRe: Redirect URL problem Pin
EliottA3-Sep-09 7:16
EliottA3-Sep-09 7:16 
QuestionPlease point me in the right direction... Building reports. Pin
JollyMansArt3-Sep-09 6:28
JollyMansArt3-Sep-09 6:28 
AnswerRe: Please point me in the right direction... Building reports. Pin
Not Active3-Sep-09 7:29
mentorNot Active3-Sep-09 7:29 
GeneralRe: Please point me in the right direction... Building reports. Pin
JollyMansArt3-Sep-09 7:58
JollyMansArt3-Sep-09 7:58 
GeneralRe: Please point me in the right direction... Building reports. Pin
Not Active3-Sep-09 8:30
mentorNot Active3-Sep-09 8:30 
GeneralRe: Please point me in the right direction... Building reports. Pin
JollyMansArt3-Sep-09 10:42
JollyMansArt3-Sep-09 10:42 
QuestionC# Rules File Pin
ant-damage3-Sep-09 6:08
ant-damage3-Sep-09 6:08 
AnswerRe: C# Rules File Pin
Henry Minute3-Sep-09 6:42
Henry Minute3-Sep-09 6:42 
AnswerRe: C# Rules File Pin
Luc Pattyn3-Sep-09 6:52
sitebuilderLuc Pattyn3-Sep-09 6:52 
GeneralRe: C# Rules File Pin
ant-damage3-Sep-09 8:36
ant-damage3-Sep-09 8:36 
GeneralRe: C# Rules File Pin
Luc Pattyn3-Sep-09 8:58
sitebuilderLuc Pattyn3-Sep-09 8:58 
GeneralRe: C# Rules File Pin
ant-damage3-Sep-09 9:10
ant-damage3-Sep-09 9:10 
GeneralRe: C# Rules File Pin
Luc Pattyn3-Sep-09 9:29
sitebuilderLuc Pattyn3-Sep-09 9:29 
GeneralRe: C# Rules File Pin
ant-damage3-Sep-09 9:35
ant-damage3-Sep-09 9:35 
GeneralRe: C# Rules File Pin
ant-damage3-Sep-09 10:51
ant-damage3-Sep-09 10:51 
AnswerRe: C# Rules File Pin
stancrm3-Sep-09 8:07
stancrm3-Sep-09 8:07 
AnswerRe: C# Rules File Pin
benjymous3-Sep-09 23:11
benjymous3-Sep-09 23:11 

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.