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. JAvaScrpit in ASP.net page

JAvaScrpit in ASP.net page

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptasp-netdatabasehelp
2 Posts 2 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.
  • D Offline
    D Offline
    Dotnetdeveloper06
    wrote on last edited by
    #1

    Hi i have small functionality to excecute.I have BUtton Save AS:On Save as Button Click:Allows the user to create a duplicate item. Clicking this button generates a JavaScript prompt dialog that asks the user to specify a unique name for the new item. This title will be checked for uniqueness. Once that has been specified and the user clicks the “OK” button, the system will automatically create a duplicate of the item in the database. .Anyone can help me with coding part Thanks in adavnce.i was able to do for only save button but i have this additional functionality.anyone plz urgent Thanks Dotnetdeveloper

    M 1 Reply Last reply
    0
    • D Dotnetdeveloper06

      Hi i have small functionality to excecute.I have BUtton Save AS:On Save as Button Click:Allows the user to create a duplicate item. Clicking this button generates a JavaScript prompt dialog that asks the user to specify a unique name for the new item. This title will be checked for uniqueness. Once that has been specified and the user clicks the “OK” button, the system will automatically create a duplicate of the item in the database. .Anyone can help me with coding part Thanks in adavnce.i was able to do for only save button but i have this additional functionality.anyone plz urgent Thanks Dotnetdeveloper

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, IMO, you need to do two things before the server code executes: + Provide client side script to prompt the user with an input dialog. In this case, you can simply use the prompt[^] predefined function or pop up a new window. + To register the client side function for a Button control, you can see the sample code below:

      Button1.Attributes.Add("onclick", "clientsidefunction();");

      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