❤️BACK❤️IN❤️STOCK❤️Sustainable Stainless Steel Straw Sets are back!👇Click the banner👇

x
Exception in template (\Designs\Rapido\Paragraph\ArtistProfile.cshtml): System.NullReferenceException: Object reference not set to an instance of an object.
   at CompiledRazorTemplates.Dynamic.ccfcdabfffd.Execute()
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context)
   at RazorEngine.Templating.TemplateService.Run(ITemplate template, DynamicViewBag viewBag)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model, String cacheName)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()
@inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> @using System.IO; @using System.Web; @using System.Text; @using System.Collections.Generic; @using System.Linq @using System.Text.RegularExpressions; <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <style> .bg-none{background-color: none !important;} body{overflow-x: hidden;} </style> @{ bool isUser = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); var mfid = System.Web.HttpContext.Current.Request["manufacturerid"]; var artistName = System.Web.HttpContext.Current.Request["artistName"]; var userid = ""; var Artistname = ""; var ArtistDescription = ""; var ArtistImg = ""; var tempImage=""; string ArtistArticleSql = "SELECT DISTINCT * FROM itemtype_basearticle where id in (SELECT id FROM itemtype_artistarticle WHERE manufacturer='"+mfid+"' AND author LIKE '%"+artistName+"%')"; System.Data.IDataReader ArtistArticle = Dynamicweb.Data.Database.CreateDataReader(ArtistArticleSql); while (ArtistArticle.Read()) { Artistname = ArtistArticle["Title"].ToString(); ArtistDescription = ArtistArticle["TEXT"].ToString(); ArtistImg = ArtistArticle["Image"].ToString(); tempImage = ArtistArticle["Image"].ToString(); } var action = "insert"; var status = "true"; var liked = ""; userid = GetGlobalValue("Global:Extranet.UserID"); if( isUser ){ userid = System.Web.HttpContext.Current.Request["loginID"]; string getStatusSql = "SELECT ArtistLike FROM ArtistLikes WHERE ArtistManufacturerId='"+mfid+"' AND UserId='"+userid+"';"; System.Data.IDataReader getStatus = Dynamicweb.Data.Database.CreateDataReader(getStatusSql) ; while (getStatus.Read()) { liked = getStatus["ArtistLike"].ToString(); action = "update"; } if( liked == "1" ){ status = "false"; } } ////////////////////////////////////////////////////////////////////////////////// List<string> imagesList = new List<string>(); //string folderPath = HttpContext.Current.Server.MapPath("/Files/Images/Default/"); string folderPath = HttpContext.Current.Server.MapPath("Files/Images/Artists/"); string pattern=Artistname+"*"; foreach (string file in Directory.GetFiles(folderPath, pattern)) { string tmpImage=tempImage.Replace("/Images/Artists/",""); string temp = @"\"; string TMPIMG = file.Substring((file.LastIndexOf(@temp) + 1), (file.Length - file.LastIndexOf(@temp) - 1)); if(TMPIMG.Contains("_")){ imagesList.Add("/Files/Images/Artists/"+TMPIMG);} } ///////////////////////////////////////////////////////////////////////////////// var index1 = 1; var index2 = 1; } <script> console.log("APP NAME : " + navigator.appCodeName ); var likeAction = '@action'; var likeStatus = '@status'; </script> <div class="container"> <ul class="breadcrumb"> <li class="breadcrumb__item">@GetString("Item.ParagraphName")</li> <li class="breadcrumb__item" style="text-transform:capitalize">@artistName.ToLower()</li> </ul> </div> <div class="grid__col-lg-12 grid__col-md-12 grid__col-sm-12 grid__col-xs-12 paragraph-container paragraph-container-artist"> <section class="artist-shop-content mt-5 bg-peach"> <div class="container"> <div class="row"> <div class="col-12 col-md-4 col-sm-6 pb-4 mb-4 temp-h400"> <img id="artistImageDisplay" class="img-fluid shop-image" src="@ArtistImg" /> @foreach (String imageStr in imagesList) { try { <img id="img_@index1" class="img-fluid shop-image hide" src='@imageStr' alt="" /> index1++; } catch (Exception e) { } } @if(imagesList.Count > 0 ){ <div class="bg-none p-3 d-none d-sm-block d-sm-none d-md-block mt-3"> @foreach (String imageStr in imagesList) { try { <img id='@index2' class="img-fluid shop-image artist_thumbnail" src='/Admin/Public/GetImage.ashx?width=100&height=100&crop=5&Compression=75&image=@imageStr' data-src='@imageStr' alt="" /> index2++; } catch (Exception e) { } } </div> } </div> <div class="col-12 col-md-5 col-sm-6 pt-4 pb-4"> <h1 class="text-uppercase">@Artistname<h1> @ArtistDescription </div> <div class="col-12 col-md-3 col-sm-12 pt-4 pb-4 text-center"> <ul class="list-unstyled"> @* @if( userIsLoggedIn ){ <li><a onclick="addShopFavourite( shopLikeAction , shopLikeStatus )" class="shop-btn-like btn-grey btn"><i class="fa fa-star" aria-hidden="true"></i> Favourite this Shop</a></li> <li><a class="btn-grey btn" href=""><i class="fa fa-star" aria-hidden="true"></i> Meet our Artist</a></li> } *@ @if( isUser ){ <li><a onclick="favouriteArtist(likeAction, likeStatus)" class="btn-like btn-grey btn"><i class="fa fa-hand-peace-o" aria-hidden="true"></i> @Translate("Like This Artist", "Like This Artist")</a></li> } </ul> </div> </div> </div> </section> </div> <script> function favouriteArtist(action, status){ var url = "/Default.aspx?id=631&manufacturerid=@mfid&userid=@userid&action="+action+"&status="+status; console.log(" URL : " + url ); $.ajax({ url : url, dataType : "html", success : function( data ){ if( status != "true" ){ $('.btn-like').removeClass('liked'); likeStatus = "true"; likeAction = "update"; }else{ $('.btn-like').addClass('liked'); likeStatus = "false"; likeAction = "update"; } } }); } </script>

Artist's Products

The Art Faculty is a platform to promote the special talents of people with autism and related challenges.

Rate Artist