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 6135115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:26:24+00:00 2026-05-23T17:26:24+00:00

I created silver-light 4.0 application in that user can enter their username and password.

  • 0

I created silver-light 4.0 application in that user can enter their username and password.
After submit this secret data(username, password ) from SL application,
it submitted to website with query string..
I want to pass as below URL string
for ex: –  
http://testsite.com/mypage.aspx?<encrypted string>

I want to pass username and password in encrypted format from SL to Aspx page..
How I pass those information from SL application to asp.net website..

  • 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-23T17:26:25+00:00Added an answer on May 23, 2026 at 5:26 pm

    So you could just use the WebClient class and GET the page.

    (I’m assuming your doing asp.net WebForms NOT MVC)

    Your asp.net page should be a blank page, in your code behind you read your query string and do what you need with it, depending on success or failure you write the appropriate response with Response.Write();.

    In your silverlight code, you will just need to request for your page, and you can then read the response from your asp.net page.

    Asp.net:

    var encyString = Request.QueryString["str"];
    //some logic
    Response.Write("Success");
    

    Silverlight:

    WebClient client = new WebClient(); 
    client.DownloadStringCompleted +=
        new DownloadStringCompletedEventHandler(
        client_DownloadStringCompleted);
    

    In Button1_Click, I call DownloadStringAsync, passing the complete URL that includes the number specified by the user.

    private void Button1_Click(object sender, RoutedEventArgs e)
    {
        string encryptedString = "example";
        client.DownloadStringAsync
          (new Uri("http://testsite.com/mypage.aspx?"+encryptedString));
    }
    

    In the DownloadStringCompleted event-handler, I check that the Error property of the event args is null, and either output the response or the error message to the text block.

    void client_DownloadStringCompleted(object sender,
      DownloadStringCompletedEventArgs e)
    {
        if (e.Error == null)
            resultBlock.Text = "Using WebClient: "+  e.Result;
            //will be Response.Write();
    
        else
            resultBlock.Text = e.Error.Message;
    }
    

    Above code was plagiarized from this blog.

    Remember, a sniffer can read your request. You may want to use SSL if you need better security. Possibly a more secure way to send this data would be to POST it to your asp.net page.

    This article describes how to POST from silverlight to a page.

    HTH

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

Sidebar

Related Questions

We're building an application that is a Silverlight client application, but we've created an
In my Silverlight 3 application, I created a custom Tooltip, that is shown when
I create a C# - Silverlight 4 Application, that consists of some User Controls
I have created a Silverlight 4 application, that is running out of browser. As
I'm trying to create a simple Silverlight application that involves parsing a CSV file
In Visual Studio 2010 Beta 2 I created a new navigation Silverlight application. Without
I have created a web application with a Silverlight project embedded in it, using
Is it possible to create a Silverlight application which can be used to provide
I have an MVVM Silverlight 4 application that holds a list of modules (a
I'm working on a silverlight application that allows users to fill out common forms.

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.