how to show a pupup on my parant window.
-
Hi, For when click datalist item show pupup on parent window i use this code : any other???????
protected void dlPhotos_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "Select")
{
Response.Write("<script>");
Response.Write("window.open(Default3.aspx','_self','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')");
Response.Write("</script>");
}
} -
Hi, For when click datalist item show pupup on parent window i use this code : any other???????
protected void dlPhotos_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "Select")
{
Response.Write("<script>");
Response.Write("window.open(Default3.aspx','_self','toolbar=0,location=0,menubar=0,resizable=0,width=400,height=320')");
Response.Write("</script>");
}
}Jitendra Parida1987 wrote:
ItemCommand(object source, DataListCommandEventArgs e)
this is server side code which will get executed the user clicks a button in your DataList. I am assuming that your expected behavior is not working. since everything in your script appears to be static why not just write the script code into your .aspx page directly? add your control and on the click event call your javascript function. the only thing you need change is returning false so that it won't post back.
as if the facebook, twitter and message boards weren't enough - blogged
-
Jitendra Parida1987 wrote:
ItemCommand(object source, DataListCommandEventArgs e)
this is server side code which will get executed the user clicks a button in your DataList. I am assuming that your expected behavior is not working. since everything in your script appears to be static why not just write the script code into your .aspx page directly? add your control and on the click event call your javascript function. the only thing you need change is returning false so that it won't post back.
as if the facebook, twitter and message boards weren't enough - blogged
Hi, My requirement is dynamically implement so that i try this code.
-
Hi, My requirement is dynamically implement so that i try this code.
Jitendra Parida1987 wrote:
My requirement is dynamically implement
dynamically implement?? there is nothing dynamic about that script that you posted so why not just put it in a static javascript function that gets called from each item in the DataList. the html code that gets displayed is dynamically generated on the server so maybe that is it?? sounds like a homework assignment when you mention it this.. haha
as if the facebook, twitter and message boards weren't enough - blogged
-
Jitendra Parida1987 wrote:
My requirement is dynamically implement
dynamically implement?? there is nothing dynamic about that script that you posted so why not just put it in a static javascript function that gets called from each item in the DataList. the html code that gets displayed is dynamically generated on the server so maybe that is it?? sounds like a homework assignment when you mention it this.. haha
as if the facebook, twitter and message boards weren't enough - blogged
hi, please tell me what is problem in my code???????