Click here to Skip to main content
16,012,759 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionEncryption [modified] Pin
alexfromto23-Nov-06 3:20
alexfromto23-Nov-06 3:20 
AnswerRe: Encryption Pin
Britney S. Morales23-Nov-06 4:58
Britney S. Morales23-Nov-06 4:58 
GeneralRe: Encryption Pin
alexfromto23-Nov-06 5:22
alexfromto23-Nov-06 5:22 
GeneralRe: Encryption Pin
Britney S. Morales24-Nov-06 4:21
Britney S. Morales24-Nov-06 4:21 
GeneralRe: Encryption Pin
alexfromto24-Nov-06 4:48
alexfromto24-Nov-06 4:48 
QuestionEvent Handling Pin
R.Palanivel23-Nov-06 3:16
R.Palanivel23-Nov-06 3:16 
AnswerRe: Event Handling Pin
sam L24-Nov-06 20:30
sam L24-Nov-06 20:30 
QuestionSorting gridview through javascript Pin
ayeleteric23-Nov-06 2:22
ayeleteric23-Nov-06 2:22 
Hello,

I have a gridview of the columns, I am hiding the header of the gridview and creating my own header cells. (In fact I have a lot of columns and rowspan,columnspan.., but let simplify the problem)

My target is to sort the grid cicking on the header cells.

I add attributes to each one of the header cells as following
Dim cell11 As New TableCell
cell11.RowSpan = 2
cell11.Text = "Model Name"

cell11.Style.Add("text-decoration", "underline")
cell11.Style.Add("cursor", "hand")
cell11.Style.Add("color", "navy")

Now I have to add onclick attribute to the cell
cell11.Attributes.Add("OnClick", "SortGridView('Model Name')")

Here is my client side code:

var gridViewCtlId = '<%=GridView1.ClientID%>';

function getGridViewControl()
{
if (null == gridViewCtl)
{
gridViewCtl = document.getElementById(gridViewCtlId);
}
}

function SortGridView(colNm)
{
getGridViewControl();
if (null != gridViewCtl)
{
return gridViewCtl.sort[colNm,1];
}
return null;
}

What is the right code in javascript functions?
Thanx


Eric H.

Question"datagrid paging" Pin
ravikiranreddydharmannagari23-Nov-06 1:01
ravikiranreddydharmannagari23-Nov-06 1:01 
QuestionChanging property through javascript Pin
aaraaayen23-Nov-06 0:55
aaraaayen23-Nov-06 0:55 
AnswerRe: Changing property through javascript Pin
ayeleteric23-Nov-06 2:25
ayeleteric23-Nov-06 2:25 
AnswerRe: Changing property through javascript Pin
Guffa23-Nov-06 3:09
Guffa23-Nov-06 3:09 
GeneralRe: Changing property through javascript Pin
ayeleteric23-Nov-06 4:42
ayeleteric23-Nov-06 4:42 
AnswerRe: Changing property through javascript Pin
Guffa23-Nov-06 7:48
Guffa23-Nov-06 7:48 
GeneralRe: Changing property through javascript Pin
ayeleteric24-Nov-06 21:01
ayeleteric24-Nov-06 21:01 
AnswerRe: Changing property through javascript Pin
Guffa25-Nov-06 5:20
Guffa25-Nov-06 5:20 
GeneralRe: Changing property through javascript Pin
aaraaayen23-Nov-06 18:28
aaraaayen23-Nov-06 18:28 
GeneralRe: Changing property through javascript Pin
ayeleteric24-Nov-06 21:08
ayeleteric24-Nov-06 21:08 
AnswerRe: Changing property through javascript Pin
RaviJJain23-Nov-06 20:56
RaviJJain23-Nov-06 20:56 
QuestionHelp [modified] Pin
Imran Khan Pathan23-Nov-06 0:46
Imran Khan Pathan23-Nov-06 0:46 
Question"datagrid paging" Pin
ravikiranreddydharmannagari22-Nov-06 23:48
ravikiranreddydharmannagari22-Nov-06 23:48 
AnswerRe: "datagrid paging" Pin
_mubashir23-Nov-06 0:12
_mubashir23-Nov-06 0:12 
QuestionHelp !!! Pin
sukhchain singh22-Nov-06 23:40
sukhchain singh22-Nov-06 23:40 
AnswerDouble post Pin
leckey25-Nov-06 15:41
leckey25-Nov-06 15:41 
QuestionSetting username/passwords in the web.config using forms authentication? Pin
Red_Wizard_Shot_The_Food22-Nov-06 23:34
Red_Wizard_Shot_The_Food22-Nov-06 23:34 

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.