嗨,我有一个类,下面给出。{BR}
我使用。NET属性设置值如下
public partial class myClass : System.Web.UI.Page
{
// FC is freight center
private string selectedState;
private string selectedCity;
private string stateLatitude;
private string stateLongitude;
...
below given properties go here..
}
{C}在我的aspx页面,我有一个按钮。按钮时,火灾......我要处理一些功能。函数签名如下:
protected void ShowMap(object sender, EventArgs e)
{
use public properties here.. but the values of properties StateLatitude and StateLongitude are getting set to empty or "" when the button on aspx page is clicked and it enters this function.
}
请帮助我,如果你知道什么可能会出错。