View Complete Post
I m getting data from database using SQL
string mysql = "SELECT [ID],[FirstName],[LastName],,[MiddleInit],[DateLastModified] FROM [Databse] WHERE ([ID] = '54321') ORDER BY [DateLastModified]";
I have 4 rows for this sql and I m displaying in GridView. I want the latest modified date as my first row but it is displaying in a reverse order. How can I display rows using Latestmodified date without sorting.
Hi dear friends,
I m working in vs 2005 project(Built before 2 years with deklarit and Infragistics) and not using Ajax Update panel instead I m using Ajaxprodll throughout the project and I cannot use the update panel as it requires the huge changes in web.config file and I dont want to play with config file so I keep using Ajax pro dll.
On my page there is a tab control in which there are 4 tabs.Each tab contain gridview and each gridview has same number of column.Firsttab is Daily has daily girdiew,Second Tab is Weekly and has a weekly gridview,Third Tab is Fortinght and has fortnight gridview ,4th is Monthly and has monthly gridview.
First two coumn named as Start Date,End Date in all gridview
My Q1: If user enters the start date, end date should be greater than start date,at the same time the data (period) entered in first row sholud not be repeated for second row or third row or any row in the gridview.It is applicable for all gridview .How should I achieve it?
My Q2(Logic????): When user enter the start date and end date in first gridview(Daily) that period should not be allowed to enter in the second gridview(Weekly) or third gridview (Fortnight) or Fourth gridview (Monthly) and Simil
I'm new here - just started, and already have a problem...
the database - 2 of my GridView cells: From Period, and Till Period -
retrieve dates in the format YYYYMM - that is: just Year and Month. For
I want for the date to be displayed in the Grid at the following format MM/YYYY - that is:
From the database - 2 of my GridView cells: From Period, and Till Period - retrieve dates in the format YYYYMM - that is: just Year and Month. For Example:
can I add a column to gridview that will convert the utc date to my local time? HOw?
how to query the system date in selectcommand in gridview without using the codebehind. using c# .net
<asp:SqlDataSource ID="SqlDataSource1" runat="server" SelectCommand="SELECT * FROM tablename where date_today = <SYSTEMDATE>" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
I've got 3 problems and I can't find the solution so that's why I'm here.1. I've got a calander for adding a product to my shop. How can I make sure that you can't select a date in the past?2. I have a gridview, and I have added a hyperlinkfield in access. When I'm filling up my gridview it doesn't show a link, it shows this:example= www.Groezrock.be#http://www.Groezrock.be#3. I've added a label and a textbox on my guestbook page. It says "Please fill in the number in the textbox -label that generates 4 random number- txtbox.For filling up the textbox I use this code:
Dim randObj As New Random lblVraag.Text = (randObj.Next(1001, 10000).ToString)
The problem is, when I fill in the number, it always gives me the validation error "Numbers don't match" which I added myself.
If txtnumbers.Text = lblnumbers.Text Then ... Else lblFout.Text = "Numbers don't match."