• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 613
  • Last Modified:

ASP.NET with C# add javscript code

asp.net javascript,
hello all I have a querry with javascript and asp.net.

i want to add javascript codes in my asp.net project where do i do that and how do i do it.

i suppose in aspx file?
and how do i add javascript code.

secondly if a variable in javascript has some value which i want to share it with asp.net how do i transfer it in asp.net variable

i am using Csharp

i have function in asp.cs file there i need this javascript value how do i take it there?
0
dontnetsanjay
Asked:
dontnetsanjay
  • 2
2 Solutions
 
surajgupthaCommented:
>> secondly if a variable in javascript has some value which i want to share it with asp.net how do i transfer it in asp.net variable

use a Hidden variable with a run at server option

<input type='hidden' id ='hdnUserPassword' runat='server'>
0
 
surajgupthaCommented:
>> i want to add javascript codes in my asp.net project where do i do that and how do i do it.

http://msdn2.microsoft.com/en-us/library/Aa479011.aspx
0
 
nisarkhanCommented:
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now