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
open_door8
NA
3
0
start new process in newly opened window
Nov 11 2014 5:07 PM
I have application which opens HTML document. You can edit the document with HTML editor. Next, btnPreview opens a new window and shows changes you made in Internet Explorer (IE - default browser).
Here is original code - works OK when you run from both - Visual Studio 2010 (
http://localhost:50827/NCSite/MenuEditor.aspx
) or via browser IE (
http://localhost/NCSite/MenuEditor.aspx
).
...
URL = Request.Url.Scheme +
"://"
+ Request.Url.Host + appPath + URL;
ClientScriptManager
cs = Page.ClientScript;
cs.RegisterStartupScript(
this
.GetType(),
"NewWindow"
,
"<script>window.open('"
+ URL +
"', 'New')</script>"
);
...
Now I have a request to add two more buttons to preview in Google Chrome and Mozilla Firefox.
I used next code:
...
//for btnIE:
URL = Request.Url.Scheme +
"://"
+ Request.Url.Host + appPath + URL;
Process
.Start(
"iexplore"
, URL);
//for btnGC:
URL = Request.Url.Scheme +
"://"
+ Request.Url.Host + appPath + URL;
Process
.Start(
"chrome"
, URL);
//for btnFF:
URL = Request.Url.Scheme +
"://"
+ Request.Url.Host + appPath + URL;
Process
.Start(
"firefox"
, URL);
...
It works OK when you run from Visual Studio 2010 (
http://localhost:50827/NCSite/MenuEditor.aspx
) but when you run from btnIE, btnGC, or btnFF it simply replacing existing window and shows updated document via IE. Processes for GC and FF not even started.
Is it any way to solve that issue?
Thanks,
dm
Reply
Answers (
2
)
excute scalar
Error while fetch data using data Reader