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 can I call method from one page to other page

How can I call method from one page to other page

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 3 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.
  • A Offline
    A Offline
    amistry_petlad
    wrote on last edited by
    #1

    How can I call method from one page to other page? Thanks

    P 1 Reply Last reply
    0
    • A amistry_petlad

      How can I call method from one page to other page? Thanks

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      Can you explain your question in more detail? This might make it easier to answer :) Regards, --Perspx

      "The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript

      A 1 Reply Last reply
      0
      • P Perspx

        Can you explain your question in more detail? This might make it easier to answer :) Regards, --Perspx

        "The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia Introduction to Object-Oriented JavaScript

        A Offline
        A Offline
        amistry_petlad
        wrote on last edited by
        #3

        yes sir, I have one method in one page,There are 2 pages(_Default and _Default2) in one webapplication . one has already built method calcuatbalance() Now i want to call from page2 this is page1 one. Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub public sub calcuatbalance() .... .... .... End sub End Class this is page2 Partial Class _Default2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub How can I call calcualte balance from _Default2 page. Thanks

        N 1 Reply Last reply
        0
        • A amistry_petlad

          yes sir, I have one method in one page,There are 2 pages(_Default and _Default2) in one webapplication . one has already built method calcuatbalance() Now i want to call from page2 this is page1 one. Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub public sub calcuatbalance() .... .... .... End sub End Class this is page2 Partial Class _Default2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub How can I call calcualte balance from _Default2 page. Thanks

          N Offline
          N Offline
          Nirandas
          wrote on last edited by
          #4

          Best thing to do would be to take the function out into it's own class and put it inside the app_code folder and use it from both the pages. HTH

          Nirandas, a developer from India. http://www.nirandas.com

          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