|
hi,
i hav a problem. i require a functionality in my website that when i'm logged out of my website and if i've pressed back button after logging out, i am coming to the same page. where as i want session to be deleted for that user and it shouldn't navigate back instead it should say that user has been logged out. please help, its urgent.[
thanks in advance...
Shraddha
|
|
|
|
|
try
System.Web.Security.FormsAuthentication.SignOut().
|
|
|
|
|
The autoeventwireup , if it is set to false , it will not execute the code written in the page load function , and reverse is true.
My question is , how should i implement this case in the project and in which situation i should use it?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
if ajax is incorporated with my project , i can easily invoke the message box using scriptmanager.registerstartupscript(......), what should i do in case , i am not using the ajax in the project?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Can you explain that again please
If you are not using ajax in your project you dont need scriptmanager
|
|
|
|
|
The issue is , i am not being able to invoke the message box.Now , for some reasons i used ajax in the project.Subsequently , i got the scriptmanager class.Through this class , i can invoke the message box , using the below code.
scriptmanager.registerstartupscript(page,typeof(page),"","alert('message box');",true);
if i am not using the ajax in the project.Then the script manager class does not includes in the intellisence.
Now , how should i invoke the message box?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
You could use javascript to invoke the messagebox. I dont think scriptmanager would make that much of a difference.
I could see it being a probelm if you used the extender control which provides a confirmation message but that isnt what your doing
|
|
|
|
|
Can we dynamically add menu item in Microsoft dynamic CRM 4.0 in asp.net
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
how do I hide or encrypt source code asp.net that has important value to send to another server.
indy
thanks for advance
|
|
|
|
|
Check this out:
http://www.codeproject.com/KB/web-security/QueryStringEncryptionNET.aspx
|
|
|
|
|
thanks .netman but I don't know how program(sourcecode) it work
can you explain this sourcecode
thanks for advance
indy
|
|
|
|
|
Hi,
I am using input button type ="submit" and I want to redirect to(.aspx) another page if the dropdown value "Cheque" is selected.
How Can I do?
Thanks
|
|
|
|
|
if the button is on the client side then check the value of dropdown in the javascript and then open the other aspx page using window.open()...
if the button is on the server side then on the button click check the dropdown value and use Response.Redirect(other aspx page url)..
.....
|
|
|
|
|
Hi,
I am using .net's Dropdownbox. Dropdown box contains 3 values.
if Credit card is used I am redirect to payment gateway. for payment gateway
i am using input button type ="submit" because it was essential.
Now if the other values select then I want to redirect to .aspx page when same input button is click.
Thanks
|
|
|
|
|
i didn't understand where u got held up..
Is the input button is on the server side? if so then in the post back check the drop down value .. if it is Credit Card then redirect it to payment gateway..
.....
|
|
|
|
|
Two ways
1 - can you access the form tag and change it's action via javascript ?
2 - why not just redirect in your code behind if the dropdown has that value ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If possible just put an onselectedchange event for your dd in your code behind and the redirect in there
|
|
|
|
|
can we enter text into list box as like we enter into text box ?
|
|
|
|
|
No. This is basic HTML, they don't support that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I use the Login control a sign-in.
Now I need to sign-out.
But I do not want to use the LoginStatus control.
I have a button named ButtonExit and Text is sign-out.
protected void ButtonExit_Click(object sender, EventArgs e)
{
HttpContext.Current.Response.Cookies.Clear();
FormsAuthentication.SignOut();
Session.Clear();
Session.Abandon();
}
this event handler must implement two will be out.
why?
thanks.
|
|
|
|
|
jason_mf wrote: his event handler must implement two will be out.
What does tis mean ?
I found the login control to be next to useless.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
i am using -->
i am using textEditor.but i donot know how to get text string within
tag .if you know the answer replay to me......(.net with c#)
|
|
|
|
|
If you put runat="server" then it will be a server control and accessible in your code behind by it's Id. However the client side ID may change as a result.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|