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

ASP.NET

 
QuestionIn session ending Pin
hadad31-Aug-07 3:13
hadad31-Aug-07 3:13 
AnswerRe: In session ending Pin
\laddie31-Aug-07 4:42
\laddie31-Aug-07 4:42 
AnswerRe: In session ending Pin
Vasudevan Deepak Kumar31-Aug-07 7:27
Vasudevan Deepak Kumar31-Aug-07 7:27 
QuestionEnabling line breaks within a textbox? Pin
Goalie3531-Aug-07 3:12
Goalie3531-Aug-07 3:12 
AnswerRe: Enabling line breaks within a textbox? Pin
Fred_Smith31-Aug-07 5:14
Fred_Smith31-Aug-07 5:14 
Questionit's running IIS or Web Development Server? Pin
jonnynolimits31-Aug-07 3:06
jonnynolimits31-Aug-07 3:06 
AnswerRe: it's running IIS or Web Development Server? Pin
\laddie31-Aug-07 4:55
\laddie31-Aug-07 4:55 
Questionscript_calling ? Pin
sanjay_tutu31-Aug-07 2:55
sanjay_tutu31-Aug-07 2:55 
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;

}


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

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

it works...
But how to pass dynamic value in place of 0 and 1


<div class="ForumSig">sanjay kumar samantaray</div>
AnswerRe: script_calling ? Pin
pmarfleet31-Aug-07 4:19
pmarfleet31-Aug-07 4:19 
QuestionRe: script_calling ? [modified] Pin
sanjay_tutu31-Aug-07 19:53
sanjay_tutu31-Aug-07 19:53 
AnswerRe: script_calling ? Pin
pmarfleet1-Sep-07 1:11
pmarfleet1-Sep-07 1:11 
QuestionAuthentication Pin
jaysheel31-Aug-07 2:52
jaysheel31-Aug-07 2:52 
QuestionMicrosoft.Web.UI.WebControls Treeview Pin
anand tcr31-Aug-07 2:32
anand tcr31-Aug-07 2:32 
AnswerRe: Microsoft.Web.UI.WebControls Treeview Pin
pmarfleet31-Aug-07 4:24
pmarfleet31-Aug-07 4:24 
GeneralRe: Microsoft.Web.UI.WebControls Treeview Pin
anand tcr31-Aug-07 21:19
anand tcr31-Aug-07 21:19 
GeneralRe: Microsoft.Web.UI.WebControls Treeview Pin
pmarfleet1-Sep-07 0:25
pmarfleet1-Sep-07 0:25 
QuestionDataGridview in ASP.Net Pin
somagunasekaran31-Aug-07 2:18
somagunasekaran31-Aug-07 2:18 
AnswerRe: DataGridview in ASP.Net Pin
www.Developerof.NET31-Aug-07 3:41
www.Developerof.NET31-Aug-07 3:41 
AnswerRe: DataGridview in ASP.Net Pin
Nouman Bhatti31-Aug-07 4:15
Nouman Bhatti31-Aug-07 4:15 
AnswerRe: DataGridview in ASP.Net Pin
Urs Enzler31-Aug-07 4:28
Urs Enzler31-Aug-07 4:28 
QuestionHow to create web application like windows application Pin
PadmaPriya.S31-Aug-07 1:49
PadmaPriya.S31-Aug-07 1:49 
AnswerRe: How to create web application like windows application Pin
Urs Enzler31-Aug-07 4:24
Urs Enzler31-Aug-07 4:24 
AnswerRe: How to create web application like windows application Pin
Vasudevan Deepak Kumar31-Aug-07 7:29
Vasudevan Deepak Kumar31-Aug-07 7:29 
Questionruntime dropdownlist in grid..., Pin
Member 387988131-Aug-07 1:20
Member 387988131-Aug-07 1:20 
AnswerRe: runtime dropdownlist in grid..., Pin
VenkataRamana.Gali31-Aug-07 1:36
VenkataRamana.Gali31-Aug-07 1:36 

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.