When you are running your asp.net website (.net 3.5) in IE10 with some ImageButton-s together with the ScriptManager, you might have a chance in triggering the following error:
Sys.WebForms.PageRequestManagerServerErrorException input string was not in a correct format
To resolve this, you need to add the following script after the end of the "Form" HTML tag.
<script type="text/javascript">
Sys.WebForms.PageRequestManager.getInstance()._origOnFormActiveElement = Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive;
Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive = function (element, offsetX, offsetY) {
if (element.tagName.toUpperCase() === 'INPUT' && element.type === 'image') {
offsetX = Math.floor(offsetX);
offsetY = Math.floor(offsetY);
}
this._origOnFormActiveElement(element, offsetX, offsetY);
};
</script>
For more details, please read the following URL:
http://stackoverflow.com/questions/13299685/ie10-sending-image-button-click-coordinates-with-decimals-floating-point-values
Showing posts with label Internet Explorer. Show all posts
Showing posts with label Internet Explorer. Show all posts
Thursday, June 6, 2013
Saturday, May 1, 2010
Fullscreen Internet Explorer
To run the Internet Explorer in fullscreen,
http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/289892-ie7-fullscreen-toggle-effect-programmatically-similar-like-f11.html
iexplore.exe -kBelow is the C++ code in calling Internet Explorer to show 2 tab pages in fullscreen mode:
Reference:
CComQIPtrsp = pActiveSite;
(pActiveSite is IOleClientSite *)
CComPtrm_pBrowser;
HRESULT hr = sp->QueryService(IID_IWebBrowserApp, IID_IWebBrowser2,
(void**)&m_pBrowser);
VARIANT_BOOL v = VARIANT_FALSE;
VARIANT_BOOL v1 = VARIANT_TRUE;
m_pBrowser->put_TheaterMode(v1);
m_pBrowser->put_TheaterMode(v);
http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/289892-ie7-fullscreen-toggle-effect-programmatically-similar-like-f11.html
Subscribe to:
Posts (Atom)