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
Aditya Chauhan
NA
102
57.1k
Not Able to Close browser tab
Mar 26 2015 2:23 PM
Hello Team i am just open a tab with java script in c#
//here
StringBuilder sb = new StringBuilder();
sb.Append("<script type = 'text/javascript'>");
sb.Append("window.open('");
sb.Append(url);
Session["url"] = url.ToString();
sb.Append("');");
sb.Append("</script>");
ClientScript.RegisterStartupScript(this.GetType(),
"script", sb.ToString());
//this is f9 perfactly ...
and i want to close the open tab(url) after 40 seconds
how it possible
i am using
string jScript = "<script>window.close();</script>";
ClientScript.RegisterClientScriptBlock(this.GetType(), "btnsubmit", jScript);
//this work with btnsubmit on any other form
but here is not working ..
i am just want to perform it with timer event or any other option you have please suggest..
Reply
Answers (
2
)
show gridview in button click
Winform Multi Select Treeview