Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top