can I use session variable in App_code Class page??

Answer Posted / swapna

Yes

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are delegates?

571


What are the advantages of passport authentication?

506


Explain the difference between or and orelse?

534


What language is asp.net written in?

522


Explain the difference between Web Garden and Web Farm?

547






Which method do you use to kill explicitly a users session?

621


How do I create a web form?

526


Can we handle the error and redirect to some pages using web.config?

904


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

1725


How would you turn off cookies on one page of your website?

535


How can we use Web API with ASP.NET Web Form?

644


How many types of file extensions for razor views in ASP.Net MVC?

573


Explain the use of view state?

554


How do you secure your configuration files to be accessed remotely by unauthorized users?

618


What is difference between inproc and outproc?

655