Click here to Skip to main content
15,905,238 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: about ajax control tool kit Pin
Imran Khan Pathan31-Aug-07 23:35
Imran Khan Pathan31-Aug-07 23:35 
GeneralRe: about ajax control tool kit Pin
tauras811-Sep-07 0:31
tauras811-Sep-07 0:31 
AnswerRe: about ajax control tool kit Pin
divyesh143231-Aug-07 23:51
divyesh143231-Aug-07 23:51 
AnswerRe: about ajax control tool kit Pin
Vasudevan Deepak Kumar1-Sep-07 2:15
Vasudevan Deepak Kumar1-Sep-07 2:15 
QuestionRich Text Box Pin
.NET- India 31-Aug-07 21:47
.NET- India 31-Aug-07 21:47 
AnswerRe: Rich Text Box Pin
Fred_Smith31-Aug-07 23:44
Fred_Smith31-Aug-07 23:44 
AnswerRe: Rich Text Box Pin
Vasudevan Deepak Kumar1-Sep-07 2:16
Vasudevan Deepak Kumar1-Sep-07 2:16 
Questiongridview -script ? Pin
sanjay_tutu31-Aug-07 21:44
sanjay_tutu31-Aug-07 21:44 
var gridViewCtlId = '<%=gridview1.ClientID%>';
var gridViewCtl = null;
var curSelRow = null;
var curRowIdx = -1;
function getGridViewControl()
{
if (null == gridViewCtl)
{
gridViewCtl = document.getElementById(gridViewCtlId);
}
}

function onGridViewRowSelected(rowIdx)
{
var selRow = getSelectedRow(rowIdx);
if (null != selRow)
{
curSelRow = selRow;
var cellValue = getCellValue(rowIdx, 0);
alert(cellValue);
}
}

function getSelectedRow(rowIdx)
{
return getGridRow(rowIdx);
}

function getGridRow(rowIdx)
{
getGridViewControl();
if (null != gridViewCtl)
{
return gridViewCtl.rows[rowIdx];
}
return null;
}

function getGridColumn(rowIdx, colIdx)
{
var gridRow = getGridRow(rowIdx);
if (null != gridRow)
{
return gridRow.cells[colIdx];
}
return null;
}

function getCellValue(rowIdx, colIdx)
{
var gridCell = getGridColumn(rowIdx, colIdx);
if (null != gridCell)
{

alert(gridViewCtlId)

return gridCell.innerText;

}
return null;

}


If i call it as:
For Each row As GridViewRow In GridView1.Rows

CType(row.FindControl("Textbox1"), TextBox).Attributes("onclick") = "javascript: return getCellValue("+row.rowindex.toString()+",1)"

It shows the heading of 2nd column only if i click on first row.
2nd row onwards it does not show any value.



<div class="ForumSig">sanjay kumar samantaray</div>
Questiontool tip window Pin
waheed awan31-Aug-07 21:39
waheed awan31-Aug-07 21:39 
AnswerRe: tool tip window Pin
divyesh143231-Aug-07 23:53
divyesh143231-Aug-07 23:53 
AnswerRe: tool tip window Pin
Vasudevan Deepak Kumar1-Sep-07 2:17
Vasudevan Deepak Kumar1-Sep-07 2:17 
QuestionConvertToMinutes from string Pin
Imran Khan Pathan31-Aug-07 21:18
Imran Khan Pathan31-Aug-07 21:18 
AnswerRe: ConvertToMinutes from string Pin
Michael Sync31-Aug-07 21:25
Michael Sync31-Aug-07 21:25 
GeneralRe: ConvertToMinutes from string Pin
Imran Khan Pathan31-Aug-07 22:15
Imran Khan Pathan31-Aug-07 22:15 
GeneralRe: ConvertToMinutes from string Pin
Michael Sync1-Sep-07 21:00
Michael Sync1-Sep-07 21:00 
Questionscript? Pin
sanjay_tutu31-Aug-07 21:08
sanjay_tutu31-Aug-07 21:08 
AnswerRe: script? Pin
Imran Khan Pathan31-Aug-07 22:26
Imran Khan Pathan31-Aug-07 22:26 
AnswerRe: script? Pin
divyesh143231-Aug-07 23:57
divyesh143231-Aug-07 23:57 
Questionsending mails Pin
kirtiarora31-Aug-07 20:38
kirtiarora31-Aug-07 20:38 
AnswerRe: sending mails Pin
Michael Sync31-Aug-07 21:29
Michael Sync31-Aug-07 21:29 
AnswerRe: sending mails Pin
.NET- India 31-Aug-07 21:43
.NET- India 31-Aug-07 21:43 
Questionbulletedlist control Pin
n_gchaitra31-Aug-07 20:34
n_gchaitra31-Aug-07 20:34 
AnswerRe: bulletedlist control Pin
mihirhp31-Aug-07 22:15
mihirhp31-Aug-07 22:15 
GeneralRe: bulletedlist control Pin
n_gchaitra2-Sep-07 22:33
n_gchaitra2-Sep-07 22:33 
GeneralRe: bulletedlist control Pin
n_gchaitra3-Sep-07 2:51
n_gchaitra3-Sep-07 2:51 

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.