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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:15:12+00:00 2026-06-05T01:15:12+00:00

i have already configured SMS gateway & some php code.Now my project is thatone

  • 0

i have already configured SMS gateway & some php code.Now my project is thatone convert it to Csharp with minor changes,

probably i have to write new code.but so.. experienced guys from you i wanted to know is that possible ? Sample code below.

enter code here
$username = "abcdsoft";
$password = "softsoft";

//GET parametrar 
//$source     = $_GET['sourceaddr'];
//$dest       = $_GET['destinationaddr'];
//$message_in = $_GET['message'];


enter code here
$source     = $_GET['msisdn'];
$dest       = $_GET['shortcode'];
$message_in = $_GET['msg'];

those are most top lines.below code i changed.(php to csharp)

enter code here
 string username ='abcdsoft';
 string password = 'abcdabcd';

 int source = ['sourceaddr'];
 int dest  = ['shortcode'];
 string message_in = ['msg'];

Is this way is correct ?

  • 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-05T01:15:14+00:00Added an answer on June 5, 2026 at 1:15 am

    Almost.

    1. Need to use double-quotes for the string
    2. Request.QueryString is the ASP.NET equivalent to the PHP $_GET.
    3. Also, apparently C# is a bit more strongly typed than PHP, so you need to explicitly convert the query string params to integers.

    Code should be like this:

    string username = "abcdsoft";
    string password = "abcdabcd";
    
    int source = int.Parse(Request.QueryString["sourceaddr"]);
    int dest  = int.Parse(Request.QueryString["shortcode"]);
    string message_in = int.Parse(Request.QueryString["msg"]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have .htaccess already configured: ErrorDocument 404 error.php But whenever I go to an
I have already configured my apache(mod_rewrite,alias,allowOverride), and I am trying to rewrite http://localhost/b33m/view_blog_details.php?post_id=4 To
I could send mail from my Activity when i have already configured with any
I have already search for some time over the net on how to create
I have already a site with a single homepage index.php which accepts 2 parameters
I have already implemented some AJAX pagination in my Rails app by using the
I have already have this code to force these URLs to HTTPS: RewriteCond %{HTTPS}
I have already gone through some codings, and I found some interrupts in uploading.
I have already configured jboss 4.2.3, but i need to use jboss-mq. Looked at
I have some code that is sometimes called from my own Main method and

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.