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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem triangular calling c#->javascript->c# on single click of search button [modified]

Problem triangular calling c#->javascript->c# on single click of search button [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpjavajavascriptcssasp-net
3 Posts 3 Posters 1 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.
  • V Offline
    V Offline
    Vishnu Narayan Mishra
    wrote on last edited by
    #1

    Hi To all forum members, I have a search button which search records in the form, then I have to call a java script which return some values, on the base of these values I have I Have to populate Grid View. Actually when I clicked on search button I) It hits to database and takes records and II) These records are passed to java script III) Then java script returns a value location. On the base of java script values and code behind search criteria values i Have to populate grid view. I am using asp.net and c# technology. How can achieve all three steps by single click of search button. Even i am unable to populate grid on form refresh from that java script code. All three steps I have to perform in Single click on Search button. :^) I achieved this but I have to click search button twice. :((

    Vishnu Narayan Mishra Software Engineer

    modified on Thursday, January 21, 2010 1:53 AM

    B P 2 Replies Last reply
    0
    • V Vishnu Narayan Mishra

      Hi To all forum members, I have a search button which search records in the form, then I have to call a java script which return some values, on the base of these values I have I Have to populate Grid View. Actually when I clicked on search button I) It hits to database and takes records and II) These records are passed to java script III) Then java script returns a value location. On the base of java script values and code behind search criteria values i Have to populate grid view. I am using asp.net and c# technology. How can achieve all three steps by single click of search button. Even i am unable to populate grid on form refresh from that java script code. All three steps I have to perform in Single click on Search button. :^) I achieved this but I have to click search button twice. :((

      Vishnu Narayan Mishra Software Engineer

      modified on Thursday, January 21, 2010 1:53 AM

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Why do you want to roundtrip?Why dont you try to simulate the javascript thing in c# itself?it'll also improve the performance.

      Cheers!! Brij

      1 Reply Last reply
      0
      • V Vishnu Narayan Mishra

        Hi To all forum members, I have a search button which search records in the form, then I have to call a java script which return some values, on the base of these values I have I Have to populate Grid View. Actually when I clicked on search button I) It hits to database and takes records and II) These records are passed to java script III) Then java script returns a value location. On the base of java script values and code behind search criteria values i Have to populate grid view. I am using asp.net and c# technology. How can achieve all three steps by single click of search button. Even i am unable to populate grid on form refresh from that java script code. All three steps I have to perform in Single click on Search button. :^) I achieved this but I have to click search button twice. :((

        Vishnu Narayan Mishra Software Engineer

        modified on Thursday, January 21, 2010 1:53 AM

        P Offline
        P Offline
        Pranay Rana
        wrote on last edited by
        #3

        if you want to do this thing in one go than only one solution is there use ajax mecanism for that or use jquery ajax which work for you easily in javasript.

        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