can i call the java script to code behind file?if yes how?

Answer Posted / .net funda

yes u can do it.
write a javascript inside a string.
call Page.ClientScript.RegisterClientScriptBlock() method.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you dynamically assign a Master Page?

590


What is viewstate parameter?

523


What does postback mean?

537


What is session handling in a webfarm, how it can work with its limits?

628


Explain the difference between dataset and datareader.

531






What is event in asp.net?

534


Hi this is the coding for adding data in to an xml table i want the coding for update and delete Try Dim emp_xml_doc As New XmlDocument If System.IO.File.Exists(Server.MapPath("emp.xml")) Then emp_xml_doc.Load(Server.MapPath("emp.xml")) Dim myrow_element As XmlElement myrow_element = emp_xml_doc.CreateElement("EmpDetails") Dim str As String str = "" & TxtEmpId.Text & "" & _ "" & TxtName.Text & "" & _ "" & TxtSalary.Text & "" myrow_element.InnerXml = str emp_xml_doc.DocumentElement.AppendChild(myrow_element) emp_xml_doc.Save(Server.MapPath("emp.xml")) Response.Write("Record Saved") Dim ds As New DataSet ds.ReadXml(Server.MapPath("emp.xml")) GridView1.DataSource = ds GridView1.DataBind() Else Response.Write("File does not exist.") End If Catch ex As Exception Response.Write(ex.ToString) End Try *********************** this is the xml file 100 xxx 2000 yyy dddd 77777 rrrr rrrr 6666 qaqa sini 50000 errrrrrrrr rrrrrrrrr 677777 rrr rrr 33

1734


What is a web server? What are the load limits in it?

590


Can you explain one critical mapping?

517


What does session_start () do?

624


What do you mean by query string?

518


How to improve performance of web application asp.net mvc? : Asp.Net MVC

493


What is the differences between a primary key and a unique key in sql server?

536


Where viewstate value is stored in asp.net?

593


List some of the important session state modes of asp.net.

505