iPhone asp.net组合框问题 [英] iPhone asp.net combo box issue

查看:51
本文介绍了iPhone asp.net组合框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我真的是ASP.net的新手,已经建立了我的第一个网站.

通常,除了iPhone版本的safari之外,该网站在所有浏览器中都能正常运行.

我已将数据绑定组合框添加到页面.第一个是主"类别,第二个是子"类别.两个组合框都从SQL Sever 2005中的sproc中读取其值.

另外,我已经设置了"sub"类别,以便它从"master"类别中获取一个参数值,即在选择"master"类别时,相关的"sub"类别将自动填充到第二个组合中. >
就像我说的那样,以上内容适用于所有浏览器(包括适用于android的移动浏览器),但对于iPhone苹果浏览器,组合框不会刷新以反映用户所做的选择.

iPhone是否存在常见问题?有什么我可以诊断的问题吗?

我计划做一个专门针对移动设备的网站.但是我仍然需要使它正常工作.

任何帮助都将非常有用.

Hi,

I am really new to ASP.net and have put together my first website.

Generally the website works fine in all browsers apart from the iPhone version of safari.

I have added to databound combo boxes to the page. The first one is a "master" category and the second is a "sub" category. Both combo boxes read their values from sproc''s in SQL Sever 2005.

In addition I have set the "sub" category up so that it takes a parameter value from the "master" category i.e. on selection of a "master" category the relevant "sub" categories are populated automatically in the second combo.

As I said the above works fine with all browsers (inc mobile browsers for android etc) but for iphone safari the combo boxes just don''t refresh to reflex the selections made by users.

Is there a common problems with this for the iphone? Is there anything I can do to diagnose the issue?

I have plans to do a mobile specific site. But I still need to get this working.

Any help would be great.

推荐答案

您正在使用回发使所有这些工作正常进行吗? ASP.NET会根据浏览器更改其呈现方式.您正在使用什么版本的ASP.NET?较新的版本可能会更好地知道如何处理iPhone.就个人而言,我尽量不要使用回发并使用jQuery处理所有事情.总的来说,我会建议您是否是新手,使用MVC而不是Webforms,从而使用jQuery和AJAX进行此类操作.
You''re using postbacks to make all of this work ? ASP.NET changes how it renders according to the browser. What version of ASP.NET are you using ? A newer version may better know how to deal with an iPhone. Personally, I try to never use postbacks and handle everything with jQuery. In general I would recommend if you are new anyhow, using MVC instead of webforms and thus using jQuery and AJAX for things like this.


这篇关于iPhone asp.net组合框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆