Last post Aug 23, 2018 07:53 AM by Ackerly Xu
Aug 22, 2018 10:08 PM|inkaln|LINK
I have a gridview and in the rowdatabound even,t I'm adding these attributes:
for (int i = 1; i < e.Row.Cells.Count; i++)
The above was working find, and opened up the popup window (modal). However, I needed to apply style to a row if data was between two values so I modified as follows:
string value1= e.Row.Cells.Text;
string value2= e.Row.Cells.Text;
if (value1 >= value2)
e.Row.CssClass = "generic-modal-trigger active-row";
The code changes the row to the active row style from the css file as set...however, when clicking on the row, it opens up two pop up windows, one with 404 error and the other one that should open up, which is behind the 404 and can be seen when the
404 window is closed. I've tried removing the attribute from the original code above and re adding a new one with the active row. I've tried just setting the new value to the attributes but none seems to solve the problem. Why is the 404 window opening
when I make the above change to highlight the active row?</div>
Aug 23, 2018 07:53 AM|Ackerly Xu|LINK
Hi inkaln ,
It seems that you are using iframe ,you could use f12 developer tool to check whether the iframe's src is set to a correct value.
And you code ResolveUrl("framePage.aspx") will be rendered as a relative path .For example, if the path of your aspx page is /path/currentPage.aspx, your method will render the path as "/path/framePage.aspx", please check this.
If you want to render absolute path , please use ResolveUrl("~/framePage.aspx")),"~" represents the root path of your project.
Because you haven't post your marks from aspx page, it is hard to find why you meet the problem.
Please post your marks from aspx page and your complete code behind so that we could solve your problem more sufficiently.