Click here to Skip to main content
15,889,266 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to open a url in a new browser window in Ajax page Pin
Anurag Gandhi9-Dec-09 0:25
professionalAnurag Gandhi9-Dec-09 0:25 
AnswerRe: How to open a url in a new browser window in Ajax page Pin
Abhishek Sur9-Dec-09 1:04
professionalAbhishek Sur9-Dec-09 1:04 
Questiondisplay image in repeater and retrieve its tooltip value Pin
gautamamit88-Dec-09 23:31
gautamamit88-Dec-09 23:31 
AnswerRe: display image in repeater and retrieve its tooltip value Pin
Abhishek Sur9-Dec-09 2:49
professionalAbhishek Sur9-Dec-09 2:49 
Questionhow to pass gridview textbox value to javascript Pin
ravihd8-Dec-09 23:31
ravihd8-Dec-09 23:31 
AnswerRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani8-Dec-09 23:54
Dinesh Mani8-Dec-09 23:54 
GeneralRe: how to pass gridview textbox value to javascript Pin
ravihd9-Dec-09 0:59
ravihd9-Dec-09 0:59 
GeneralRe: how to pass gridview textbox value to javascript Pin
Dinesh Mani9-Dec-09 1:17
Dinesh Mani9-Dec-09 1:17 
I don't have access to VS 2005 or greater at work so here is a sample with VS 2003/ASP.NET 1.x -

For this datagrid

<asp:DataGrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 208px; POSITION: absolute; TOP: 160px"
    runat="server" AutoGenerateColumns="False">
    <Columns>
        <asp:TemplateColumn HeaderText="sd" FooterText="as">
            <ItemTemplate>
                <asp:TextBox ID="abc" Runat="server" Text="asd"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateColumn>
    </Columns>
</asp:DataGrid>


and this code

DataTable asd = new DataTable("asd");
asd.Columns.Add("asd");
DataRow dr = asd.NewRow();
DataRow dr1 = asd.NewRow();
dr[0]=asd;
dr1[0]=asd;
asd.Rows.Add(dr);
asd.Rows.Add(dr1);
DataGrid1.DataSource= asd;
DataGrid1.DataBind();


the client ids for the 2 text boxes generated would be DataGrid1__ctl2_abc and DataGrid1__ctl3_abc

You can use this id in the getElementById method in javascript to access the data.

NOTE - Client id generated in higher version of ASP.NET will be similar but not exactly the same.
Questionerror in showing blogs in the web site Pin
Amit Spadez8-Dec-09 23:29
professionalAmit Spadez8-Dec-09 23:29 
AnswerRe: error in showing blogs in the web site Pin
Dinesh Mani8-Dec-09 23:46
Dinesh Mani8-Dec-09 23:46 
GeneralRe: error in showing blogs in the web site Pin
Amit Spadez9-Dec-09 0:07
professionalAmit Spadez9-Dec-09 0:07 
GeneralRe: error in showing blogs in the web site Pin
rahuuul179-Dec-09 0:12
rahuuul179-Dec-09 0:12 
GeneralRe: error in showing blogs in the web site Pin
Dinesh Mani9-Dec-09 0:22
Dinesh Mani9-Dec-09 0:22 
QuestionPaging toGridView Pin
rahul.net118-Dec-09 23:13
rahul.net118-Dec-09 23:13 
AnswerRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:30
Blue_Boy8-Dec-09 23:30 
GeneralRe: Paging toGridView Pin
rahul.net118-Dec-09 23:41
rahul.net118-Dec-09 23:41 
GeneralRe: Paging toGridView Pin
Blue_Boy8-Dec-09 23:44
Blue_Boy8-Dec-09 23:44 
Questionerror in the login web page Pin
Amit Spadez8-Dec-09 23:06
professionalAmit Spadez8-Dec-09 23:06 
AnswerRe: error in the login web page Pin
Blue_Boy8-Dec-09 23:34
Blue_Boy8-Dec-09 23:34 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:10
professionalAmit Spadez9-Dec-09 0:10 
AnswerRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:36
Dinesh Mani9-Dec-09 0:36 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:42
professionalAmit Spadez9-Dec-09 0:42 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:46
Dinesh Mani9-Dec-09 0:46 
GeneralRe: error in the login web page Pin
Amit Spadez9-Dec-09 0:49
professionalAmit Spadez9-Dec-09 0:49 
GeneralRe: error in the login web page Pin
Dinesh Mani9-Dec-09 0:52
Dinesh Mani9-Dec-09 0:52 

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.