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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:44:50+00:00 2026-06-05T11:44:50+00:00

Now i send message array as a query string to another page.but when i

  • 0

Now i send message array as a query string to another page.but when i catch the next page we have a arr.Length know ( normally it shows the intellisense) but in this case it doesn’t show.

here is msg_arr pass to the another page

 private void check(string keyword , params Array[] msg_arr)
    {
        switch (keyword.ToUpper())
        {
            case  "SETTELG":
                Response.Redirect("../SMSFunction/SeenSMS.ascx?value=1&arr" + msg_arr);

                break;

Below code is the next page i wanted to catch that passed value & array(msg_arr).but length doen’t work

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string Moose = Request.QueryString[1];
        }

        if (msg_arr != null)
        {
            if ((msg_arr.Length == 3) && (msg_arr[1].ToLower() == "slett"))

            {

            }


        }
    }

here is the second code screenshot,you can see Length not shown
here is the second code screenshot,you can see Length not shown

  • 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-05T11:44:53+00:00Added an answer on June 5, 2026 at 11:44 am

    Quite a few things wrong here.

    private void check(string keyword , params Array[] msg_arr)
    

    Is this function really being passed an array of Arrays? I’d have thought string[] or object[] to be a more likely type to be passed.

    Response.Redirect("../SMSFunction/SeenSMS.ascx?value=1&arr" + msg_arr);
    

    That’s going to call ToString() on msg_arr, which, it being an array, will produce a result like this:

    "../SMSFunction/SeenSMS.ascx?value=1&arrSystem.Array[]"
    

    Array doesn’t override ToString(), so you get the one from Object which outputs the fully qualified name of the type – which I assume isn’t what you want.

    Finally, we reach your second piece of code, but you’ve not even shown us any code which attempts to set the new msg_arr variable. But it’s not going to be able to get the original value of msg_arr, since you’ve not passed that across yet.


    You need to decide how you want to pack your array into the query string. If, say, msg_arr should have been an array of readable strings (params string[] msg_arr in the check definition), then you might try something like:

    Response.Redirect("../SMSFunction/SeenSMS.ascx?value=1&arr=" + string.Join("|",msg_arr));
    

    where | is a character that shouldn’t appear in the strings being passed. (String.Join)

    You can then reconstruct it back into an array with something like:

    protected void Page_Load(object sender, EventArgs e)
    {
        string[] msg_arr = Request.QueryString["arr"].Split('|');
        /* rest of method */
    

    (String.Split)

    Of course, there may be a concern now if the length of strings (or the number of them) is too large, it may not be appropriate to pass them via a query string at all.

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

Sidebar

Related Questions

we have a vb.net application with send and receive mailing also. Now we have
I have a Faye server running with ruby, and now, I need to send
I need to send the length of the message in the first two bytes.
So a client right now is asking me to send requests that are synchronous
Up until now we used Ant in my company. Whenever we wanted to send
For about a year now, I've had problems trying to send and receive email
I'm using Mime::Lite to create and send E-Mails. Now I need to add support
I want that user/attacker to encrypt the data and send to server. Now I
I'm writing a ASP.NET application used within our company. Now I want to send
My website shows recommend pages for users. Right now, I suppose to send 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.