아래 코드에서 링크 버튼을 클릭하면 링크 버튼이 열립니다. 크롬에서 팝업 창이 열리는 반면 IE 및 mozilla에서는 팝업이 작동하지 않아 문제를 해결할 수 있습니다.Linkbutton Google 크롬에서 작동하지 않습니다
<asp:TemplateColumn HeaderText="From Quote" ItemStyle-Width="200px">
<ItemTemplate>
<asp:LinkButton ID="lnkQuote" runat="server" CommandName="Quote" Text="Quote" />
</ItemTemplate>
</asp:TemplateColumn>
if (e.CommandName.Equals("Quote"))
{
Label KK = (Label)dgPOD.Items[e.Item.ItemIndex].Cells[1].FindControl("TXT1");
Label lbl = (Label)dgPOD.Items[e.Item.ItemIndex].Cells[1].FindControl("LBL1");
str1 = KK.Text.ToString();
str2 = lbl .Text.ToString();
ScriptManager.RegisterStartupScript(this, GetType(), "ShowPopUp", "ShowPopUp()", true);
}
자바 스크립트 오류가 발생합니까? 스크립트가 페이지에 렌더링됩니까? 크롬에서 콘솔의 ShowPopUp() 호출은 작동합니까? –