Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net VB日历-使用mysql事件表填充_Asp.net_Mysql_Vb.net_Calendar - Fatal编程技术网

Asp.net VB日历-使用mysql事件表填充

Asp.net VB日历-使用mysql事件表填充,asp.net,mysql,vb.net,calendar,Asp.net,Mysql,Vb.net,Calendar,我在mysql中有一个带有日期的表,我想用它作为事件或活动日填充vb日历 将sql语句与以下内容一起使用 Select event, date FROM dateTable WHERE event = eventType.SelectedValue 我如何将这些作为活动放在日历上 <asp:Calendar runat="server" id="calendar1"></asp:calendar> 我肯定我用的是data:repeater,在某种程度上我就是搞不懂 您

我在mysql中有一个带有日期的表,我想用它作为事件或活动日填充vb日历

将sql语句与以下内容一起使用

Select event, date FROM dateTable WHERE event = eventType.SelectedValue
我如何将这些作为活动放在日历上

<asp:Calendar runat="server" id="calendar1"></asp:calendar>
我肯定我用的是data:repeater,在某种程度上我就是搞不懂

您需要的修改包括:

将SQL Server System.Data.SqlClientcode与或您最喜欢的.NET MySQL库交换。 建议的改进可能是取消数据集,改为使用本地MySqlDataReader