Click here to Skip to main content
15,894,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Manupulating Columns of datatable Pin
kris_viswa12-Jan-10 3:32
kris_viswa12-Jan-10 3:32 
GeneralRe: Manupulating Columns of datatable Pin
Pranay Rana12-Jan-10 17:29
professionalPranay Rana12-Jan-10 17:29 
QuestionDataSet/DataTable or SQL Query for complex data retrieval? Pin
James Shao11-Jan-10 14:01
James Shao11-Jan-10 14:01 
AnswerRe: DataSet/DataTable or SQL Query for complex data retrieval? Pin
dan!sh 11-Jan-10 16:27
professional dan!sh 11-Jan-10 16:27 
Questionhi, How To Access Label Inside GridView where GridView Inside Datalist( Only By Javascript)? Pin
re7et_3esh11-Jan-10 7:08
re7et_3esh11-Jan-10 7:08 
Questionsetting value on ClinetClick and reading changed value on OnClik[Server Side] Pin
K V Sekhar11-Jan-10 6:00
K V Sekhar11-Jan-10 6:00 
AnswerRe: setting value on ClinetClick and reading changed value on OnClik[Server Side] Pin
Abhijit Jana11-Jan-10 6:43
professionalAbhijit Jana11-Jan-10 6:43 
GeneralRe: setting value on ClinetClick and reading changed value on OnClik[Server Side] Pin
K V Sekhar11-Jan-10 15:34
K V Sekhar11-Jan-10 15:34 
Here is the sample code.

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>GridView Export</title>
    <script type="text/javascript" language="javascript">
    function ChangeText()
    {
        var tBox = document.getElementById("TextBox1");
        tBox.value = "New Text";
        alert(tBox.value);
    }
    </script>
</head>
<body>    
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server" Text="Old Text"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" OnClientClick="javascript:ChangeText();" />
</div>
</form>
</body>
</html>


the code behid page:
Firm1.aspx.cs:

protected void Button1_Click(object sender, EventArgs e)
{
     Response.write("New Text"+TextBox1.Text); //out put: "Old Text"[Given at design time]
}


please suggest me where i did wrong.
AnswerRe: setting value on ClinetClick and reading changed value on OnClik[Server Side] Pin
Pranay Rana11-Jan-10 18:17
professionalPranay Rana11-Jan-10 18:17 
QuestionCounter C# Pin
jojoba201011-Jan-10 4:24
jojoba201011-Jan-10 4:24 
AnswerRe: Counter C# Pin
dan!sh 11-Jan-10 4:38
professional dan!sh 11-Jan-10 4:38 
QuestionRe: Counter C# Pin
jojoba201011-Jan-10 5:07
jojoba201011-Jan-10 5:07 
AnswerRe: Counter C# Pin
Abhijit Jana11-Jan-10 6:41
professionalAbhijit Jana11-Jan-10 6:41 
QuestionRe: Counter C# Pin
jojoba201011-Jan-10 18:36
jojoba201011-Jan-10 18:36 
Questionlogin Pin
arkiboys11-Jan-10 3:23
arkiboys11-Jan-10 3:23 
AnswerRe: login Pin
Vimalsoft(Pty) Ltd11-Jan-10 3:28
professionalVimalsoft(Pty) Ltd11-Jan-10 3:28 
GeneralRe: login Pin
arkiboys11-Jan-10 3:34
arkiboys11-Jan-10 3:34 
GeneralRe: login Pin
Vimalsoft(Pty) Ltd11-Jan-10 3:43
professionalVimalsoft(Pty) Ltd11-Jan-10 3:43 
GeneralRe: login [modified] Pin
arkiboys11-Jan-10 3:55
arkiboys11-Jan-10 3:55 
AnswerRe: login Pin
dan!sh 11-Jan-10 4:21
professional dan!sh 11-Jan-10 4:21 
GeneralRe: login Pin
arkiboys11-Jan-10 21:39
arkiboys11-Jan-10 21:39 
AnswerRe: login Pin
carlecomm20-Jan-10 1:32
carlecomm20-Jan-10 1:32 
QuestionSystem.Web.HttpException: The state information is invalid for this page and might be corrupted. Pin
prabhakar dwivedi11-Jan-10 2:33
prabhakar dwivedi11-Jan-10 2:33 
AnswerRe: System.Web.HttpException: The state information is invalid for this page and might be corrupted. Pin
Vimalsoft(Pty) Ltd11-Jan-10 3:04
professionalVimalsoft(Pty) Ltd11-Jan-10 3:04 
GeneralRe: System.Web.HttpException: The state information is invalid for this page and might be corrupted. Pin
prabhakar dwivedi11-Jan-10 3:42
prabhakar dwivedi11-Jan-10 3:42 

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.