Search results for query: *

  • Users: monfu
  • Order by date
  1. monfu

    get the last 14 days

    Dear All, I am creating a report to get the last transaction done between today and the last 14 days My where clause is like this:- WHERE (date_posted >= GETDATE()) AND (date_posted <= GETDATE() - 14) for some reason its not working fine Is the syntax correct?
  2. monfu

    attach textboxes to checkbuttons

    Dear All, I have a series of checkboxes as follows:- aspx:- <asp:CheckBoxList id="cblPrint" runat="server" Width="376px" RepeatLayout="Flow"></asp:CheckBoxList> code behind:- CType(r.FindControl("cblPrint"), CheckBoxList).DataSource = dsMo.stpSelectAllPrint.DefaultView...
  3. monfu

    String was not recognized as a valid DateTime

    Hi Jeevi I solved it like this Dim myDate As DateTime = DateTime.ParseExact(CType(r.FindControl("txtEvDate"), TextBox).Text(), "MM/dd/yy", New DateTimeFormatInfo) 'Dim myDate As Date = Date.ParseExact(CType(r.FindControl("txtEvDate"), TextBox).Text(), "dd/MM/yyyy", Nothing)...
  4. monfu

    String was not recognized as a valid DateTime

    Dear All, I have this piece of code:- CType(r.FindControl("calDate"), Calendar).SelectedDate = DateTime.Parse(CType(r.FindControl("txtEvDate"), TextBox).Text()) And its giving me an error:- String was not recognized as a valid DateTime How can I solve this? Thanks for your help and time...
  5. monfu

    Object reference not set to an instance of an object

    Thanks guys I solved it like this Dim ctrl As Control = r.FindControl("uplEventFile") If Not ctrl Is Nothing Then Dim file As HtmlInputFile = CType(ctrl, HtmlInputFile) If Not file.PostedFile Is Nothing Then Dim strFileName As String = file.PostedFile.FileName Dim c As String =...
  6. monfu

    Object reference not set to an instance of an object

    Dear All I have this piece of code:- Dim r As RepeaterItem Dim bln As Integer For Each r In rptEvManage.Items Dim strFileName As String = CType(r.FindControl("uplEventFile"), HtmlInputFile).PostedFile.FileName Next And it is giving me an error on Dim strFileName. The error is :- Object...
  7. monfu

    Object reference not set to an instance of an object

    Dear All I have the following code, which when executed, is returning the following error:- Object reference not set to an instance of an object 'A form that allows the user to open an XML file and edit its contents on a Datagrid. 'Then the user can save his changes back to the file...
  8. monfu

    creating labels and textboxes dynamically

    Dear All, I am trying to create some labels and textboxes dynamically for an aspx.net web page using VB.NET Basically what I want to do is, I have a table which has all the "pages" of my website in it, and I want to loop through that table and create a label and textbox for every entry i...
Back
Top