User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jul 2008
Posts: 1
Reputation: netprogramme is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
netprogramme netprogramme is offline Offline
Newbie Poster

I want to send Asp value to Javascript function

  #1  
Jul 9th, 2008
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" />
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 11:59 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC