TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Phaneendra Chakravaram
NA
490
100.8k
Avoid pop-up blocker settings when opening new Window.
Feb 11 2016 1:03 AM
Avoid pop-up blocker settings when opening new Window.
plz reply me fast new window opened but it is asking popupblocks how to resolve this prbm
<script type="text/javascript">
function SetTarget() {
document.forms[0].target = "_blank";
}
</script>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<div class="SlideShowContentPanel clearfix" id="u114">
<!-- stack box -->
<%-- <a href="Images/jesse.jpg" target="_blank"><img src="Images/jesse.jpg"/></img></a>--%>
<asp:ImageButton ID="Image2" OnClick="Image2_Click" OnClientClick="SetTarget();" runat="server" Style="width: 500px; height: 364px;" />
<div class="SSSlide clip_frame clearfix grpelem" id="u234">
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
c#code
....................
protected void Image2_Click(object sender, ImageClickEventArgs e)
{
string url = Image2.ImageUrl;
string script = string.Format("window.open('{0}');", url);
ScriptManager.RegisterStartupScript(Page, Page.GetType(),
"newPage" + UniqueID, script, true);
}
Reply
Answers (
1
)
conversion of asp.net Date to oracle date.
CLASS libraries in C#