what is view stat how it is use ?
Answers were Sorted based on User's Feedback
Answer / michael jerold
viewstate means to store the data when page is postback that
is called viewstate.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / guru gangadhar
Web Page is a Stateless.
So when the page is post backed the data doesn't persist.
In asp.net view state is present by default which is used to
store the data , we can store the data in view state at the
code behind while the page is post backed.
Is This Answer Correct ? | 2 Yes | 2 No |
You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?
What is the use of execute non query in asp.net?
Why we go for mvc instead of asp.net? : Asp.Net MVC
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 = "<EmpID>" & TxtEmpId.Text & "</EmpID>" & _ "<Empname>" & TxtName.Text & "</Empname>" & _ "<EmpSalary>" & TxtSalary.Text & "</EmpSalary>" 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 <?xml version="1.0" encoding="utf-8" ?> <Employee> <empdetails> <empid>100</empid> <empname>xxx</empname> <empsalary>2000</empsalary> </empdetails> <EmpDetails> <EmpID>yyy</EmpID> <Empname>dddd</Empname> <EmpSalary>77777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrrr</EmpID> <Empname>rrrr</Empname> <EmpSalary>6666</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>qaqa</EmpID> <Empname>sini</Empname> <EmpSalary>50000</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>errrrrrrrr</EmpID> <Empname>rrrrrrrrr</Empname> <EmpSalary>677777</EmpSalary> </EmpDetails> <EmpDetails> <EmpID>rrr</EmpID> <Empname>rrr</Empname> <EmpSalary>33</EmpSalary> </EmpDetails> </Employee>
Explain difference between friend and protected friend?
Who creates jsessionid?
What is the purpose of App_Code folder in ASP.NET? Why we this?
0 Answers Sans Pareil IT Services,
What does WSDL stand for?
What is meant by server side scripting?
Why do we use web config?
Which protocol is used to call web service?
To which side ( server ? client) does the user input data validation occur? Explain the reasons for it?