1. Using javascript code of newwindow.focus(), blur() does not shift the focus to the new window, but retains in the old window. For this, use Set SmartNavigation = false in your Page header in the .net page as in the code below:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="smart_tag.aspx.vb" Inherits="abc.smart_tag" smartNavigation="True"%>
2. To open a page in new window from button click.
Write the code below under the buton_click event in code behind on the aspx.cs/aspx.vb page:
Dim js As String
js = ""
Page.RegisterClientScriptBlock("js", js)
No comments:
Post a Comment