PDA

View Full Version : یک وب سایت ساده برای نمونه!



hadi0x7c7
سه شنبه 01 مهر 1393, 20:43 عصر
سلام این یک سایت نمونه هست که برای دست گرمی نوشتم، اصلا کامل نیست و به اصطلاح best practices داخلش رعایت نشده، ولی یه سری چیزا رو میشه داخلش یاد گرفت، مثلا CodeFirst، مدیریت خطا ها، ساخت لاگین و پنل ادمین، کار با عکس، کار با سشن، بوتسترپ فارسی، همین دیگه

http://s5.picofile.com/file/8142386000/Shop.rar.html
برای اجرای پروژه باید پکیج ها را restore کنید، بعد از اون Connection string رو به دلخواه خودتون تغییر بدید و تمام!
رمز ادمین: secret
نام کاربری: admin

اینم لینک پروژه

http://s5.picofile.com/file/8142386000/Shop.rar.html

بنده هیچ ادعایی ندارماااا! که آره خفنم و .... پروژه همینجوری نوشته شده و هیچ چیز رو ثابت نمیکنه الا یه سری نکات که باهم یه جا جمع شدن.

http://upload7.ir/imgs/2014-09/24400952328217609053_thumb.png (http://upload7.ir/viewer.php?file=24400952328217609053.png)
http://upload7.ir/imgs/2014-09/19439608183418087831_thumb.png (http://upload7.ir/viewer.php?file=19439608183418087831.png)
http://upload7.ir/imgs/2014-09/28265448462595889133_thumb.png (http://upload7.ir/viewer.php?file=28265448462595889133.png)
http://upload7.ir/imgs/2014-09/43369295495467281955_thumb.png (http://upload7.ir/viewer.php?file=43369295495467281955.png)

bitcob589
چهارشنبه 02 مهر 1393, 11:29 صبح
با سلام
زمانی که پروژه باز کردم خطاهای زیر از htmlhelper نمایش داده می شد

'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)


The name 'model' does not exist in the current context
علت خطاها چیست

hadi0x7c7
چهارشنبه 02 مهر 1393, 13:40 عصر
احتمالا ورژن mvc شما متفاوته!

bitcob589
پنج شنبه 03 مهر 1393, 09:06 صبح
احتمالا ورژن mvc شما متفاوته!
شما با چه ورژن نوشته اید

hadi0x7c7
پنج شنبه 03 مهر 1393, 15:15 عصر
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
<package id="EntityFramework" version="6.1.1" targetFramework="net45" />
<package id="ImageResizer" version="3.4.3" targetFramework="net45" />
<package id="ImageResizer.Mvc" version="3.4.3" targetFramework="net45" />
<package id="ImageResizer.MvcWebConfig" version="3.4.3" targetFramework="net45" />
<package id="ImageResizer.WebConfig" version="3.4.3" targetFramework="net45" />
<package id="jQuery" version="1.10.2" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.Core" version="2.0.0" targetFramework="net45" />
<package id="Microsoft.AspNet.Mvc" version="5.1.2" targetFramework="net45" />
<package id="Microsoft.AspNet.Razor" version="3.1.2" targetFramework="net45" />
<package id="Microsoft.AspNet.WebPages" version="3.1.2" targetFramework="net45" />
<package id="Microsoft.Owin" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.Cookies" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.OAuth" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
<package id="Modernizr" version="2.6.2" targetFramework="net45" />
<package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" />
<package id="Owin" version="1.0" targetFramework="net45" />
<package id="Persia.NET" version="3.0.4727" targetFramework="net45" />
<package id="Twitter.Bootstrap.RTL" version="3.0.0" targetFramework="net45" />
</packages>