View Full Version : انتقال قالب به aspx
golrokh
پنج شنبه 11 مهر 1387, 22:03 عصر
سلام،
من یک قالب دارم که با اچ تی ام ال طراحی شده و یک استایل شیت هم داره. حالامن میخوام یکسری موارد دیگه به سایت اضافه کنم که وقتی ابجکت ها رو اضافه میکنم و در مکانی که مد نظرم هست قرار می دهم هنگام اجرای سایت در جای دیگری قرار میگیره! حتی وقتی با سورس هم کار میکنم این اتفاق میفته و یک نکته آزار دهنده دیگه اینکه موقع اضافه کردن یک آبجکت بعضی از تگها به طور ناگهانی و بی هیچ دلیل حذف میشوند. من خیلی دقت کردم این اتفاق به محض درگ کردن ابجکت صورت میگیره!! من می خوام بدونم چطوری میتونم ابجکتهای مورد نظرم رو در جای دلخواهم قرار بدم؟ و دیگه اینکه چرا بعضی از تگها به محض درگ کردن حذف میشوند؟
ممنون از راهنمایی شما
m.hamidreza
پنج شنبه 11 مهر 1387, 22:18 عصر
شما باید HTML و CSS رو در حد متوسط فرا بگیرید...
golrokh
پنج شنبه 11 مهر 1387, 22:20 عصر
من تا حدودی بلد هستم. متاسفانه مشکلمن در ای اس پی هست.
m.hamidreza
پنج شنبه 11 مهر 1387, 22:45 عصر
من تا حدودی بلد هستم. متاسفانه مشکلمن در ای اس پی هست.
تعیین موقعیت آبجکت ها ربطی به ASP.NET که نداره! شما چینش کنترل ها رو یا باید از طریق table کنترل کنی یا CSS .
golrokh
جمعه 12 مهر 1387, 11:50 صبح
من هر کاری میکنم نمیتونم آبجکت مورد نظرم رو در جای مناسب اون قرار بدم! فکر میکنم بهتر هست تا کد اون رو بذارم شاید کسی بتونه کمکم کنه!
<div style="margin-left:13px "><img src="images/s1.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a2"><strong>home</strong></a><img src="images/spacer.gif" width="20" height="1"><img src="images/s2.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a3"><strong>sitemap</strong></a><img src="images/spacer.gif" width="20" height="1"><img src="images/s3.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a4"><strong>contact</strong></a></div>
<br style="line-height:42px ">
<div style="margin-left:29px; width:196px "><img src="images/1txt3.jpg"><br>
<br style="line-height:4px ">
<strong class="gray_l">2050 properties online</strong><br>
<br style="line-height:4px ">
<div style="height:2px; background-color:#C75A3E "><img src="images/spacer.gif"></div>
<br style="line-height:20px ">
<strong class="gray_r">price per month</strong><br>
<br style="line-height:4px ">
<div><input type="text" value="0" class="form" style="width:67px "><img src="images/spacer.gif" width="10" height="1"><span class="gray_r"><strong>to</strong></span><img src="images/spacer.gif" width="10" height="1"><input type="text" value="10.000" class="form" style="width:67px "></div>
<br style="line-height:11px ">
<strong class="gray_r">location</strong><br>
<br style="line-height:5px ">
<select class="form" style="width:193px; height:20px " id="Select2" language="javascript" onclick="return Select2_onclick()"><option>Alabama</option></select><br>
<br>
<strong class="gray_r">min bedrooms<img src="images/spacer.gif" width="33" height="1">property type</strong><br>
<br style="line-height:4px ">
<select class="form" style="width:80px; height:20px "><option></option></select><img src="images/spacer.gif" width="33" height="1"><select class="form" style="width:80px; height:20px " id="Select1" language="javascript" onclick="return Select1_onclick()"><option></option></select><br>
<br style="line-height:11px ">
<strong class="gray_r">avaliability<img src="images/spacer.gif" width="51" height="1">furnished</strong><br>
<br style="line-height:4px ">
<select class="form" style="width:80px; height:20px "><option></option></select><img src="images/spacer.gif" width="33" height="1"><select class="form" style="width:80px; height:20px "><option></option></select><br>
<br style="line-height:22px ">
<div style="height:2px; background-color:#B5B5B5 "><img src="images/spacer.gif"></div>
<br style="line-height:19px ">
<strong class="gray_r">Enter your E-mail address:</strong><br>
<br style="line-height:4px ">
<div><input type="text" class="form" style="width:161px "><input name="" type="image" src="images/go.jpg" align="absmiddle" style="margin-left:4px "></div>
<br style="line-height:22px ">
</div>
حالا تغییراتی که دادم به صورت زیر هست:
<div style="margin-left:13px "><img src="images/s1.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a2"><strong>home</strong></a><img src="images/spacer.gif" width="20" height="1"><img src="images/s2.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a3"><strong>sitemap</strong></a><img src="images/spacer.gif" width="20" height="1"><img src="images/s3.jpg" align="absmiddle" style="margin-right:7px "><a href="#" class="u red_l" id="a4"><strong>contact</strong></a></div>
<br style="line-height:42px ">
<div style="margin-left:29px; width:196px ; text-align: right;"><img src="images/1txt3.jpg"><br>
<br style="line-height:4px ">
<strong class="gray_l">جستجو</strong><br>
<br style="line-height:4px ">
<div style="height:2px; background-color:#C75A3E "><img src="images/spacer.gif"></div>
<br style="line-height:20px ">
<strong class="gray_r">مبلغ</strong><br>
<br style="line-height:4px ">
<div><input type="text" value="0" class="form" style="width:67px "><img src="images/spacer.gif" width="10" height="1"><span class="gray_r"><strong>to</strong></span><img src="images/spacer.gif" width="10" height="1"><input type="text" value="10.000" class="form" style="width:67px " id="Text1" language="javascript" onclick="return Text1_onclick()"></div>
<br style="line-height:11px ">
<strong class="gray_r">نوع ملک</strong><br>
<br style="line-height:5px ">
<div><asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Style="z-index: 104;
left: 826px; position: absolute; top: 370px" Width="120px">
</asp:DropDownList><br>
<br></div>
<strong class="gray_r">تعداد اتاق خواب</strong><br>
<br style="line-height:4px ">
<div><asp:DropDownList ID="DropDownList2" runat="server" Height="20px" Style="z-index: 104;
left: 828px; position: absolute; top: 331px" Width="120px">
</asp:DropDownList><br>
</div>
<br style="line-height:4px ">
<div><asp:DropDownList ID="DropDownList3" runat="server" Height="20px" Style="z-index: 104;
left: 649px; position: absolute; top: 299px" Width="120px">
</asp:DropDownList><br></div>
من فقط خاصیت select و input رو حذف کردم و کد معادل اون رو با asp.net جاگذاری کردم اما موقعیت ابجکت در همان موقعیت نیست!! و میره یه جای دیگه صفحه قرار میگیره! البته یکسری تگهای اضافی رو هم حذف کرده ام که برای سایتم نیاز نیست.
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.