Posts

Showing posts from February, 2017

Post Data on URL using Asp.net C#

Post Data on URL using Asp.net C C# code : private void PostForm()         {             string remoteUrl = "Posted_Url" ;             string MobileNo = "11" ;             string EmailId = "11" ;             string Registrationno = "11" ;             string PackageName = "11" ;             string ExpiryDate = "1-12-2017" ;             string TransactionId = "11" ;              string memberCode = "11" ;             string Cov...

Send Fire base notification to Android using Asp.net C#

Send Fire base notification to Android using Asp.net C# C# Code : public String SendNotificationFromFirebaseCloud( string DeviceToken, string Content)         {             string YOUR_FIREBASE_SERVER_KEY = "Please_put_server_key_Here" ;             var result = "-1" ;             var webAddr = "https://fcm.googleapis.com/fcm/send" ;             var httpWebRequest = ( HttpWebRequest ) WebRequest .Create(webAddr);             httpWebRequest.ContentType = "application/json" ;             httpWebRequest.Headers.Add( "Authorization:key=" + YOUR_FIREBASE_SERVER_KEY);     ...

Post data and Redirect on URL in Asp.net

Post data and Redirect  on URL in Asp.net C# Code:      NameValueCollection data = new NameValueCollection ();             data.Add( "UserName" , "val1" );             data.Add( "MobileNo" , "val2" );             HttpHelper .RedirectAndPOST( this .Page, "http://mobileapp.co.in:8000/website/responsive" , data);

Get Real Time Distance and ETA in asp.net using Google API

 Get Real Time Distance and ETA in asp.net using Google API C# Code : public   bool  Getdistance()         {              string  result =  "" ;              WebRequest  request =  null ;              HttpWebResponse  response =  null ;                          String  url =  "https://maps.googleapis.com/maps/api/directions/xml?origin=28.668186,77.2301363&destination=28.603156,77.1773745" ;             request =  WebRequest .Create(url);           ...