Click here to Skip to main content
15,883,336 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:24
mentorBrij8-Feb-10 20:24 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 20:29
sjs4u8-Feb-10 20:29 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:53
mentorBrij8-Feb-10 20:53 
Questionregarding variables declared in a page Pin
vijaylumar8-Feb-10 17:15
vijaylumar8-Feb-10 17:15 
AnswerRe: regarding variables declared in a page Pin
Not Active8-Feb-10 17:45
mentorNot Active8-Feb-10 17:45 
AnswerRe: regarding variables declared in a page Pin
m@dhu8-Feb-10 17:45
m@dhu8-Feb-10 17:45 
QuestionHow to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_8-Feb-10 8:39
-Muc_8-Feb-10 8:39 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
PunkIsNotDead8-Feb-10 12:13
PunkIsNotDead8-Feb-10 12:13 
Hi Muc! I am Not quite sure what are you looking for Laugh | :laugh: but maybe you need to program the sort event of gridview... something like
protected void GV_MyData_Sorting(object sender, GridViewSortEventArgs e)
        {
            string sortExpression = e.SortExpression;
            if (GridViewSortDirection == SortDirection.Ascending)
            {
                GridViewSortDirection = SortDirection.Descending;
                SortGridView(sortExpression, DESCENDING);
            }
            else
            {
                GridViewSortDirection = SortDirection.Ascending;
                SortGridView(sortExpression, ASCENDING);
            }
        }

        private void SortGridView(string sortExpression, string direction)
        {
            DataTable dt = GetDataTableSource()//Getting the data source of GV
            DataView dv = new DataView(dt);
            dv.Sort = sortExpression + direction;
            GV_MyData.DataSource = dv;
            GV_MyData.DataBind();
        }

        private const string ASCENDING = " ASC";
        private const string DESCENDING = " DESC";
        public SortDirection GridViewSortDirection
        {
            get
            {
                if (ViewState["sortDirection"] == null)
                    ViewState["sortDirection"] = SortDirection.Ascending;
                return (SortDirection)ViewState["sortDirection"];
            }
            set { ViewState["sortDirection"] = value; }
        }
... it maybe helps a little! good luck! Wink | ;)
GeneralRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:44
-Muc_9-Feb-10 0:44 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:48
-Muc_9-Feb-10 0:48 
Questiongetting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 8:33
ashutosh kumar jha8-Feb-10 8:33 
AnswerRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur8-Feb-10 9:27
professionalAbhishek Sur8-Feb-10 9:27 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 20:57
ashutosh kumar jha8-Feb-10 20:57 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur9-Feb-10 10:00
professionalAbhishek Sur9-Feb-10 10:00 
Questiongridview pagination Pin
FEMDEV8-Feb-10 6:28
FEMDEV8-Feb-10 6:28 
AnswerRe: gridview pagination Pin
Vimalsoft(Pty) Ltd8-Feb-10 19:48
professionalVimalsoft(Pty) Ltd8-Feb-10 19:48 
AnswerRe: gridview pagination Pin
Gaurav Dudeja India8-Feb-10 19:54
Gaurav Dudeja India8-Feb-10 19:54 
GeneralRe: gridview pagination Pin
FEMDEV11-Feb-10 3:33
FEMDEV11-Feb-10 3:33 
Questionbody Onload Looping.. Pin
Hema Bairavan8-Feb-10 2:30
Hema Bairavan8-Feb-10 2:30 
AnswerRe: body Onload Looping.. Pin
Not Active8-Feb-10 2:50
mentorNot Active8-Feb-10 2:50 
QuestionCustom textbox control problem in Firefox and Chrome [modified] Pin
Danpeking8-Feb-10 1:51
Danpeking8-Feb-10 1:51 
QuestionI wanna make a webpage to find ID or password. Pin
lsh486love8-Feb-10 1:46
lsh486love8-Feb-10 1:46 
AnswerRe: I wanna make a webpage to find ID or password. Pin
Not Active8-Feb-10 2:07
mentorNot Active8-Feb-10 2:07 
AnswerRe: I wanna make a webpage to find ID or password. Pin
sashidhar8-Feb-10 3:22
sashidhar8-Feb-10 3:22 
Questionrestric multiple download concept implemented by rapidshare and hotfile Pin
Tridip Bhattacharjee8-Feb-10 0:31
professionalTridip Bhattacharjee8-Feb-10 0:31 

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.