Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 ASP ASP.NET VB.NET
This is my ASP.Net code
PRN.Text = Request["PRN"].ToString();
This Code i want to convert to classic ASP.
Its grateful for me if anybody give me Conversion of above Asp.net code to Classic ASP.
 
Regards,
Ravi
Posted 16-May-11 4:09am
Edited 16-May-11 6:49am
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Imports System.Security.Cryptography.X509Certificates
Imports System.Net.Security
Imports System.IO
Imports System.Net
 
''' <summary>
''' This Function is Used for SSL Certificate Validation
''' </summary>
''' <remarks></remarks>
Public Class SMSNICGateway
    Function CertificateValidationCallBack( _
   ByVal sender As Object, _
   ByVal certificate As X509Certificate, _
   ByVal chain As X509Chain, _
   ByVal sslPolicyErrors As SslPolicyErrors _
) As Boolean
        Return True
    End Function
    ''' <summary>
    '''
    ''' </summary>
    ''' <param name="receiver">Comma Seperated List of 10 digit Mobile Nos. e.g. 9568693696,9856235869,8562354859</param>
    ''' <param name="message">Text Message to be Sent</param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Public Function Send_Message(ByVal receiver As String, ByVal message As String) As String
 
        Dim UserName As String = "XXXXXX"
        Dim Password As String = "XXXXXX"
        Dim smsFrom As String = "XXXXXX"
 
        Dim smsTo As String = receiver
        Dim concat As Integer
 
        If (Len(message) >
  Permalink  
Comments
Sandeep Mewara at 26-Jun-12 5:22am
   
And what is this code for? can you elaborate on what this post says ?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

In classic asp, if you want to assign request variable value, then you can do the following:
 
Dim myVar
myVar = Request.form("PRN")
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

PRN.Text = Request.Form["PRN"].ToString();
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 588
1 George Jonsson 258
2 CPallini 200
3 OriginalGriff 174
4 Shemeemsha RA 140
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 26 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100