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. Server-Side/Client-Side Problem

Server-Side/Client-Side Problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptasp-netsysadmin
3 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.
  • H Offline
    H Offline
    Harmonium
    wrote on last edited by
    #1

    I have two ASP.NET Server Side buttons that perform action on both the Server and Client side. Here is the break down of code placement: 1. Server-Side Load: Contains an Add Attribute for a JavaScript event to be fired for onClick(). 2. Server-Side Click for buttons: Navigates the user to a different form state by resetting visibility of panels on the form. 3. JavaScript to perform validation before allowing the Server-Side click to be performed. The problem is that while using the designer I have no problems. All functions work and navigation is perfect. Once installed on the client's IIS Server the Server-Side code is seemingly only triggered when the JavaScript validation is not performed. Once the JavaScript validation displays an error message resulting from an invalid entry the Server-Side code for the form no longer works and the browser must be closed. Any ideas????

    J 1 Reply Last reply
    0
    • H Harmonium

      I have two ASP.NET Server Side buttons that perform action on both the Server and Client side. Here is the break down of code placement: 1. Server-Side Load: Contains an Add Attribute for a JavaScript event to be fired for onClick(). 2. Server-Side Click for buttons: Navigates the user to a different form state by resetting visibility of panels on the form. 3. JavaScript to perform validation before allowing the Server-Side click to be performed. The problem is that while using the designer I have no problems. All functions work and navigation is perfect. Once installed on the client's IIS Server the Server-Side code is seemingly only triggered when the JavaScript validation is not performed. Once the JavaScript validation displays an error message resulting from an invalid entry the Server-Side code for the form no longer works and the browser must be closed. Any ideas????

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

      what kind of validation are you doing on the client side? ~Javier Lozano

      H 1 Reply Last reply
      0
      • J Javier Lozano

        what kind of validation are you doing on the client side? ~Javier Lozano

        H Offline
        H Offline
        Harmonium
        wrote on last edited by
        #3

        I have two client-side radio button lists that are interact with one another and are required to submit the form. When a condition is not met a JavaScript alert box is displayed with a message. When the OK button is clicked the server-side methods no longer run. No server-side code works after this point. I am not seeing this problem in the IDE on my workstation, but it does appear on the IIS server so that is what concerns me.

        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