apply style to parent element to fix this bug.
http://www.west-wind.com/weblog/posts/761008.aspx
Raindrops in my programming sky
Tuesday, November 9, 2010
Wednesday, September 29, 2010
content-disposition filename should be quoted
When you want browser to open the document and give it a good name, you may use this code
Response.AddHeader("content-disposition","inline; filename=Internet User Report.pdf");
But it's not correct, you may see file name like Internet without .pdf
Why? Because the quotes are missing, according to W3C standard,
the code should be
Response.AddHeader("content-disposition","inline; filename=\"Internet User Report.pdf\"");
This problem is most obvious in Firefox.
Response.AddHeader("content-disposition","inline; filename=Internet User Report.pdf");
But it's not correct, you may see file name like Internet without .pdf
Why? Because the quotes are missing, according to W3C standard,
the code should be
Response.AddHeader("content-disposition","inline; filename=\"Internet User Report.pdf\"");
This problem is most obvious in Firefox.
Tuesday, July 27, 2010
cannot delete browserui.dll
This is really interesting, after a system update of XP SP3, there are 2 strange hidden folders in D drive.
I tried to delete them, but they just cannot be deleted.
system restart, explorer shutdown, all no avails.
Finally, I check the permissions of these 2 folders.
Even group like administrators have no control of them,
so I gave admin full control of them, shift+delete, they are all gone!
I tried to delete them, but they just cannot be deleted.
system restart, explorer shutdown, all no avails.
Finally, I check the permissions of these 2 folders.
Even group like administrators have no control of them,
so I gave admin full control of them, shift+delete, they are all gone!
Monday, June 28, 2010
UpdatePanel does not working in an existing asp.net website
Spent more than 3 hours trying to make UpdatePanel to work.
Everything has been done but still does not work.
At last I searched "UpdatePanel not working" in Google, got the solution from Scott Gu.
remove xhtmlConformance mode="Legacy" in web.config file.
http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx
I hope I searched in Google at the very first moment when I met the problem.
Everything has been done but still does not work.
At last I searched "UpdatePanel not working" in Google, got the solution from Scott Gu.
remove xhtmlConformance mode="Legacy" in web.config file.
http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx
I hope I searched in Google at the very first moment when I met the problem.
Subscribe to:
Posts (Atom)