Click here to Skip to main content
15,921,179 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
hifiger20042-May-07 4:23
hifiger20042-May-07 4:23 
GeneralRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
totig2-May-07 4:34
totig2-May-07 4:34 
AnswerRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
badgrs30-Apr-07 5:11
badgrs30-Apr-07 5:11 
GeneralRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
hifiger20042-May-07 4:21
hifiger20042-May-07 4:21 
AnswerRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
RichardGrimmer30-Apr-07 5:36
RichardGrimmer30-Apr-07 5:36 
GeneralRe: RICHTEXT CONTROL? - ASP.NET / AJAX Pin
hifiger20042-May-07 4:22
hifiger20042-May-07 4:22 
QuestionForms Population Pin
Illegal Operation29-Apr-07 20:16
Illegal Operation29-Apr-07 20:16 
AnswerRe: Forms Population Pin
Wael Al Wirr2-May-07 1:53
Wael Al Wirr2-May-07 1:53 
add an commandName attibute to the linkButton and capture the event then access the grid (Note that all grid columns should be template column)
<%@ Page Language="C#" AutoEventWireup="True" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script language="C#" runat="server">
     
      void LinkButton_Command(Object sender, CommandEventArgs e) 
      {
         if(e.CommandName=="Fillform")
         {
            int index = Convert.ToInt32(e.CommandArgument);
            txtname.Text = ((Label)datagrid.items[index].rows[index].cells[0]).Text;
         }
      }
 
   </script>
 
</head>
<body>
 
   <form id="form1" runat="server">
  
      <asp:LinkButton id="LinkButton1" 
           Text="Fill"
           CommandName="Fillform" 
           CommandArgument="0" 
           OnCommand="LinkButton_Command" 
           runat="server"/>  
      
      <asp:TestBox id="txtname" runat="server"/>
 
   </form>

</body>
</html>


WaelA
Software Engineer
WaelA@hotmail.com

QuestionDisplay Once Time Pin
Socheat.Net29-Apr-07 16:20
Socheat.Net29-Apr-07 16:20 
AnswerRe: Display Once Time Pin
Ted Ferenc29-Apr-07 21:43
Ted Ferenc29-Apr-07 21:43 
GeneralRe: Display Once Time Pin
Socheat.Net29-Apr-07 23:29
Socheat.Net29-Apr-07 23:29 
GeneralRe: Display Once Time Pin
Ted Ferenc30-Apr-07 0:14
Ted Ferenc30-Apr-07 0:14 
AnswerRe: Display Once Time Pin
badgrs30-Apr-07 5:09
badgrs30-Apr-07 5:09 
GeneralRe: Display Once Time Pin
Socheat.Net30-Apr-07 17:25
Socheat.Net30-Apr-07 17:25 
QuestionHTML Video Streaming for WMV file Pin
drexler_kk29-Apr-07 1:34
drexler_kk29-Apr-07 1:34 
Questionhtml control for c application Pin
fx920028-Apr-07 5:01
fx920028-Apr-07 5:01 
AnswerRe: html control for c application Pin
alex.barylski28-Apr-07 20:31
alex.barylski28-Apr-07 20:31 
AnswerRe: html control for c application Pin
l a u r e n29-Apr-07 14:34
l a u r e n29-Apr-07 14:34 
GeneralRe: html control for c application Pin
fx920029-Apr-07 22:46
fx920029-Apr-07 22:46 
GeneralRe: html control for c application Pin
l a u r e n30-Apr-07 6:57
l a u r e n30-Apr-07 6:57 
GeneralRe: html control for c application Pin
fx92001-May-07 22:44
fx92001-May-07 22:44 
QuestionTEXTBOX - HTML TAG - ASP.NET ERROR CODE: 500 Pin
hifiger200428-Apr-07 4:51
hifiger200428-Apr-07 4:51 
QuestionRe: TEXTBOX - HTML TAG - ASP.NET ERROR CODE: 500 Pin
Shog928-Apr-07 7:31
sitebuilderShog928-Apr-07 7:31 
AnswerRe: TEXTBOX - HTML TAG - ASP.NET ERROR CODE: 500 Pin
l a u r e n29-Apr-07 14:36
l a u r e n29-Apr-07 14:36 
GeneralRe: TEXTBOX - HTML TAG - ASP.NET ERROR CODE: 500 Pin
hifiger20042-May-07 4:26
hifiger20042-May-07 4:26 

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.