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
MItesh Machhi
NA
30
9.7k
Open word, excel, ppt in window with out save
May 2 2012 8:54 AM
I want to open word,excel or ppt file open in next window. when i click it ask me to save then open in google chrome but i directly want to open..
protected
void
GridView1_RowCommand(
object
sender, GridViewCommandEventArgs e) {
if
(e.CommandName.Equals(
"view"
)) {
int
index = System.Convert.ToInt32(e.CommandArgument); Label l1 = (Label)GridView1.Rows[index].FindControl(
"Label1"
); Label title = (Label)GridView1.Rows[index].FindControl(
"Label3"
); ScriptManager.RegisterStartupScript(
this
,
typeof
(
string
),
"OPEN_WINDOW"
,
"window.open('"
+ l1.Text +
"', null, 'height=500,width=500,status=yes,toolbar=no,menubar=no,location=no');"
,
true
); } }
please help me...
Regards...
Mitesh
Reply
Answers (
0
)
Star logic
Discovering controls beneath a programmatically drawn rectangle