PDA

View Full Version : مشکل در حجم زیاد منو ASP.net



Ali1400
چهارشنبه 04 اردیبهشت 1387, 16:55 عصر
دوستان سلام
منویی که من با ابزار منو دات نت می سازم و بایند می کنم به فایل xml مربوطه هنگام باز کردن صفحاتی که در آنها از منو استفاده کردم متوجه حجم بسیار زیاد کدهای html تولید شده برای منو در سورس صفحه می شوم که حدود بیش از نیمی از حجم صفحه را گرفته.
آیا راهی برای کاهش حجم کدهای html منوی دات نت وجود دارد.

کد زیر نمونه کدهای html تولید شده برای منو است


[code]<a href="#ctl00_Menu1_SkipLink"><img alt="Skip Navigation Links" src="/WebResource.axd?d=ASiSx1uq_gLPalM42kzqGg2&amp;t=633333 942150312500" width="0" height="0" style="border-width:0px;" /></a><table id="ctl00_Menu1" class="ctl00_Menu1_2" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td id="ctl00_Menu1n0"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3"></a></td>
</tr>
</table></td><td style="width:3px;"></td><td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n1"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">شرکتها</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n2"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">محصولات</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n3"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">فروش</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n4"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">خدمات</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n5"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">سهامداران</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n6"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">اخبار و اطلاعات</a></td>
</tr>
</table></td><td style="width:3px;"></td><td><img src="../image/rtl/menu_spactor.gif" alt="" /></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n7"><table class="ctl00_Menu1_4" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;"><a class="ctl00_Menu1_1 ctl00_Menu1_3" href="#" style="cursor:text;margin-left:10px;">شما و شرکت</a></td>
</tr>
</table></td>
</tr>
</table><div id="ctl00_Menu1n1Items" class="ctl00_Menu1_0 test3 ctl00_Menu1_7">
<table border="0" cellpadding="0" cellspacing="0">
<tr onmouseover="Menu_HoverDynamic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" id="ctl00_Menu1n8">
<td><table class="ctl00_Menu1_6" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td style="white-space:nowrap;width:100%;"><a class="ctl00_Menu1_1 ctl00_Menu1_5" href="

shahab_ksh
پنج شنبه 05 اردیبهشت 1387, 02:00 صبح
یه هر حال این کدها لازمه برای مرورگر که منوی شما رو بسازه نهایتا شما میتونید از فشرده سازی صفحات در دات نت استفاده کنید که سرعت بالاتر بره