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

  • SEARCH
  • Home
  • 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 8917633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:32:16+00:00 2026-06-15T05:32:16+00:00

I have making test on my app to allow users to login with its

  • 0

I have making test on my app to allow users to login with its digital certificate.
This is not complicated as it requires just one line to actually retrieve data from a magnet card.

This is how I am requesting the data:

@{
    string certDados = Request.ClientCertificate.Subject;
    string[] dataArray = certDados.Split(',');
    string data = dataArray.Last();
    string[] numberArr = data.Split(':');
    string number = numberArr.Last();   
}

<td>Utilizar Cert. Digital</td>
<td>@Html.CheckBox("hasDigital")
    @number
</td> 

The problem is… I can´t get the number all the time. Sometimes the number is there, sometimes not. If I refresh the page a couple of times it appears, and next time I refresh it is not there..

Is there something I could do to solve this problem?

  • 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-06-15T05:32:18+00:00Added an answer on June 15, 2026 at 5:32 am

    Found a solution..

    string certDados = "";
    do
    {
    certDados = Request.ClientCertificate.Subject;
    } while (certDados == "");
    

    Now it is working… ;O)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started making a test app , here is what happened. I
I have a unit test called TestMakeAValidCall() . It tests my phone app making
I am making a test app. Right now I have a timer in the
I am making very simple test app, just to see how drag & drop
I have tried making a fiddle for this, but it's been too difficult to
Please have a look at this page www.pixeli.ca/issue. I have begun making a page
I have tough time making this design decision. I could go with traditional new
I've almost finished my iPhone app and I'm making test using XCode 4 and
I have used the signalR chat app (as laid out in this tutorial http://sergiotapia.com/2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection-websites/
I've got a sample application on http://github.com/niklassaers/Test-iPhone-TabBar-App that shows my problem: I have a

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.