Click here to Skip to main content
15,917,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to access IIS's aspnet_regiis utility? Pin
Not Active4-Jul-07 4:25
mentorNot Active4-Jul-07 4:25 
AnswerRe: How to access IIS's aspnet_regiis utility? Pin
Pete O'Hanlon4-Jul-07 4:03
mvePete O'Hanlon4-Jul-07 4:03 
AnswerRe: How to access IIS's aspnet_regiis utility? Pin
KaKa'8-Jul-07 6:12
KaKa'8-Jul-07 6:12 
Questionis it possible to show images in gridview Pin
mohd imran abdul aziz4-Jul-07 3:52
mohd imran abdul aziz4-Jul-07 3:52 
AnswerRe: is it possible to show images in gridview Pin
But_Im_a_Lady4-Jul-07 3:58
But_Im_a_Lady4-Jul-07 3:58 
QuestionWriting custom errors to SQL (asp.net c# web app) Pin
But_Im_a_Lady4-Jul-07 3:41
But_Im_a_Lady4-Jul-07 3:41 
Questionedit column help Pin
boyindie4-Jul-07 2:53
boyindie4-Jul-07 2:53 
AnswerRe: edit column help Pin
But_Im_a_Lady4-Jul-07 4:30
But_Im_a_Lady4-Jul-07 4:30 
Hi,

I've just worked on something very similar, here is my code:-

protected void _gridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
//find the link button for each row being databound
LinkButton linkButton = new LinkButton();
linkButton = (LinkButton)e.Row.FindControl("_name");

//Needed as the first row is for the headings!
if (linkButton != null)
{
//set its CommandArgument so that this can be referenced in the RowCommand Event of the GridView!
linkButton.CommandArgument = e.Row.RowIndex.ToString();
linkButton.CommandName = "ImageClicked";
}
}

protected void _gridView_RowCommand(object sender, GridViewCommandEventArgs e)
{
if ((string)e.CommandName == "ImageClicked")
(
// Convert the row index stored in the CommandArgument property to an Integer.
int rowIndex = Convert.ToInt32(e.CommandArgument);

// Retrieve the row that contains the Linkbutton clicked from the Rows collection.
GridViewRow row = _gridView.Rows[rowIndex];

//use the findcontrol method
TextBox tb = new TextBox();
tb = (TextBox)e.Row.FindControl("_txtName");



)
}

Hope this helps
Janet

NewsVWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
Jeff Bazinet4-Jul-07 2:19
Jeff Bazinet4-Jul-07 2:19 
GeneralRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
Pete O'Hanlon4-Jul-07 2:26
mvePete O'Hanlon4-Jul-07 2:26 
QuestionRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
Jeff Bazinet4-Jul-07 2:42
Jeff Bazinet4-Jul-07 2:42 
AnswerRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
RichardGrimmer4-Jul-07 4:49
RichardGrimmer4-Jul-07 4:49 
GeneralRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
Jeff Bazinet4-Jul-07 5:27
Jeff Bazinet4-Jul-07 5:27 
GeneralRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
martin_hughes4-Jul-07 9:56
martin_hughes4-Jul-07 9:56 
AnswerRe: VWD-CMS Code Colorizer ASP.NET Control colorizes C#, HTML, ASPX, XML, and JavaScript Pin
Christian Graus4-Jul-07 5:20
protectorChristian Graus4-Jul-07 5:20 
QuestionDrag Table to Form from Server Explorer Pin
Khan.Bangash4-Jul-07 2:11
Khan.Bangash4-Jul-07 2:11 
AnswerRe: Drag Table to Form from Server Explorer Pin
Urs Enzler4-Jul-07 2:37
Urs Enzler4-Jul-07 2:37 
GeneralRe: Drag Table to Form from Server Explorer Pin
Khan.Bangash4-Jul-07 2:49
Khan.Bangash4-Jul-07 2:49 
QuestionDataList Row Height Pin
munklefish4-Jul-07 1:30
munklefish4-Jul-07 1:30 
AnswerRe: DataList Row Height Pin
Sathesh Sakthivel4-Jul-07 1:41
Sathesh Sakthivel4-Jul-07 1:41 
QuestionDevelop Search Engine for a job portal Pin
rparsi4-Jul-07 1:20
rparsi4-Jul-07 1:20 
AnswerRe: Develop Search Engine for a job portal Pin
Pete O'Hanlon4-Jul-07 1:31
mvePete O'Hanlon4-Jul-07 1:31 
AnswerRe: Develop Search Engine for a job portal Pin
Sandeep Akhare4-Jul-07 1:59
Sandeep Akhare4-Jul-07 1:59 
QuestionFind date diiference Pin
BINOVAR4-Jul-07 1:19
BINOVAR4-Jul-07 1:19 
AnswerRe: Find date diiference Pin
SHatchard4-Jul-07 1:46
SHatchard4-Jul-07 1:46 

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.