|
Hi, everyone.. I just started learning C# web application not long ago.. I like to enquire that if the user wants to logout of the web page/site, what is the code for the logout command when i click on the logout button?? Sorry as my question is too simple for you guys.. But thanks for the help..
Thanks
|
|
|
|
|
That all depends on what your using to handle logins. There is no one way of authenticating, tracking, and giving roles to users of your site. How you do the logout depends ENTIRELY on how you designed your authentication package, how your tracking your user sessions, what you need to do when the user logs out, or the session times out.
Without a LOT more detail about your security system, it's impossible for anyone to tell you how to code your logout. That is, other than dropping a button on a form and handling it's click event.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
As we all know that the Reflector can be used to show the code written by us in the dll provided by us.
I want to know some way which should block this.
i.d if a dll is given the code should not be displayed
Any links or pointers if known to anyone are most welcome
Thanks and Regards,
Pramod
|
|
|
|
|
|
Hi,
can you elaborate more
i did not get you
actually i have seen that the dll's code can be viewed using a reflector
and i dont want that to happen with my dlls
Thanks and Regards,
Pramod
|
|
|
|
|
Did you click on the link I posted? Obfuscation is a technique that is aimed at preventing disassembly, which is what you're looking at.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
S. Senthil Kumar wrote: Obfuscation is a technique that is aimed at preventing disassembly,
It doesn't really prevent disassembly. Rather it helps preventy someone from garning anything useful from the disassembly by obfuscating the code the point that it is no longer easily readable.
Jared Parsons
jaredp@beanseed.org
http://spaces.msn.com/members/jaredp/
|
|
|
|
|
What you want is not possible. The best you can hope for is to obfuscate the code and hope that the little bastard trying to disassemble it, doesn't have the time to dig your code out of the garbage that the obfuscator creates.
Even if you managed to compile the managed code down to native code, your code can still be disassembled, though it just takes more time to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I've seen some obfuscators that crash the disassembler, but yes, you're right, the purpose is to make it almost unreadable.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
hi friends,
Am having a paragraph which is like....
"Tic","Tac","Toe"
"1","2","3"
"12,"16","11"
Here the first line strings Tic,Tac and Toe are fields...
I have to retreive each of them seperately such that they have to be displayed in a multiline textbox as,
Tic
Tac
Toe....
How can i do it?Kindly help me...
Thanx
-- modified at 4:22 Monday 12th December, 2005
|
|
|
|
|
i don't know whether i understand your question right...?!
but if your string is "\"Tic\",\"Tac\","\Toe\"" you could use the Split method.
<br />
string s="\"Tic\",\"Tac\","\Toe\"";<br />
string[] fields=s.Split(new char[]{','});<br />
|
|
|
|
|
Hi friend,
The same way i hav splitted...But i want to display those splitted strings line by line in a Multiline Textbox..
Like,(in a TextBox)
Tic
Tac
Toe
Thanx
|
|
|
|
|
If you've got the split strings, then just use the AppendText method to add them to the textbox. Rember to append System.Environment.NewLine to every split string, like
multiLineTextBox.AppendText(splitString[i] + Environment.NewLine);
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I had a requirement to use IButton during login process in to my C# Winforms Application can any one help me out how to program for IButton in C#
Krishna
|
|
|
|
|
|
i want to create a custom Control in Asp.net by using C# please tell me how can i create it and use it in other applications plz???????????????????????????????????
Regards,
AbuBakar
|
|
|
|
|
Try googling it[^]. You'll get loads of results
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
Hello !
I am showing images in Datagrid by using Picturebox,it is working well,Now I want to call some events like pictureBox1_Click and pictureBox1_MouseMove events of picturebox control but i don't know how can i do it?? please send me solution as soon as possible i will be really grateful to u...........
Regards,
AbuBakar
AbuBakar
|
|
|
|
|
Hi,
It is very simple.
If you are creating the PictureBox at design time then u can just go to the
Properties window -> events tab and select the event that u want to handle
If you are creating them dynamically in the code then
just declare the events and define the methods which will handle the events
Regards,
Pramod
|
|
|
|
|
Hello!
I've an UserControl with a MenuStrip control on it. In a derived control I cannot add additional menu items to this menustrip (in the visual designer).
Is there any advise to solve this problem!?
|
|
|
|
|
|
Just put the string in the javascript code.
Example:
var str = '<asp:Literal id="MyString" runat="server"/>';
MyString.Text = aString.Replace("\\","\\\\").Replace("'","\\'");
---
b { font-weight: normal; }
-- modified at 4:52 Monday 12th December, 2005
|
|
|
|
|
MyString and aString, c# string or Javascript string?
I have a url string (named urlString)in c#, and I want to use it in the window.open function in Javascript?
|
|
|
|
|
All the code didn't show up in the post. Check it now.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have created a user control with Checkbox attached to the textbox. As a control, enabling/ disabling checkbox will enable/disable textbox and I can set bool values to Checkbox and string value to the textbox.
I have added this control to the DataGrid to alll exiting rows and column. To refresh the values to the user I have override Refresh mothod.
But now the problem is, even if I change the value for any cell, it is updaing same value for all cells where the control is placed. So is it possible to change the value of single cell?
Regards,
Mandar
|
|
|
|