N
Nadav Popplewell
Hi everybody,
I have a problem with Samsung-944 cellular phone.
(the HTTP_USER_AGENT of this phone is
"SAMSUNG-SGH-E700/BSI+UP.Browser/6.1.0.6+(GUI)+MMP/1.0")
I have a form in my application with a textbox and a button.
On most cellular phones the post back from the button works OK,
on samsung-944 the post back returns error 404.
I've checked the log of the IIS and saw that the POST from the button is to
/main.aspx instead of to /icc/(....)/main.aspx.
This is the xhtml generated by asp.net:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
..s0{
text-align: right;
}
</style>
</head>
<body class="s0"><form id="frmLogin" method="post"
action="Main.aspx?__ufps=364052">
<div><input type="hidden" name="__VIEWSTATE"
value="aDxfX1A7QDxmcm1Mb2dpbjvrspnijrfngLbgo4gsMDs+Oz6FByLHzJSvFm6mV496nQcMEZNeWQ=="/>
×©× ×ž×©×ª×ž×©:
<br/>
<input name="txtUsername"/>
<br/>
<input type="submit" name="_btnLogin" value="×”×›× ×¡"/>
</div></form></body>
</html>
It seems to me the problem is with the 'action' attribute of the form tag
that should have the full url, but no matter what I do I can't get the
ASP.NET to generate the page with a full url.
This cellular phone is not recognized by ASP.NET, so I detected it's
capacities using the ASP.NET device profiling tool at
http://www.asp.net/mobile/profile/default.aspx
and added it to my application web.config file:
<browserCaps>
<use var="HTTP_USER_AGENT" />
<case match="SAMSUNG-SGH-E700\/BSI UP\.Browser\/6\.1">
isMobileDevice="true"
breaksOnInlineElements = "False"
browser = "Openwave 6.1"
canInitiateVoiceCall = "True"
canSendMail = "False"
cookies = "True"
inputType = "telephoneKeypad"
isColor = "True"
javascript = "False"
maximumHrefLength = "16000"
maximumRenderedPageSize = "64000"
mobileDeviceManufacturer = "SAMSUNG"
mobileDeviceModel = "SGH-E700"
preferredImageMime = "image/jpeg"
preferredRenderingMime = "application/xhtml+xml"
preferredRenderingType = "xhtml-basic"
requiresAbsolutePostbackUrl = "True"
requiresCommentInStyleElement = "False"
requiresFullyQualifiedRedirectUrl = "True"
requiresHiddenFieldValues = "False"
requiresHtmlAdaptiveErrorReporting = "False"
requiresOnEnterForwardForCheckboxLists = "False"
requiresPostRedirectionHandling = "True"
requiresXhtmlCssSuppression = "False"
screenBitDepth = "16"
screenCharactersHeight = "6"
screenCharactersWidth = "14"
screenPixelsHeight = "128"
screenPixelsWidth = "160"
supportsAccessKeyAttribute = "True"
supportsBodyClassAttribute = "True"
supportsBodyColor = "True"
supportsBold = "True"
supportsCss = "True"
supportsDivAlign = "True"
supportsDivNoWrap = "False"
supportsEmptyStringInCookieValue = "True"
supportsFontColor = "True"
supportsFontName = "True"
supportsFontSize = "True"
supportsItalic = "True"
supportsNoWrapStyle = "True"
supportsQueryStringInFormAction = "True"
supportsRedirectWithCookie = "True"
supportsSelectFollowingTable = "True"
supportsStyleElement = "True"
supportsTitleElement = "True"
supportsUrlAttributeEncoding = "True"
tables = "True"
type = "SAMSUNG-SGH-E700"
</case>
<!-- requiresSpecialViewStateEncoding = "True" -->
</filter>
</browserCaps>
If anybody has any idea how to solve this problem
PLEASE tell me,
Thanks
Nadav
I have a problem with Samsung-944 cellular phone.
(the HTTP_USER_AGENT of this phone is
"SAMSUNG-SGH-E700/BSI+UP.Browser/6.1.0.6+(GUI)+MMP/1.0")
I have a form in my application with a textbox and a button.
On most cellular phones the post back from the button works OK,
on samsung-944 the post back returns error 404.
I've checked the log of the IIS and saw that the POST from the button is to
/main.aspx instead of to /icc/(....)/main.aspx.
This is the xhtml generated by asp.net:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
..s0{
text-align: right;
}
</style>
</head>
<body class="s0"><form id="frmLogin" method="post"
action="Main.aspx?__ufps=364052">
<div><input type="hidden" name="__VIEWSTATE"
value="aDxfX1A7QDxmcm1Mb2dpbjvrspnijrfngLbgo4gsMDs+Oz6FByLHzJSvFm6mV496nQcMEZNeWQ=="/>
×©× ×ž×©×ª×ž×©:
<br/>
<input name="txtUsername"/>
<br/>
<input type="submit" name="_btnLogin" value="×”×›× ×¡"/>
</div></form></body>
</html>
It seems to me the problem is with the 'action' attribute of the form tag
that should have the full url, but no matter what I do I can't get the
ASP.NET to generate the page with a full url.
This cellular phone is not recognized by ASP.NET, so I detected it's
capacities using the ASP.NET device profiling tool at
http://www.asp.net/mobile/profile/default.aspx
and added it to my application web.config file:
<browserCaps>
<use var="HTTP_USER_AGENT" />
<case match="SAMSUNG-SGH-E700\/BSI UP\.Browser\/6\.1">
isMobileDevice="true"
breaksOnInlineElements = "False"
browser = "Openwave 6.1"
canInitiateVoiceCall = "True"
canSendMail = "False"
cookies = "True"
inputType = "telephoneKeypad"
isColor = "True"
javascript = "False"
maximumHrefLength = "16000"
maximumRenderedPageSize = "64000"
mobileDeviceManufacturer = "SAMSUNG"
mobileDeviceModel = "SGH-E700"
preferredImageMime = "image/jpeg"
preferredRenderingMime = "application/xhtml+xml"
preferredRenderingType = "xhtml-basic"
requiresAbsolutePostbackUrl = "True"
requiresCommentInStyleElement = "False"
requiresFullyQualifiedRedirectUrl = "True"
requiresHiddenFieldValues = "False"
requiresHtmlAdaptiveErrorReporting = "False"
requiresOnEnterForwardForCheckboxLists = "False"
requiresPostRedirectionHandling = "True"
requiresXhtmlCssSuppression = "False"
screenBitDepth = "16"
screenCharactersHeight = "6"
screenCharactersWidth = "14"
screenPixelsHeight = "128"
screenPixelsWidth = "160"
supportsAccessKeyAttribute = "True"
supportsBodyClassAttribute = "True"
supportsBodyColor = "True"
supportsBold = "True"
supportsCss = "True"
supportsDivAlign = "True"
supportsDivNoWrap = "False"
supportsEmptyStringInCookieValue = "True"
supportsFontColor = "True"
supportsFontName = "True"
supportsFontSize = "True"
supportsItalic = "True"
supportsNoWrapStyle = "True"
supportsQueryStringInFormAction = "True"
supportsRedirectWithCookie = "True"
supportsSelectFollowingTable = "True"
supportsStyleElement = "True"
supportsTitleElement = "True"
supportsUrlAttributeEncoding = "True"
tables = "True"
type = "SAMSUNG-SGH-E700"
</case>
<!-- requiresSpecialViewStateEncoding = "True" -->
</filter>
</browserCaps>
If anybody has any idea how to solve this problem
PLEASE tell me,
Thanks
Nadav