开发者

Problem with Select List control in asp.net web mobile application

I am trying to develop the single page in asp.net web mobile application as code behind c#. I have took the Mobile select list control on page.It has items, 1,2,3,4,5,6,7,8...20. I want it should be assign the selected value of select control to mobile label control situated on page (Mobile Form). As per i know I have to code this on OnSelectIndexChanged Event at code behind. ok? but nothing like this happening. I have written the method (Event) on code behind. I don't want to write javscript or on .aspx开发者_如何学运维 code ( not want any client code). I want to conduct functionality on code behind. How should I can achieve this.? As I found Select List control of Mobile toolkit not generates the server side event.

What I have to do?


You need to set AutoPostBack=true in your select list control in order to fire the OnSelectedIndexChanged event.

EDIT:

In looking on Google for 30 seconds, I discovered that a selection of an item in the SelectionList does not fire a server event.

Look at the MSDN documentation for a sample on how to raise a server response.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜