C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




to insert textbox value into popup message window


Posted Date: 03 Jul 2008      Total Responses: 1

Posted By: krupal       Member Level: Bronze     Points: 1



How to insert textbox value into popup message window.

I have popup message as " Registered". But i want
"Registered , ur No=" textbox value.
Please send me the code.





Responses

Author: arun kumar    03 Jul 2008Member Level: SilverRating:     Points: 2

For the button, OnClientClick = call a function

that is in the head tag use javascript, I did as follows which might help you:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function Register()
{
window.alert("Registered , ur No= " + document.form1.txtUrNo.value);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="btnRegister" runat="server" Text="Register" OnClientClick="Register()" />
<asp:TextBox ID="txtUrNo" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>



Post Reply
You must Sign In to post a response.
Next : Error: Cannot convert type string to int
Previous : Regarding Sendinding HTML Page as Mail
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use