Thanks for everyone's active participation in helping me. :)
Aspiring Techie, Vishnu Nath
Thanks for everyone's active participation in helping me. :)
Aspiring Techie, Vishnu Nath
U r right. And to stop a user accessing a page even after logout, i simply disabled the browsers back button after logout through javascript.
Aspiring Techie, Vishnu Nath
No he wasn't wrong. I had a bit concern, if a user tries to access the page directly, without following the normal routine, then the session variable which i would be checking on my page, would never have existed. Hence i put out a check over there nd followed with the rest of the suggestions provided by all of u.
Aspiring Techie, Vishnu Nath
Thanx for your suggestion and advice, will surely do the same. I have implemented my own logic on it. :)
Aspiring Techie, Vishnu Nath
Abhijit Jana wrote:
if(Session["UserID"] != null) { //Do Operation } else { Response.Redirect("Login.aspx"); }
This is only valid if a session for that variable was created and you are checking for its value. But if someone requests this page directly, it will throw an error stating Object refrence not set.
Aspiring Techie, Vishnu Nath
Could you please elaborate on how can i check for session expiration. I used to check for session.IsNewSession on each page. But even that couldn't help, hence would like to know how can i implement session expiration in every page.
Aspiring Techie, Vishnu Nath
Hii, I have been using session variables to maintain the session of a particular user accessing the application. And on logout, i clear out all sessions and redirect it to login page. But it doesn't work, since with the help of a browsers back button u can still perform all operations on the appication. I would like to know the best possible solution for logout functionality. A user after logout should not be able to access the app even through browsers back button. :doh:
Aspiring Techie, Vishnu Nath
Hii, I am looking for a technique or method which would quickly authenticate my users login information and redirect it to its home page. I have observed gmail which is very quick in authenticating login information of any user. I am using MySQL database. I don't want to use asp.net login control. Looking forward for the answer.
Aspiring Techie, Vishnu Nath
Thanks for giving out your suggestion. Well databases must be having robust engine to handle the queries. But its fuctioning and understanding is important while building a database driven web application. Also was thinking how facebook, orkut would be using their databases to manage their user queries around the world.
Aspiring Techie, Vishnu Nath
Hii Everybody, I have one doubt or fundamental unclarity about database. I would like to know what happens or how does any RDMS database responds to multiple queries being requested from several clients on a table simultaneously ? Example : There is a table called customer which has all the required fields of a customer namely age, name. dob etc... Now there are several clients around the world trying to query this table with several requests. Some clients are trying to insert customer details, some are trying to delete customer details and others are trying to read those customer details simultaneously on customer table. The clients trying to insert, delete are admins while the clients trying to read are staffs. In this case how would the table handle those multiple queries at the same time.Would it crash, behave differently etc.. ?
Aspiring Techie, Vishnu Nath
Hii, I have a table in a database called dictionary. I have four columns namely id, word , keyword and meaning. I have indexed word, keyword and meaning column in a catalog for full text searching of any word. I want full text searching of any word in these two column and return meaning of that word found in word and keyword column. I searched the table for the word using following query :
string wordSearched=textBox1.Text;
"SELECT meaning FROM dictionary WHERE CONTAINS(word, keyword, '+"wordSearched"+')";
But am unable to get the full text search result. Am i wrong in my syntax for querying full text search. or may be can anyone help it out giving the proper syntax to query word and keyword column. Thanks in Advance!
Aspiring Techie, Vishnu Nath
how can i display mathematical equations like integral and sigma in a windows form label or any other user control?
Aspiring Techie, Vishnu Nath
Can anyone possibly let me know, how can i use superscript and subscript in an xml. I need to insert a chemical formula . eg; H2SO4 where 2 and 4 are subscript and show them in an xml. How could i do it? Is there tags such as "sub" and "sup" that we can use in an xml. For eg; Sulphuric Acid H2SO4 If any one has the solution, pls let me know
Aspiring Techie, Vishnu Nath
Hii, Am new to ASP.net. And am very curious to know from where could i get the required resource to understand the life cycle of page when it is requested to server to the time, when server responses back to browser in asp.net 2.0. I want to know in depth about what process takes place at server. How server process page request and all in details. Where could i get these understanding from? Can anyone refer me to a site where probably i could download some free e book or any presentation which gives me full understanding on the process taking place between a request submitted to server, to response received from server in depth/detail. Guide me, if any one can for this topic to better understand asp.net. :)
Aspiring Techie, Vishnu Nath
Eddy Vluggen wrote:
Update-form would hide it's controls
i got my mistake, i got the reason why Update form hided its control. Its because by mistake i commented out the InitializeComponent() method in Update's constructor, that led to hiding of the controls in the form. :-O
Aspiring Techie, Vishnu Nath
Alan has given out me correct solution to my problem. And now i dont face any problem in shutting down my PC after rectifying my code. ;)
Aspiring Techie, Vishnu Nath
Since i want either of the form to open. i.e either Update form if update is available or else my main app if there is no update. Hence i chose it to include process.start code in program.cs file. :doh:
Aspiring Techie, Vishnu Nath
Now i have changed the way i used the code. Now i use my process.start code in Program.cs file. But it is behaving in a different manner.
static void Main()
{
string appPath = applicationPath();
try
{
if (checkInternetConnection() == true)
{
if (setXML() == true)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Update());
}
else
{
Process.Start(appPath);
}
}
else
{
Process.Start(appPath);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
Process.Start(appPath);
}
appPath is the path of main application retrieved from applicationPath() method. and setXml() is a method returning boolean value. Now if update is available. the application will fire Update Form else it will start my main app. But instead the application runs , but its control and text are not visible. When Update Form runs, Form is blank without any controls in it. I m unable to understand what happens that my controls and heading form becomes invisible during runtime. Can u sort out the problem?
Aspiring Techie, Vishnu Nath
Hii, After searching on for auto update feature to suit my needs/project, i started developing my own auto update feature. This application basically compares the version of my file and any difference in it, it will download the newest version of that file. Now problem is , i want to fire or start an .exe application/my main application whenever i find that there is no version update . And close auto update application before starting my different application . I tried out using system.process.Diagnostic.Process method But didnt succeeded. Can anyone show me how i can open different application from my current application and close the current application before starting different application. :(
Aspiring Techie, Vishnu Nath
You are right. Thanks for your valuable advice and an important guidance to my project. Thanks a Lot!! :-D
Aspiring Techie, Vishnu Nath