HI Again,
I have another query which could be simple but i am not able to resolve it. I need to have a button or link in my page which needs to open a popup window and need to be able to send a variable attached to the link which comes from a database.
the url goes like this
The code is in a <asp:Repeater>. I can have a <asp:button> control and call a c# function onclick event like thisCode:'list.aspx?id="+Databinder.Eval(Container.DataItem, "Id")'
1. how do i access the id from the database in this codeCode:void popup(object sender, System.EventArgs e){ buttonid.Attributes.Add("onclick","window.showModaldialog('url','','height:px, width:px') etc }
2. how do i attach a variable to the url
3. is there a better way to do this, like link or anyother instead, but there is no onclick event in the hyperlink tag so i can't say 'window.open there? Any other suggestion?
THanks




Reply With Quote