15,916,019 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by FluffySaysNo (Top 10 by date)
FluffySaysNo
14-May-14 9:09am
View
Wow.. I cannot believe I missed something that simple!! this may actually simplify my coding practices, thank you!
FluffySaysNo
8-May-14 12:46pm
View
Don't forget to mark an answer if it answers, or leads you to an answer for, your question. ;D
FluffySaysNo
8-May-14 12:42pm
View
You are welcome. Just take some time to get associated with the code, I promise it will come together and get easier as you get more acclimated to the process. :)
FluffySaysNo
8-May-14 12:30pm
View
Sorry, no, there really is no other way that is as effective as this. Once you have a good foundation set in place, this process really does get easier and more manageable. I've given you about as much as I can without doing the programming for you. Each step is there between your original code and my updated answer
FluffySaysNo
8-May-14 12:24pm
View
Your client code will have to handle the redirection, not your server code. It doesn't have a reference to the page, so it cannot redirect from or to it, given it is static. You should pass back a bool value that tells the javascript to either continue or transfer to login page.
I have updated my answer to reflect this process
FluffySaysNo
8-May-14 12:19pm
View
Deleted
Your client code will have to handle the redirection, not your server code. It doesn't have a reference to the page, so it cannot redirect from or to it, given it is static. You should pass back a bool value that tells the javascript to either continue or transfer to login page.
I will update my answer to reflect this process
FluffySaysNo
8-May-14 12:02pm
View
Also, changing [WebMethod] to [WebMethod(EnableSession = true)] should help if the session is not available this way
FluffySaysNo
8-May-14 12:00pm
View
hmm. You will need to use a different route to access the session... Maybe HttpContext.Current.Session[KaizenConstants.CURRENTLOGGEDINUSER] will work for you
FluffySaysNo
8-May-14 10:45am
View
your webmethod must be static, otherwise it is not accessible outside of the server context of the page. This context drops after the initial page life cycle events for loading the page. This link will fully explain the "Why?" : http://encosia.com/why-do-aspnet-ajax-page-methods-have-to-be-static/
FluffySaysNo
29-Apr-14 15:15pm
View
I see too much code and not enough of the actual problem... :/ We do not know what all of your javascript is, or how heavily it uses jquery and how it uses jquery.. or much of anything at all except that you seem to be trying to load in data. I, personally, can't find an effective way to begin answering this. I'm sorry
Show More