小弟请教个问题:
c#能实现下拉选择日历的功能么?第一次做这个功能,能用dorpdownlist和calendar实现么?
能否给个思路?
c#能实现下拉选择日历的功能么?第一次做这个功能,能用dorpdownlist和calendar实现么?
能否给个思路?
解决方案 »
- 帮我看下代码的意思!p => { return p.SpecId == ps.SpecId; })什么意思?
- 实现登录框局部刷新都有哪些方法?
- 怎么判断传过来的string类型的参数是数字?
- 求指点,求指导
- 为啥不看书觉得啥都不会,看书的时候觉得都会?????????????
- CLR 存储过程 与 业务逻辑层 与 UI 的问题,请教!!!
- 能否在页面中通过循环语句给checkboxlist添加listitem?
- DATAGRID的部分绑定问题!!
- 怎样才能做到像QQ那样的聊天实时性
- 分页控件Microsoft.Web.UI.WebControls在IE11下显示的问题
- GridView更新问题
- 我新做的一个网站,各位贤达给点宝贵建议
选种的话应该就是calendar.selectchange事件改变calendar.visable=false
{
string date = Calendar1.SelectedDate.ToShortDateString();
txtDepStart.Text = date;//给一个文本框赋值
Calendar1.Visible = false;
}private void ibtn_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
ImageButton ibtn = (ImageButton)sender;
//下面调整日历的位置和按钮协调
Calendar1.Style["LEFT"] = ibtn.Style["LEFT"];
Calendar1.Style["TOP"] = (int.Parse(ibtn.Style["TOP"].Substring(0, ibtn.Style["TOP"].Length - 2)) + 21) + "px";
Calendar1.Style["POSITION"] = "absolute";
//隐藏日历控件
Calendar1.Visible = true;
}
加了个panel,但点击就不出来,还有点击后它还刷新页面,这样可不好。因为还有其他填写,一刷新就没了。。private void ImageButtonCalender_Click(object sender,System.Web.UI.ImageClickEventArgs e)
{
if (ViewState["calendar"]==null)
{
ViewState["calendar"]="true";
if(ViewState["calendar"].ToString()=="true")
{
ViewState["calendar"]="false";
}
else
{
ViewState["calendar"]="true";
}
}
this.PanelPgetdt.Visible=Convert.ToBoolean(ViewState["calendar"]);ViewState是这样用的吧?