Click here to Skip to main content
16,017,899 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
Imran Khan Pathan29-Jul-08 21:45
Imran Khan Pathan29-Jul-08 21:45 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
eyeseetee29-Jul-08 21:51
eyeseetee29-Jul-08 21:51 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC29-Jul-08 22:05
J4amieC29-Jul-08 22:05 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
eyeseetee29-Jul-08 22:20
eyeseetee29-Jul-08 22:20 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
Arindam Datta29-Jul-08 22:07
Arindam Datta29-Jul-08 22:07 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC30-Jul-08 0:03
J4amieC30-Jul-08 0:03 
AnswerRe: how to pass the ID of a text box in a gridview to a javascript Pin
J4amieC29-Jul-08 22:06
J4amieC29-Jul-08 22:06 
GeneralRe: how to pass the ID of a text box in a gridview to a javascript Pin
Arindam Datta29-Jul-08 22:11
Arindam Datta29-Jul-08 22:11 
<pre>
&lt;asp:GridView id="GridView1" runat="server" Font-Size="X-Small" ForeColor="#333333" Width="802px" AllowPaging="True" GridLines="None" CellPadding="4" ShowFooter="false" AutoGenerateColumns="False" CssClass="grid-view" OnDataBound="GridView1_DataBound"&gt;
           &lt;EmptyDataTemplate&gt;
               &lt;asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red" Text="No Data Found"&gt;&lt;/asp:Label&gt;
           &lt;/EmptyDataTemplate&gt;
           &lt;Columns&gt;
          &lt;asp:BoundField DataField="ORDER_NO" HeaderText="ORD_NO" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="ITEM_NO" HeaderText="ITEM_NO" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="BALTONS" HeaderText="BALTONS" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="ORDDATE" HeaderText="ORDDATE" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="DUEDATE" HeaderText="DUEDATE" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="MATNR" HeaderText="MAT_NO" &gt;&lt;/asp:BoundField&gt;
          &lt;asp:BoundField DataField="DESCRIPTION" HeaderText="MAT_DESCP"&gt;&lt;HeaderStyle Width="5000px" /&gt;&lt;ItemStyle Width="5000px" /&gt;&lt;/asp:BoundField&gt;
          &lt;asp:TemplateField HeaderText="PLANQTY"&gt;
          &lt;ItemTemplate&gt;
         
            &lt;asp:TextBox ID="txtplanqty" runat="server" BackColor="#ffffcc" OnTextChanged="txtplanqty_TextChanged" AutoPostBack="true" Font-Size="x-Small" Text='&lt;%# Eval("PLAN_QTY") %&gt;' Width="70px"&gt;&lt;/asp:TextBox&gt;
            
          &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:TemplateField HeaderText="TRGT_PRD"&gt;
          &lt;ItemTemplate&gt;
          
                &lt;asp:TextBox ID="txttrgtprd" runat="server" Font-Size="X-Small" onfocus="getdata(this)" OnTextChanged="txttrgtprd_TextChanged" BackColor="#ffffcc"  Width="70px" Text='&lt;%# Eval("TRGT_PRD") %&gt;' AutoPostBack="true"&gt;&lt;/asp:TextBox&gt;
           
          &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
           &lt;/Columns&gt;
           &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
           &lt;RowStyle BackColor="#EFF3FB" /&gt;
           &lt;EditRowStyle BackColor="#2461BF" /&gt;
           &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
           &lt;PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /&gt;
           &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
           &lt;AlternatingRowStyle BackColor="White" /&gt;
         &lt;/asp:GridView&gt;

&lt;script language="javascript"&gt;
   function getdata(obj)
   {
   var txt = document.getElementById(obj);
   txt.value='0';
   }
   &lt;/script&gt;

it is my code & i want to pass the ID="txttrgtprd" to the getdata() function

thanks & Regards
Sourav Ghosh
QuestionPaypal integration Pin
Prashant B. Lavate29-Jul-08 21:24
Prashant B. Lavate29-Jul-08 21:24 
AnswerRe: Paypal integration Pin
eyeseetee29-Jul-08 21:53
eyeseetee29-Jul-08 21:53 
Questionhow to pass a textbox ID which is in a grid view to a java script Pin
Arindam Datta29-Jul-08 21:21
Arindam Datta29-Jul-08 21:21 
AnswerRe: how to pass a textbox ID which is in a grid view to a java script Pin
Anudeep Jaiswal1-Aug-08 0:36
Anudeep Jaiswal1-Aug-08 0:36 
QuestionASP.NET 1.1 User Control Can't Set Focus [modified] Pin
peter_790129-Jul-08 20:52
peter_790129-Jul-08 20:52 
AnswerRe: ASP.NET 1.1 User Control Can't Set Focus Pin
peter_790129-Jul-08 21:52
peter_790129-Jul-08 21:52 
Questionajax dual slider problem asp.net c# Pin
VijayVishwakarma29-Jul-08 20:47
VijayVishwakarma29-Jul-08 20:47 
Question"External table is not in the expected format." how to solve this error? Pin
sathyan_829429-Jul-08 19:37
sathyan_829429-Jul-08 19:37 
AnswerRe: "External table is not in the expected format." how to solve this error? Pin
Imran Khan Pathan29-Jul-08 19:45
Imran Khan Pathan29-Jul-08 19:45 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Imran Khan Pathan29-Jul-08 20:13
Imran Khan Pathan29-Jul-08 20:13 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Christian Graus29-Jul-08 20:20
protectorChristian Graus29-Jul-08 20:20 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
Imran Khan Pathan29-Jul-08 20:33
Imran Khan Pathan29-Jul-08 20:33 
AnswerRe: "External table is not in the expected format." how to solve this error? Pin
Christian Graus29-Jul-08 20:06
protectorChristian Graus29-Jul-08 20:06 
AnswerRe: "External table is not in the expected format." how to solve this error? Pin
satyaanand.andra@gmail.com29-Jul-08 21:26
satyaanand.andra@gmail.com29-Jul-08 21:26 
GeneralRe: "External table is not in the expected format." how to solve this error? Pin
J4amieC29-Jul-08 22:11
J4amieC29-Jul-08 22:11 
QuestionHow to resize the ContentPlaceHolder of a MasterPage in Child(.aspx) Page? Pin
mcmilan29-Jul-08 18:40
mcmilan29-Jul-08 18:40 
QuestionFile Upload error on live site. Pin
JimBob SquarePants29-Jul-08 18:33
JimBob SquarePants29-Jul-08 18:33 

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.