Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3965174
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:25:37+00:00 2026-05-20T03:25:37+00:00

How can I accomplish this in JqueryMobile I have a an aspx file which

  • 0

How can I accomplish this in JqueryMobile

I have a an aspx file which takes userName and password . Using the web service call in .ajax , I am athenticating the user. Now I would like the user to be sent to a different page , example auth.aspx. How can I accmplish this …?? I also want to make sure auth.aspx file is not accessed without login. I know to acomplish this with plain asp.net technologies. But can’t figure out how to do the same using JQueryMobile. Can anyone help me with this …???

Thanks in advance…!!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:25:38+00:00Added an answer on May 20, 2026 at 3:25 am

    Assuming you’re working on an ASP.NET site, your solution I believe lies on the server.

    First you need to decorate the authentication webservice method with this attribute:

    [WebMethod(EnableSession=true)]
    public result Authenticate()
    {
    }
    

    Now, when you successfully validate the user, set a Session variable to logged in:

    Session["IsLogged"] = true;
    

    You get the webservice result in the browser and it’s successful, redirect using window.location = “auth.aspx”;

    On the auth.aspx page, just check if the session variable exists and is set to true. If it’s not there or not true, then Response.Redirect back to the login page…

    EDITS

    Notifying the user is very straight forward…
    The methodology for this has varying levels of complexity, to start simple:
    put a span html tag on your login page, add an id attribute to the html tag

    <span id="login_success"></span>
    

    Then use jQuery to update the text in that span after you return from the authentication webservice.

    $('#login_success').text('You have successfully logged in!');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I accomplish this? <% for agent in @broker.agents %> ... <% if
I can accomplish this dynamic nature in other ways, but it caused me to
I have a list which looks something like this List = [q1,a1,q2,a2,q3,a3] I need
Can you create an interface which can only be applied to certain classes and
In .NET you can create strongly-typed configuration sections using build-in base classes that do
I need to solve the following question which i can't get to work by
If all tables I want to delete from have the column gamer_id can i
i have a input tag which is non editable, but some times i need
I have a new web app that is packaged as a WAR as part
We want to take advantage of nHibernate's Unit of Work functionality. To accomplish this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.