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?
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...
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)...
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...
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 =...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.