Click here to Skip to main content
15,922,325 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: My Login System website in ASP/NET runs great in the localhost, but I don't know how to take it to my host provider (Goddady), since I have a database that was created automatically in the ASP.NET configuration. Any hints? Pin
sashidhar23-Sep-09 1:06
sashidhar23-Sep-09 1:06 
AnswerRe: My Login System website in ASP/NET runs great in the localhost, but I don't know how to take it to my host provider (Goddady), since I have a database that was created automatically in the ASP.NET configuration. Any hints? Pin
Illegal Operation23-Sep-09 17:50
Illegal Operation23-Sep-09 17:50 
QuestionPost an HTTP Request from one WebServer to another server. Pin
Sean Cleetus23-Sep-09 0:30
Sean Cleetus23-Sep-09 0:30 
AnswerRe: Post an HTTP Request from one WebServer to another server. Pin
sashidhar23-Sep-09 0:53
sashidhar23-Sep-09 0:53 
GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
Sean Cleetus23-Sep-09 1:07
Sean Cleetus23-Sep-09 1:07 
GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
sashidhar23-Sep-09 1:10
sashidhar23-Sep-09 1:10 
GeneralRe: Post an HTTP Request from one WebServer to another server. Pin
N a v a n e e t h23-Sep-09 1:13
N a v a n e e t h23-Sep-09 1:13 
GeneralRe: Post an HTTP Request from one WebServer to another server. [modified] Pin
sashidhar23-Sep-09 1:25
sashidhar23-Sep-09 1:25 
AnswerRe: Post an HTTP Request from one WebServer to another server. Pin
N a v a n e e t h23-Sep-09 1:05
N a v a n e e t h23-Sep-09 1:05 
QuestionHow to Supress the Sub Report when there is no data in Crystal Reports Pin
arulselvanS23-Sep-09 0:15
arulselvanS23-Sep-09 0:15 
AnswerRe: How to Supress the Sub Report when there is no data in Crystal Reports Pin
sashidhar23-Sep-09 1:09
sashidhar23-Sep-09 1:09 
QuestionLINQ Disadvantages Pin
sris 42622-Sep-09 23:56
sris 42622-Sep-09 23:56 
AnswerRe: LINQ Disadvantages Pin
S.Dhanasekaran23-Sep-09 0:03
S.Dhanasekaran23-Sep-09 0:03 
GeneralRe: LINQ Disadvantages Pin
N a v a n e e t h23-Sep-09 0:46
N a v a n e e t h23-Sep-09 0:46 
AnswerRe: LINQ Disadvantages Pin
Manas Bhardwaj23-Sep-09 0:04
professionalManas Bhardwaj23-Sep-09 0:04 
AnswerRe: LINQ Disadvantages Pin
Vimalsoft(Pty) Ltd23-Sep-09 1:34
professionalVimalsoft(Pty) Ltd23-Sep-09 1:34 
QuestionRe: LINQ Disadvantages Pin
sris 42623-Sep-09 1:58
sris 42623-Sep-09 1:58 
AnswerRe: LINQ Disadvantages Pin
S.Dhanasekaran23-Sep-09 2:32
S.Dhanasekaran23-Sep-09 2:32 
GeneralRe: LINQ Disadvantages Pin
Not Active23-Sep-09 2:27
mentorNot Active23-Sep-09 2:27 
GeneralRe: LINQ Disadvantages Pin
Vimalsoft(Pty) Ltd23-Sep-09 2:41
professionalVimalsoft(Pty) Ltd23-Sep-09 2:41 
QuestionPrinting at specfic point at page Pin
Thekaninos22-Sep-09 22:53
Thekaninos22-Sep-09 22:53 
AnswerRe: Printing at specfic point at page Pin
N a v a n e e t h22-Sep-09 23:57
N a v a n e e t h22-Sep-09 23:57 
QuestionResource file in .net Pin
monika_vasvani22-Sep-09 22:44
monika_vasvani22-Sep-09 22:44 
AnswerRe: Resource file in .net Pin
S.Dhanasekaran22-Sep-09 23:33
S.Dhanasekaran22-Sep-09 23:33 
Questiongridview date sorting in asp.net????????????????? Pin
srinivassam22-Sep-09 21:33
srinivassam22-Sep-09 21:33 
Hi all,

I have one doubt, i am fetching data from database and i am displaying data in gridview.(select empid,empno,covert(varchar,dateofbith,101),convert(varchar,joiningdate,101) from emptable) (values are:1,12,'12/31/1986','12/31/2008')

i am not using any boundfields in gridview.

i am using this code to sort the gridview columns,everything is working fine but dateofbirth,joiningdate fields sorting is not working .

i am using below code to sort the gridview columns:
If Not (Page.IsPostBack) Then
ViewState("Sort") = "asc"
end if

and

Protected Sub grdCommon_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles grdCommon.Sorting
Try


grdCommon.DataSource = Session("grdCommon")
grdCommon.DataBind()

Dim dataTable As DataTable = CType(grdCommon.DataSource, DataTable) ' DirectCast(ViewState("grdCommon.DataSource"), DataTable)
Dim dataView As DataView = New DataView(dataTable)

If Not (dataView Is Nothing) Then
If ViewState("Sort").ToString() = " asc" Then
ViewState("Sort") = " desc"
Else
ViewState("Sort") = " asc"
End If
dataView.Sort = e.SortExpression + ViewState("Sort").ToString()
grdCommon.DataSource = dataView
ViewState("grdCommon.DataSource") = dataView.Table
grdCommon.DataBind()
End If
end sub


Regards
Rama

samrama

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.