Hello,
Thank you very much for your replies...
What I found by debugging my homepage that. The DataList control I use to populate the main data for my page have an Image tage in it. If I disable this "img" tag .. Page loaded and performance is faster.
TreeView Control is performing better now. Cheers Thatraja… for suggesting IsPostBack.. I had just missed it.
How I Debugged?
# Well, I added another content page in the Master Page. (New page controls are: controls of Master page, that’s it…content page is empty).. Pressed F5…. Treeview of Master page loaded efficiently... and causing no problem..... I am very happy with this. :)
# Now, I Dragged a WUC [ Datalist + nested WUC (Gridview)] on this content page..and Pressed F5.. page stared loading slowly.. I found a problem in this WUC.
Next..
# I added a normal Web Form....I placed this WUC onto this webform.. Pressed F5.. Still loading problem in this webform .....Here, I confirmed that there is a problem in this DataList control not TreeView.. :)
Here is code of my DataList Control:
<asp:DataList ID="DataList1" runat="server" CellPadding="0"
DataKeyField="bookcod" GridLines="Horizontal" HorizontalAlign="Center"
onitemcommand="DataList1_ItemCommand" RepeatColumns="3" Width="100%">
<ItemTemplate>
<table>
<tr>
<td>
<%--<img src='<%#Eval("bookimg") %>' width="65" height="89" alt="Book Cover" align="left" />--%>
Title: <asp:Label ID="Label1" runat="server"
Text='<%#Eval("booktit") %>'></asp:Label>
<br />
Author: <asp:Label ID="Label2" runat="server" Text='<%#Eval("autnam") %>'></asp:Label>
<br />
Publisher: <asp:Label ID="Label3" runat="server" Text='<%#Eval("pubnam") %>'></asp:Label>
<br />
Price:
<asp:Label ID="Label4" runat="server" Text='<%#Eval("bookprc") %>'></asp:Label>
<br />
</td>
</tr>
<tr>
<td align="left" valign="top">
<asp:ImageButton ID="ImageButton1" runat="server"
CommandArgument='<%#Eval("bookcod") %>' Height="20" ImageAlign="Top"
ImageUrl="~/images/addtocart3.gif" Width="90" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
=======
If I comment the "img" tag…..Pressed F5.... Page loaded efficiently.. That’s what I want for my Homepage…(Still no caching implementation yet.. :) It means after applying caching techniques It will be more faster.. :) :) )
So..
<b>The issues are:</b>
1. Which type of image (.gif, .jpeg, .png etc) I should use for DataList control for faster loading and bit better quality? This is an online book selling website. It will have pictures of books... and few buttons pictures...only
2. I am storing images on the main directory. And just saving the unique name of image in my database (sql server 2008) for retrieval process (Its normal process I reckon).
In my case, only Admin uploads the images, not the client/user. What is the best approach in dealing with storing images in my case please?
Thanks,
jaspal82ATgmailDOTcom