hello friends,
i have a webmonthview contol which shows the current appointments for the day.
when i click the appointment for the day it opens the default appointment window.
but instead i have to open my custom window in the click event of the webmonthview control and pass the value of the appointment to the custom window.
for example if the appointment for the day is 2:00 to 2:30,i should be able to pass this value to the custom window in the client-side click event of the web month view control as querystring.
please help!......
Thanks.
If you're passing the values in a query to the custom dialog page you should be able to bind the dataset in the back code and use the data key, if you made the data key a unquie identifier about the record, to obtain the rest of that record.
I set my datakey to the sql datarow's id. Garuntees that I can use the number to fetch the data from the dataset again.
Try the following code, it should work.
<asp:AccessDataSource ID="clinicDataSource" runat ="server" datafile="~/include/DB/webSchedule2.mdb" dataSourceMode = "DataReader"
SelectCommand = "SELECT * FROM [Activity]" > <SelectParameters> </SelectParameters> </asp:AccessDataSource> <asp:GridView id="EmployeesGridView" runat="server" AutoGenerateColumns="True" DataSourceid="clinicDataSource" visible="false" />
Thanks kalzon1 , this is exactly what I've been trying to figure out these days, where did you the properties's name for oActivity?