Click here to Skip to main content
15,915,093 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: ajax update panel stop refreshing after a random time period Pin
dipak.dipak21-Jun-09 21:16
dipak.dipak21-Jun-09 21:16 
Questioncreating textboxs in runtime Pin
Jagz W21-Jun-09 20:14
professionalJagz W21-Jun-09 20:14 
AnswerRe: creating textboxs in runtime Pin
Christian Graus21-Jun-09 21:04
protectorChristian Graus21-Jun-09 21:04 
QuestionGet List of all Local IP Address Pin
raushan_921-Jun-09 20:07
raushan_921-Jun-09 20:07 
AnswerRe: Get List of all Local IP Address Pin
hiren_mel21-Jun-09 21:12
hiren_mel21-Jun-09 21:12 
Questionwhat is the similar webpart that i can use as a pageviewer Pin
prasadbuddhika21-Jun-09 19:51
prasadbuddhika21-Jun-09 19:51 
AnswerRe: what is the similar webpart that i can use as a pageviewer Pin
prasadbuddhika21-Jun-09 20:42
prasadbuddhika21-Jun-09 20:42 
QuestionTextbox value in Update panel Pin
Girish48121-Jun-09 19:06
Girish48121-Jun-09 19:06 
Hello,

I am using VS 2005

<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager id="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel id="UpdatePanel1" runat="server" EnableViewState="False">
            <contenttemplate>
                <asp:TextBox ID="TextBox1" runat="server" Style="position: relative; top: 0px;"></asp:TextBox><br />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Style="position: relative"
                    Text="Next" />
                <asp:Button ID="Button2" runat="server" Style="position: relative" Text="Pevious" OnClick="Button2_Click" />
                <asp:Button ID="Button3" runat="server" Style="left: 0px; position: relative" Text="Update" OnClick="Button3_Click" /><br />
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand='SELECT * FROM "EMP"'>
                </asp:SqlDataSource>
</contenttemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Button3" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
                </div>
    </form>
</body>
</html>


And in the aspx.vb file i have code following:

Protected Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
MessageBox.Show(TextBox1.Text, "xx", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
End Sub

but it is not showing me the current value (user chaged the value; when page comes on the browser) of the textbox; it is showing me the value which was at the time of page load.

After searching a lot on the net, i am posting the question here, to get the solution how to get the current/changed value of the textbox which is in the update panel; on click of the button.

Thanks & Regards
Girish Sharma
AnswerRe: Textbox value in Update panel Pin
padmanabhan N21-Jun-09 19:35
padmanabhan N21-Jun-09 19:35 
GeneralRe: Textbox value in Update panel Pin
Girish48121-Jun-09 19:53
Girish48121-Jun-09 19:53 
GeneralRe: Textbox value in Update panel Pin
padmanabhan N21-Jun-09 20:37
padmanabhan N21-Jun-09 20:37 
GeneralRe: Textbox value in Update panel Pin
Girish48121-Jun-09 21:04
Girish48121-Jun-09 21:04 
GeneralRe: Textbox value in Update panel Pin
padmanabhan N21-Jun-09 22:19
padmanabhan N21-Jun-09 22:19 
GeneralRe: Textbox value in Update panel Pin
Girish48121-Jun-09 23:39
Girish48121-Jun-09 23:39 
GeneralRe: Textbox value in Update panel Pin
padmanabhan N22-Jun-09 0:03
padmanabhan N22-Jun-09 0:03 
Question.net database connectivity problem in visual studio Pin
Sundar 200921-Jun-09 18:52
Sundar 200921-Jun-09 18:52 
AnswerRe: .net database connectivity problem in visual studio Pin
padmanabhan N21-Jun-09 19:01
padmanabhan N21-Jun-09 19:01 
AnswerRe: .net database connectivity problem in visual studio Pin
Abhijit Jana21-Jun-09 19:36
professionalAbhijit Jana21-Jun-09 19:36 
Questionprinting crystal report viewer in visual studio.net [modified] Pin
iranban21-Jun-09 8:33
iranban21-Jun-09 8:33 
Questionlogin using sql table and disable certain options according 2 de user... Pin
<<Tash18>>20-Jun-09 23:25
<<Tash18>>20-Jun-09 23:25 
AnswerRe: login using sql table and disable certain options according 2 de user... Pin
dan!sh 20-Jun-09 23:32
professional dan!sh 20-Jun-09 23:32 
AnswerRe: login using sql table and disable certain options according 2 de user... Pin
Manas Bhardwaj20-Jun-09 23:49
professionalManas Bhardwaj20-Jun-09 23:49 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
<<Tash18>>21-Jun-09 0:02
<<Tash18>>21-Jun-09 0:02 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
dan!sh 21-Jun-09 0:08
professional dan!sh 21-Jun-09 0:08 
GeneralRe: login using sql table and disable certain options according 2 de user... Pin
Manas Bhardwaj21-Jun-09 0:11
professionalManas Bhardwaj21-Jun-09 0:11 

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.