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
Naveen Kumar
NA
73
5.1k
Getting Alert . While Opening a Excel sheet.
Jul 24 2014 6:36 AM
Hi...
I am generating a report the Data to Excel sheet.
The data gets generating but When i am trying to Open the Excel sheet document . shows the alert message like this.
The file you are trying to open abc.xls is in different format than specified by the extension. Verify that the file is not corrupted and is from trusted source before openong the file. Do you want to open the file now ??
And than i click Yes it's opening No issues
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-disposition","attachment;filename=abc.xls)
Can any one help me to get rid of this alert message
Reply
Answers (
5
)
Assign/set Image url dynamically in AdRotator of xml file?
Reading XML file which is on listbox and bind data to Grid