Javascript Problem
-
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.
-
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.
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
-
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
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.
-
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.
hey post your code completely so that i can help you better
Regards, Sandeep Kumar.V
-
hey post your code completely so that i can help you better
Regards, Sandeep Kumar.V
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
-
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
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