Click here to Skip to main content
15,886,724 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Email Validation Pin
Ranjit Viswakumar10-Feb-09 16:11
Ranjit Viswakumar10-Feb-09 16:11 
QuestionHow to use VB.NET ASP as an interface for copying documents from a server to another server Pin
AndyASPVB10-Feb-09 11:06
AndyASPVB10-Feb-09 11:06 
AnswerRe: How to use VB.NET ASP as an interface for copying documents from a server to another server Pin
Christian Graus10-Feb-09 12:39
protectorChristian Graus10-Feb-09 12:39 
AnswerRe: How to use VB.NET ASP as an interface for copying documents from a server to another server Pin
Ranjit Viswakumar10-Feb-09 16:29
Ranjit Viswakumar10-Feb-09 16:29 
QuestionHidden CheckBoxes not holding their checked state when paging Pin
AndyASPVB10-Feb-09 10:54
AndyASPVB10-Feb-09 10:54 
AnswerRe: Hidden CheckBoxes not holding their checked state when paging Pin
Christian Graus10-Feb-09 12:41
protectorChristian Graus10-Feb-09 12:41 
GeneralRe: Hidden CheckBoxes not holding their checked state when paging Pin
AndyASPVB11-Feb-09 10:36
AndyASPVB11-Feb-09 10:36 
QuestionCustom Sorting an ASP GridView - Urgent Help Needed Pin
AndyASPVB10-Feb-09 10:42
AndyASPVB10-Feb-09 10:42 
I have about six columns, and what I am looking to do is when any one of the six columns has been sorted into ascending of decending order for that state to remain when the next column is being sorted into either ascending or decending order. However, it is not sorting on two columns I need, I need it over the 6 columns, and thus when each column is sorted its state needs to be maintained until the user has filled up the sort expression. The sort expression needs to be maintained over the paging of the gridview.

I have been given this code by a member:

Protected Sub GridView1_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles GridView1.Sorting

Dim selectedColumn As String = e.SortExpression
Dim viewstateColumns As String

If ViewState("sortBLOCKED EXPRESSION Is Nothing Then
viewstateColumns = String.Empty
Else
viewstateColumns = ViewState("sortBLOCKED EXPRESSION.ToString()
End If


If viewstateColumns.IndexOf(",") >= 0 Then
viewstateColumns = String.Empty

ElseIf Not String.IsNullOrEmpty(viewstateColumns) Then
viewstateColumns = viewstateColumns & ","

End If

viewstateColumns = viewstateColumns & selectedColumn

e.SortExpression = viewstateColumns

ViewState("sortBLOCKED EXPRESSION = e.SortExpression
End Sub


Unfortunately, it doesn't sort on the first column and seems to work on only two columns, plus I am unsure how to create a sort expression to hold my sort order, which can be in any order (i.e. it is not sequential over columns of the 1,2,3, type, but could 2,1,3 , 5,1,6, etc)

So, can anyone help me, please?

Thanks
QuestionBusiness Facade Implementations Pin
Member 391904910-Feb-09 8:10
Member 391904910-Feb-09 8:10 
AnswerRe: Business Facade Implementations Pin
Jon Rista10-Feb-09 9:14
Jon Rista10-Feb-09 9:14 
GeneralRe: Business Facade Implementations Pin
Member 391904910-Feb-09 19:21
Member 391904910-Feb-09 19:21 
GeneralRe: Business Facade Implementations Pin
Jon Rista11-Feb-09 5:40
Jon Rista11-Feb-09 5:40 
QuestionRE:Role selection from ASP.Net Pin
grazza2110-Feb-09 6:08
grazza2110-Feb-09 6:08 
QuestionDynamically creating and positioning dropdown lists Pin
Mohammad A Gdeisat10-Feb-09 5:57
Mohammad A Gdeisat10-Feb-09 5:57 
Questioncreate asp.net graphs.... Pin
priyareguri10-Feb-09 3:59
priyareguri10-Feb-09 3:59 
AnswerRe: create asp.net graphs.... Pin
vaghelabhavesh10-Feb-09 4:43
vaghelabhavesh10-Feb-09 4:43 
AnswerRe: create asp.net graphs.... Pin
Abhijit Jana10-Feb-09 5:06
professionalAbhijit Jana10-Feb-09 5:06 
AnswerRe: create asp.net graphs.... Pin
Jon Rista10-Feb-09 5:52
Jon Rista10-Feb-09 5:52 
QuestionI need to calculate the sum of one of the columns on crystal report - Need help Pin
Slow Learner10-Feb-09 3:57
Slow Learner10-Feb-09 3:57 
QuestionSum or Total of a column in DataGrid changes when I click on Edit Row - Need help Pin
Slow Learner10-Feb-09 3:53
Slow Learner10-Feb-09 3:53 
AnswerRe: Sum or Total of a column in DataGrid changes when I click on Edit Row - Need help Pin
Slow Learner10-Feb-09 4:24
Slow Learner10-Feb-09 4:24 
Question[newbie] Boundaries by pixel Pin
jon-8010-Feb-09 3:41
professionaljon-8010-Feb-09 3:41 
QuestionHow to add extra Storage for blog Pin
Glossy10-Feb-09 3:24
Glossy10-Feb-09 3:24 
AnswerRe: How to add extra Storage for blog Pin
Christian Graus10-Feb-09 9:19
protectorChristian Graus10-Feb-09 9:19 
QuestionHow to add water mark text Pin
Glossy10-Feb-09 3:10
Glossy10-Feb-09 3:10 

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.