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. Javascript Problem

Javascript Problem

Scheduled Pinned Locked Moved ASP.NET
helpquestionjavascriptwpfwcf
6 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.
  • K Offline
    K Offline
    Kurian_Kurian
    wrote on last edited by
    #1

    I want to show the selected records Details on the next page with in the Popup window.iam displaying all the details in the Datagrid,i add one Link button in the Item template when click on this link button it should show the popup window.am binding the data while page loading. Javascript Code as follows function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } LinkButton PostbackUrl code as follows PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>');">LinkButton when am running this page am getting this error message 'The server tag is not well formed'.It is showing in the Postbackurl code line.what is wrong in this line.

    S 1 Reply Last reply
    0
    • K Kurian_Kurian

      I want to show the selected records Details on the next page with in the Popup window.iam displaying all the details in the Datagrid,i add one Link button in the Item template when click on this link button it should show the popup window.am binding the data while page loading. Javascript Code as follows function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } LinkButton PostbackUrl code as follows PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>');">LinkButton when am running this page am getting this error message 'The server tag is not well formed'.It is showing in the Postbackurl code line.what is wrong in this line.

      S Offline
      S Offline
      Sandeep Kumar
      wrote on last edited by
      #2

      Kurian_Kurian wrote:

      PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>');">LinkButton

      Replace with below code....... PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,'ID') %>');

      Regards, Sandeep Kumar.V

      K 1 Reply Last reply
      0
      • S Sandeep Kumar

        Kurian_Kurian wrote:

        PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>');">LinkButton

        Replace with below code....... PostBackUrl="javascript:openWindow('UserDetails.aspx?id=<%# DataBinder.Eval(Container.DataItem,'ID') %>');

        Regards, Sandeep Kumar.V

        K Offline
        K Offline
        Kurian_Kurian
        wrote on last edited by
        #3

        Hi Sandeep, I Tried with your code,it is not showing any error,page is loading,but when i click on the Link Button am not getting the popup window,that time not showing any error message.

        S 1 Reply Last reply
        0
        • K Kurian_Kurian

          Hi Sandeep, I Tried with your code,it is not showing any error,page is loading,but when i click on the Link Button am not getting the popup window,that time not showing any error message.

          S Offline
          S Offline
          Sandeep Kumar
          wrote on last edited by
          #4

          hey post your code completely so that i can help you better

          Regards, Sandeep Kumar.V

          K 1 Reply Last reply
          0
          • S Sandeep Kumar

            hey post your code completely so that i can help you better

            Regards, Sandeep Kumar.V

            K Offline
            K Offline
            Kurian_Kurian
            wrote on last edited by
            #5

            Hi Sandeep am sending my code. why the code is not showing after posting.what format i should use for showing the complete code.Now it is showing some part only. Javascript function function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } Link Button Code  LinkButton if am just passing 'userdetails.aspx' it will work.i will get popup window.but i want to add each record id also along with that. -- modified at 11:00 Wednesday 17th October, 2007

            G 1 Reply Last reply
            0
            • K Kurian_Kurian

              Hi Sandeep am sending my code. why the code is not showing after posting.what format i should use for showing the complete code.Now it is showing some part only. Javascript function function openWindow(url) { window.open(url,'Calendar', 'width=500,height=400,left=200,top=250'); } Link Button Code  LinkButton if am just passing 'userdetails.aspx' it will work.i will get popup window.but i want to add each record id also along with that. -- modified at 11:00 Wednesday 17th October, 2007

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              Kurian_Kurian wrote:

              why the code is not showing after posting.what format i should use for showing the complete code.Now it is showing some part only.

              Check the "Ignore HTML" checkbox.

              --- "Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things." -- Douglas Adams

              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