Hello,
I have been struggling with a problem that kept me busy for a few days now. I am programming c# .net web applications for an IE only environment and my current project contains a modal window. I hope you guys can help me out here!
I have a couple of response.redirects in my modal page that work fine, with the addition of in the aspx file. But I also have a listview which is filled at runtime, where I add a onclick event to a tablecell using the attributes.add method which fires java script to do the redirect. The problem is this: The methods I used, location.href='x'; and window.open('x','_self'); sadly opens the link in a new window instead of in the same.
Would somebody know a way around this or how to solve this? I would be very grateful for any help.
protected void lvConditions_ItemDataBound(object sender, ListViewItemEventArgs e)
{
...
label.Attributes.Add("OnClick", "window.open('Condition.aspx?action=selectedcondition', '_self');");
...
}
Thanks