How to reduce the Page size in asp.net?
Answers were Sorted based on User's Feedback
Answer / pandi g s
1. Use ordinary HTML control instead of Server control if
used for display purpose
2. Disable the vieestate of the control if controls need
not to retain values across postback
3. Use data repeater instead of gridview since repeater
render less HTML
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / sagnikmukh
1) enableviewstate="false"
2) Reduce image size
3) Use external CSS
4) Use external JavaScript
5) GZIP & Minimize your assets
6)Use HTTP compression
7)Use light page layout
some ref: links :
http://www.dotnetfunda.com/articles/article793-reduce-aspnet-page-output-size-.aspx
http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx
http://www.dotnetfunda.com/articles/article793-reduce-aspnet-page-output-size-.aspx
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / kinjal panchal
when u put image in your background then put it in a repeat
form.
Is This Answer Correct ? | 0 Yes | 1 No |
How do you define authentication in Web.Config?
How to turn off cookies for a page?
Is asp.net outdated?
What are the Types of object in asp
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process?
1 Answers Patni, Perot Systems, Sedna Technology,
What is the difference between dynamic SGA and static SGA?
What are asynchronous callbacks?
Usage of web.configuration ?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
How to use multiple scriptmanager controls in a web page?
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>
Can you edit data in the Repeater control?