|
1. Try and make sense with your question
2. Do your own homework
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I want to go to login page whenever user click on back button or press backspace after logged out???
|
|
|
|
|
I'm not sure if this is what your looking for, but this shows you how to redirect users to any page after a session has expired. In your case the user would be manually ending the session and this could also work for you by redirecting the users to the login page after logging out.
http://www.codeproject.com/KB/session/redirecttimeout.aspx[^]
Hope this helps.
|
|
|
|
|
Hi. I'm running an ASP.NET C# web application. I have a website including some textboxes with a button for editing of some data in my db, and also a datalist for displaying the same data from the db. My trouble is to update both AJAX UpdatePanels with the updated data. The UpdatePanel with the datalist always seem to stay one step behind.
There is a lot of code to copy/paste, but shortly its build up something like this:
website
UpdatePanel1
textboxes and button1 for updating data
/UpdatePanel1
UserControl
UpdatePanel2
datalist to display data from db
/UpdatePanel2
/UserControl
/website
When clicking button1 gode is run as follows:
1. website Page_Load
2. UserControl Page_Load
3. website Button1_click
This means that my UserControl reads from the db before the changes are done in the Button1_Click. Both UpdatePanels are updated. UpdatePanel1 with the new data changed with Button1_click, while UpdatePanel2 still shows the old db data. With saveing changes several times with button1, UpdatePanel2 gets updated with the new data, but it always stays one stem behind.
Now what I've figured needs to be done, is to run the code of Button1_Click before UserControl Page_Load. Something like this:
1. website Page_Load
2. website Button1_click
3. UserControl Page_Load
Is there a way? I can't make it, and I'm soon going crazy. Frown
Any suggestions would be appreciated. Thank...
|
|
|
|
|
I think you need to understand asp.net page life cycle[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks for this link. I will have a closer look at it in office tomorrow. I've read through it, and it seems it will be very helpfull.
Learling-by-doing leaves many black holes when it comes to skills and knowledge. Sorry...
|
|
|
|
|
Again thanks for the link. It turned out most usefull. I now moved some of the code in my UserControl to Page_PreRender, and it solved my entire problem.
|
|
|
|
|
Glad to help
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
How to Create subquery Report in Asp.net with vb.net language
Or
Two table Perticular field Select Show in Report
|
|
|
|
|
This is a second question you posted back to back. Well, before you start coding you need to grab a book on asp.net and get the basics straight first.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
How to set logout After Backspace or backbutton in login page display without code use history.forward()
|
|
|
|
|
I don't know exactly what you looking for. Can you clarify your question
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
hi everybody
How do display a word page into web page
Nguyen Duy Tuan
|
|
|
|
|
duyoanhht46 wrote: How do display a word page into web page
Are you trying to embed Microsoft Word document on asp.net page? If so, you can embed the doc file within IFrame
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hello,
1. I was under the impression that cache.insert was thread safe. Is this true?
2. Also you cannot count on a cached item staying in the cache until it expires because it maybe be removed for memory reasons - true?
3. Are there rules of thumb for how much data is too much to cache? which would then just cause the cache to be continually shuffled with objects. I know it would be depend on many things...but if there any basic parameters?
Also there are different patterns of how to implement caching one of which is called: Asynchronous pull loading - which is what I probably should use. It requires implementing a dispatcher to consolidate data, a cache and the business logic.
I don't have lots of data consolidation to do but do have a situation where I want to pull data all at once into the cache, then expire on a regular and fairly infrequent basis.
4. Does this sound like the kind of pattern for me to use then?
5. Would the dispatcher then just be a method called asynchronously to pull data on the cache object expiration and then also as a callback if the cache object is removed for other reasons?
Thanks for enlightening me on any of this.
|
|
|
|
|
I don't know, as I have not done much webservice caching. Is there anything that can answer your question in this article (XML Web Service Caching Strategies[^])
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks - that's a good article.
|
|
|
|
|
you are welcome.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi All,
I have a asp.net web service and I am running an .exe file though this web service. The web serivce is calling that .exe file (console application) and running the code of that console application successfully. I have written console.readline in the console application. The problem is that when I run this web service in the windows XP is show that console application, however when I run in the Windows 2003 this also call that console application, but not showing that window. I have to show that console application in windows 2003 also. Would you please let me know the solution.
Pankaj
|
|
|
|
|
why in the world do you want to run console app from web service? I'm totally at loss.
If there is a valid reason to run the console, why do you want to show it? can't you run the process and redirect the output to your process.
Just because you can do it, does not meant you have to do it.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Thanks for the replay. Actually there is the need to show all the processes in the console, that's why I need to show until it complete all the process.
Pankaj
|
|
|
|
|
Pankaj Saha wrote: Actually there is the need to show all the processes in the console, that's why I need to show until it complete all the process.
Are you going to sit 24/7 on the server to watch all the console app coming and going? I don't understand why you need to show it. You can still run it with out showing the console up. You can interact with it. You can get all the outputs, but I don't get it why the need to show it, unless you will have someone staring at the server all the time.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
There is no one to sit 24/7 hours on server. As I said before there is a web service which will call that console application, now if some one call that web service then that web service call that console. In console he/she can we see what process are running. That's why I need to show the console.
Pankaj
|
|
|
|
|
Look you are repeating your self. I know what you said and what you are doing
Pankaj Saha wrote: now if some one call that web service
Ok, let me walk you through this. Imagine I am consuming your webservice, ok are you with me.
Pankaj Saha wrote: then that web service call that console.
fair enough. I call your webservice and the webservice starts the console app
Pankaj Saha wrote: In console he/she can we see what process are running.
who is he/she? I called your web service. I am here on the client side (in US), your web service is running on the server side (over there in India). How can I see your console? Are you embedding it in your web service? Impossible! I am just consuming your web service.
Now explain to me, who is going to see your console. Me, I can't. You, ok, will you be there in the server 24/7 to watch the paint dry?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Pankaj Saha wrote:
In console he/she can we see what process are running.
who is he/she? I called your web service. I am here on the client side (in US), your web service is running on the server side (over there in India). How can I see your console? Are you embedding it in your web service? Impossible! I am just consuming your web service.
ok. Now the thing is that there are multipal servers and every server have a web service, and there is only single application in each server which will consume their local web service, no one is accessing the web services from the client site. Now I am running that service and want to see that console window. It is showing in Windows XP but not in Windows 2003.
Pankaj
|
|
|
|