•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,053 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,420 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 274 | Replies: 0
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I want to send value from Asp textbox to Javascript function on Button 1 click
how i can have that . pls help
This is my code
<head runat="server">
function callserver(txt1)
{
//Here i have to receive the value
var nm=txt1
alert(txt1);
}
</script>
<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 254px; position: absolute;
top: 185px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Style="z-index: 101; left: 325px; position: absolute;
top: 263px" Text="Button" />
how i can have that . pls help
This is my code
<head runat="server">
function callserver(txt1)
{
//Here i have to receive the value
var nm=txt1
alert(txt1);
}
</script>
<asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: 254px; position: absolute;
top: 185px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Style="z-index: 101; left: 325px; position: absolute;
top: 263px" Text="Button" />
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Updated : Simple ASP.Net Login Page (ASP.NET)
- Quick help w/ JavaScript clearing text (JavaScript / DHTML / AJAX)
- ASP Form error (ASP)
- Dual use of <asp:TextBox in ASP.NET page (JavaScript / DHTML / AJAX)
- Problem with ASP.Net control or JavaScript ??? (ASP.NET)
- ASP electronic exam project, problem when update data base (ASP)
- pleaaaaaaaaaase help me ,ASP exam (ASP)
- ASP electronic exam project, problem when update data base (ASP)
- Question - ASP + Ajax (ASP)
- ASP.NET: Problems with CustomValidator... (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: DateField is not getting Filtered in DataView
- Next Thread: Windows application is having problems in connecting to our server.


Linear Mode