Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to create member functions

How to create member functions

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    R Senthil Kumaran
    wrote on last edited by
    #1

    Hi All, how ot create a method some thing like this u have a class cls1 and i creaate a object and i need to see the method like this objCls1.Method1.Method() like this how to do ?? Loving Code, R. Senthil Kumaran

    J 1 Reply Last reply
    0
    • R R Senthil Kumaran

      Hi All, how ot create a method some thing like this u have a class cls1 and i creaate a object and i need to see the method like this objCls1.Method1.Method() like this how to do ?? Loving Code, R. Senthil Kumaran

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      I'm sorry, I'm a little confused with your questions. Could you please clarify? ~javier lozano (blog)

      R 1 Reply Last reply
      0
      • J Javier Lozano

        I'm sorry, I'm a little confused with your questions. Could you please clarify? ~javier lozano (blog)

        R Offline
        R Offline
        R Senthil Kumaran
        wrote on last edited by
        #3

        Hi Javier, What my question is I used a webservice which is used to send sms accross india http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia[^] and tried to create my own app for the same!! there i got raised with this question, when u r trying to send an SMS using a webmethod... SendSMSToIndia for retriving it's result the code is some thing like this lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; here i found .Status is comming after the webmethod SendSMSToIndia and its parameters. so i am curious to know how to code like this!! That what i mean objCls.Method1.Method() did u got me Please let me know how to do this am online in Yahoo IM senthilkumaranz@yahoo.com Loving Code, R. Senthil Kumaran

        J 1 Reply Last reply
        0
        • R R Senthil Kumaran

          Hi Javier, What my question is I used a webservice which is used to send sms accross india http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia[^] and tried to create my own app for the same!! there i got raised with this question, when u r trying to send an SMS using a webmethod... SendSMSToIndia for retriving it's result the code is some thing like this lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; here i found .Status is comming after the webmethod SendSMSToIndia and its parameters. so i am curious to know how to code like this!! That what i mean objCls.Method1.Method() did u got me Please let me know how to do this am online in Yahoo IM senthilkumaranz@yahoo.com Loving Code, R. Senthil Kumaran

          J Offline
          J Offline
          Javier Lozano
          wrote on last edited by
          #4

          The line: lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; is short hand for: SendSMSToIndiaResult result = objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text); lblStatus.Text= result.Status; Since the method SendSMSToIndia returns an object, you can directly call any of the properties/methods of that object. It's just a little short-hand method. Glad to help! ~javier lozano (blog)

          R 1 Reply Last reply
          0
          • J Javier Lozano

            The line: lblStatus.Text= objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text).Status; is short hand for: SendSMSToIndiaResult result = objSend.SendSMSToIndia(txtMobileNumber.Text,txtEmail.Text,txtMessage.Text); lblStatus.Text= result.Status; Since the method SendSMSToIndia returns an object, you can directly call any of the properties/methods of that object. It's just a little short-hand method. Glad to help! ~javier lozano (blog)

            R Offline
            R Offline
            R Senthil Kumaran
            wrote on last edited by
            #5

            Thanks!! Got a bit cleared Loving Code, R. Senthil Kumaran

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups