Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: onechuck
  • Order by date
  1. onechuck

    How to bind Calendar to SqlDataSource?

    Okay, here's what I did so far: if (e.Day.Date.Day.ToString() == Convert.ToString(Eval("mtgDateStart"))) { e.Cell.BackColor = Color.Navy; } I do not get any error during compilation but I received this error when viewing through IE...
  2. onechuck

    How to bind Calendar to SqlDataSource?

    Well, I don't have any variable define anywhere else other than what is showing in my code behind showing above. Here's all I have in my .aspx page. <form id="cldrBoardMeeting" runat="server"> <asp:DataList ID="DataList1" runat="server" DataSourceID="slqBoardMtng">...
  3. onechuck

    How to bind Calendar to SqlDataSource?

    This is what I have in the SQL server. CREATE TABLE eventMtg_date ( mtgID int NOT NULL, mtgTitle varchar(250) NOT NULL default '', mtgDscrt text, mtgPlace varchar(100) default NULL, mtgLocation varchar(100) default NULL, mtgDateStart datetime NOT NULL default '0000-00-00 00:00:00'...
  4. onechuck

    How to bind Calendar to SqlDataSource?

    First error: Error 1 Cannot convert method group 'ToShortDateString' to non-delegate type 'System.DateTime'. Did you intend to invoke the method? U:\eventCal.aspx.cs 25 25 U:\ On this line: dateStart = dateStart.ToShortDateString; Second error: Error 2 Operator '==' cannot be applied to...
  5. onechuck

    How to bind Calendar to SqlDataSource?

    Okay, this time I got on this line: if (e.Day.Date.Day.ToString() == dateStart) The error is: Error 2 Operator '==' cannot be applied to operands of type 'string' and 'System.DateTime' U:\eventCal.aspx.cs 31 17 U:\
  6. onechuck

    How to bind Calendar to SqlDataSource?

    I'm using a DataList and that's why I use the Eval but by removing it, I recieved the above error.
  7. onechuck

    How to bind Calendar to SqlDataSource?

    I got this error: Error 1 Cannot convert method group 'ToShortDateString' to non-delegate type 'string'. Did you intend to invoke the method? U:\eventCal.aspx.cs 23 32 U:\
  8. onechuck

    How to bind Calendar to SqlDataSource?

    This is the error message on that line: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
  9. onechuck

    How to bind Calendar to SqlDataSource?

    That seems to do the trick; however, I got error on this line: string dateStart = Convert.ToString(Eval("mtgDateStart")); I want to convert it to Short so I tried this: string dateStart = Convert.ToDateTime(Eval("mtgDateStart")).ToShortDateString; But it is not taking that either. How do I...
  10. onechuck

    How to bind Calendar to SqlDataSource?

    Same error.
  11. onechuck

    How to bind Calendar to SqlDataSource?

    And the error occurs when building the page: Error 1 'eventCal.calDayRender(object, System.Web.UI.WebControls.DayRenderEventArgs)' is inaccessible due to its protection level U:\eventCal.aspx 30 This line is referring to this: OnDayRender="calDayRender
  12. onechuck

    How to bind Calendar to SqlDataSource?

    Okay, here's what I have: <asp:Calendar ID="cdrBoardMtng" runat="server" BackColor="White" BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="250px" NextPrevFormat="ShortMonth" Width="330px"...
  13. onechuck

    How to bind Calendar to SqlDataSource?

    This is what I'm looking for. http://calendar.codewalkers.com/calendar.php
  14. onechuck

    How to bind Calendar to SqlDataSource?

    Will you provide a link to instuction how this is done?
  15. onechuck

    How to bind Calendar to SqlDataSource?

    Yes, I'm using .net 2.0.
  16. onechuck

    How to bind Calendar to SqlDataSource?

    Thank you for the response. I do not see the datatable as an option under the Data category so I can't drag it over.
  17. onechuck

    How to bind Calendar to SqlDataSource?

    Is there a way to bind a Calendar to a SqlDataSource? I like to create a calendar where if there is an event scheduled it will show up as highlighted on the calendar. Help is much appreciated.
  18. onechuck

    How to access method in a different master file?

    Thanks! I'll give that a try.
  19. onechuck

    How to access method in a different master file?

    I have a method in the main.master file that I want to access from the subMain.master file. How do I do that?
  20. onechuck

    How to run a SQL statement?

    Thanks! I got it working using another application. I was referring to when adding and creating new tables. I'm not talking from the user's point of view.

Part and Inventory Search

Back
Top