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

ASP.NET

 
AnswerRe: Web User Controls(ascx) Pin
Sandeep Mewara16-Mar-10 4:58
mveSandeep Mewara16-Mar-10 4:58 
QuestionRe: Web User Controls(ascx) Pin
jonhbt16-Mar-10 5:11
jonhbt16-Mar-10 5:11 
AnswerRe: Web User Controls(ascx) Pin
Sandeep Mewara16-Mar-10 5:40
mveSandeep Mewara16-Mar-10 5:40 
Questionprocedure or function expects parameter which was not supplied Pin
ishwarya mahadevan16-Mar-10 4:42
ishwarya mahadevan16-Mar-10 4:42 
AnswerRe: procedure or function expects parameter which was not supplied Pin
Sandeep Mewara16-Mar-10 4:55
mveSandeep Mewara16-Mar-10 4:55 
Questionhow to call gridview sort event explicitly? Pin
Tridip Bhattacharjee16-Mar-10 2:51
professionalTridip Bhattacharjee16-Mar-10 2:51 
AnswerRe: how to call gridview sort event explicitly? Pin
Neh.C16-Mar-10 3:15
Neh.C16-Mar-10 3:15 
AnswerRe: how to call gridview sort event explicitly? Pin
Sandeep Mewara16-Mar-10 3:23
mveSandeep Mewara16-Mar-10 3:23 
Store grids sorting somethng like this:
private SortDirection GridViewSortDirection
{
   get
   {
      if (ViewState["sortDirection"] == null)
          ViewState["sortDirection"] = SortDirection.Ascending;
      return (SortDirection)ViewState["sortDirection"];
   }
   set 
   { 
      ViewState["sortDirection"] = value; 
   }
}


OnClick event of the control:
C#
protected void btnClick(object sender, EventArgs e)
{
   ViewState["SortExpression"] = 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)
{
  DataView dv = new DataView(dt);
  dv.Sort = sortExpression + direction;
  gvHours.DataSource = dv;
  gvHours.DataBind();
}

Questionwhat is the difference between session and profile? Pin
Tridip Bhattacharjee16-Mar-10 2:51
professionalTridip Bhattacharjee16-Mar-10 2:51 
AnswerRe: what is the difference between session and profile? Pin
Sandeep Mewara16-Mar-10 3:15
mveSandeep Mewara16-Mar-10 3:15 
QuestionRe: ASP.NET Page refresh and result Pin
sowjanya315-Mar-10 22:15
sowjanya315-Mar-10 22:15 
AnswerRe: ASP.NET Page refresh and result Pin
saini arun15-Mar-10 23:00
saini arun15-Mar-10 23:00 
AnswerRe: ASP.NET Page refresh and result Pin
sowjanya315-Mar-10 23:56
sowjanya315-Mar-10 23:56 
GeneralRe: ASP.NET Page refresh and result Pin
saini arun16-Mar-10 0:28
saini arun16-Mar-10 0:28 
GeneralRe: ASP.NET Page refresh and result Pin
sowjanya316-Mar-10 0:32
sowjanya316-Mar-10 0:32 
GeneralRe: ASP.NET Page refresh and result Pin
JHizzle16-Mar-10 1:11
JHizzle16-Mar-10 1:11 
GeneralRe: ASP.NET Page refresh and result Pin
sowjanya316-Mar-10 1:17
sowjanya316-Mar-10 1:17 
AnswerRe: ASP.NET Page refresh and result Pin
Sandeep Mewara16-Mar-10 1:04
mveSandeep Mewara16-Mar-10 1:04 
GeneralRe: ASP.NET Page refresh and result Pin
sowjanya316-Mar-10 19:02
sowjanya316-Mar-10 19:02 
QuestionTable and panel Pin
sowjanya315-Mar-10 22:05
sowjanya315-Mar-10 22:05 
AnswerRe: Table and panel Pin
Gaurav Dudeja India15-Mar-10 22:14
Gaurav Dudeja India15-Mar-10 22:14 
AnswerRe: Table and panel Pin
Abhijit Jana15-Mar-10 22:19
professionalAbhijit Jana15-Mar-10 22:19 
AnswerRe: Table and panel Pin
Brij15-Mar-10 22:49
mentorBrij15-Mar-10 22:49 
AnswerRe: Table and panel Pin
carlecomm16-Mar-10 17:47
carlecomm16-Mar-10 17:47 
GeneralRe: Table and panel Pin
sowjanya316-Mar-10 17:50
sowjanya316-Mar-10 17:50 

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.