Question:add header on every page while dynamically generate pdf from html using iTextSharp in asp.net(C#)?
Description:I have successfully generate the pdf from html using the following Link But now i need to generate header on every page of the dynamically generated pdf,I have seen some example to generate such header footer dynamically but most of the examples are in java, I need such implementation in C#. Thanks in advance
Posted by: Umer khan | Posted on: Sep 13, 2018
Question:unable to access same MemoryStream multiple times, getting the MemoryStream closed on second attempt in C#?
Description:I am receiving a MemoryStream from a method and then I have to send it in email as attachment multiple times, i.e I have to utilise the same MemoryStream multiple time, it is working perfectly fine at first attempt but when I try to access it again it gives me error. is there a way to store the MemoryStream separately for the purpose? My current code looks like MemoryStream memoryStream = getMemoryStream(); //following line works fine SendEmail(memoryStream); //but following line throws error SendEmail(memoryStream);
Posted by: Umer khan | Posted on: Sep 11, 2018
Question:how to dynamically generate pdf file from html in C# using ItextSharp ?
Description:In my project there is a situation where I need to convert my html into pdf file and some one suggested me that there is a library in C# for the purpose called Itextsharp but unable to implement it properly, need a code chunk or method to implement such functionality.
Posted by: Umer khan | Posted on: Sep 07, 2018
Question:Where to start/what website security measures should I take to secure my website?
Description:I want to protect my website built on asp.net from hackers and other security Vulnerabilities/security threats, what security measures should I take to protect my website or where to start fixing such issues.
Posted by: Samantha Jones | Posted on: Aug 27, 2018
Question:how to implement Cache Busting technique of "File path versioning" or "File name versioning" for asp.net mvc site?
Description:I have studied about cache busting techniques and came to know that there are mainly three such techniques. -File name versioning (e.g. style.v2.css) -File path versioning (e.g. /v2/style.css) -Query strings (e.g. style.css?version=2) Currently I am using the query string for cache busting which is implemented by default in mvc's Bundling and Minification but the query string technique is causing performance issues, so I need to implement any of the other two technique. Need help in this regard!!!
Posted by: Umer khan | Posted on: Aug 24, 2018
Question:What is Schema Markup and why it is important for my website ?
Description:I wanted to know about schema markup , is it really important for my website to implement i.e what advantages or disadvantage and if yes then how to implement it in my asp.net mvc website and how do I test it if implemented correctly
Posted by: Jhon Anthony | Posted on: Aug 10, 2018
Question:What is the concept/purpose of Layout Deltas in sitecore ?
Description:I was reading an article in which the term "Layout Deltas" used frequently but unable get the core concept/purpose of "Layout Deltas".
Posted by: Junaid Aziz | Posted on: Aug 06, 2018
Question:How to get image url from a image field in Sitecore 9 at MVC view?
Description:I am using following code chunk which is actually generating complete img tag but I only need image url because I have to set only the url in some CSS property. @foreach (var item in ViewBag.Items) { <li class="slide"> <div class="item featured-item1" style='background-image: url(@Html.Sitecore().Field("Image", item));'> <div class="content"> <h3>@Html.Sitecore().Field("Title", item)</h3> <div class="buttons-items"> <a href="@Html.Sitecore().Field("BuyNow", item)" class="btn-buy">BUY NOW</a> <a href="@Html.Sitecore().Field("LearnMore", item)" class="btn-more">LEARN MORE</a> </div> </div> </div> </li> } In the above code "ViewBag.Items" contains Sitecore items, and field name is "Image" for which I am trying get the image url.
Posted by: Junaid Aziz | Posted on: Aug 02, 2018
Question:how to implement return url functionality for login page in asp.net mvc 4?
Description:I have a simple application in asp.net mvc 4 with my controller method for login is with attribute [AllowAnonymous] and I want my users to redirect to same page from which they have been redirected to the login page. I have seen some article which suggests that I need to pass the returnurl in the query string but did't get the complete process of implementing the feature. kindly suggests a complete solution!
Posted by: Khalid Abbas | Posted on: Jul 30, 2018
Question:What is the main difference between “nofollow” and “noreferrer” link from SEO perspective?
Description:Basically what i wanted to know is the difference/differences between "nofollow" and "noreferrer" link, and how does it effect the seo of the website.
Posted by: Junaid Aziz | Posted on: Jul 18, 2018