开发者

Pressing return character in a text area generates 2 different behaviour on the same website on 2 different server

I have a website (asp.net,c#) on two different servers (same source code). In one page my asp generates a text area, using the same browser when I access one of the site if I press return in the text areas I can 开发者_StackOverflowstart a new line, if I do the same accessing the other website on return the form is submitted! Any Idea? I would like to be able to enter a new line!

Thank you


What environments are these deployed to (e.g. Development Web Server and IIS on Windows Server 2008)? What version of ASP.NET are you using (1.1 or 2.0/3.x)? What browser are you using (Internet Explorer, Firefox or Safari)?

It's possible that the servers have different configurations for their Browser Capabilities - which is why ASP.NET is rendering out different behaviour from each.

Depending on the version of ASP.NET there are different areas to check.

If you're running ASP.NET 1.1, then you'll need to check the machine and various web .config files found in:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG

For differences in the <browserCaps> section.

If you're running ASP.NET 2.0, then you can check the machine and web .config files, but the <browserCaps> section has been deprecated in favour of the .browser files that can be found:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers

Obviously, these can also all be defined in the local application .config files, or in the /app_browsers/ folder in the root of the site - but if they are exact copies on both servers, then this shouldn't be the issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜