indradeo says:
string
SMSurl =
"http://185.255.8.59/sms/1/text/query?username=&password=&from=MUNPLA&to=919667044472.&text=Status of OCMS IT Issues :"
+ Date +
" (Today, Closed : "
+ cOpen +
" , Open : "
+ cclosed +
", Total : "
+ ctotal +
") (Till Date, Open : "
+ tOpen +
" , Closed :"
+ tClosed +
" , Total : "
+ ttotal +
")&indiaDltContentTemplateId=1207164006640400176&indiaDltPrincipalEntityId=1201159222154902387"
;
Use HttpUtility.UrlEncode.
Replace above with below code.
string SMSurl = HttpUtility.UrlEncode("http://185.255.8.59/sms/1/text/query?username=&password=&from=MUNPLA&to=919667044472.&text=Status of OCMS IT Issues :" + Date + " (Today, Closed : " + cOpen + " , Open : " + cclosed + ", Total : " + ctotal + ") (Till Date, Open : " + tOpen + " , Closed :" + tClosed + " , Total : " + ttotal + ")&indiaDltContentTemplateId=1207164006640400176&indiaDltPrincipalEntityId=1201159222154902387");