Question:what is maximum numbers of cookies allowed in website and what is maximum size of a web browser's cookie?
Description:I want to know about maximum numbers of cookies allowed in website and also what is maximum size of a web browser's cookie as per my knowledge it is 4kb?
Posted by: Umer khan | Posted on: Dec 17, 2018
Question:window.onload() is not firing in IE while same code working fine in chrome
Description:I was trying to register click event onload and it is working fine in chrome but the event not firing at all in IE even in the latest version of IE. I have tried following code <script type="text/javascript"> window.onload = function(){console.log('event fired');} </script>
Posted by: Junaid Aziz | Posted on: Dec 17, 2018
Question:how to check for null value while rendering my html using mustache.js ?
Description:For example I need to render conditional Image tag, if( {{ImagePath}} != null ) { <img src="{{ImagePath}}"/> } else{ <img src="Some static path"/> }
Posted by: Khalid Abbas | Posted on: Dec 13, 2018
Question:send multiple models or parameters from controller to view?
Description:if I need to send multiple models and some parameters to my view what will be the best approach ? one way I know is to use viewbag variable but someone told me that its not a very good approach because it does not provide the intellisense. So a bit confused which approach can fulfil the requirement
Posted by: Jhon Anthony | Posted on: Oct 12, 2018
Question:System.Net.Mail.SmtpException: Transaction failed. The server response was: Rejected - Message containing bare LF's.
Description:I am sending email through my code using c#,and the email functionality working fine on my local environment but when deployed on live environment it started giving me following exception, System.Net.Mail.SmtpException: Transaction failed. The server response was: Rejected - Message containing bare LF's. I am sending html formatted email.
Posted by: Khalid Abbas | Posted on: Oct 12, 2018
Question:Getting the error "Server does not support secure connections" while sending emails by using c#
Description:I have used a method for sending email that was working fine what I have used gmail email address but now testing purpose I have changed the email address not gmail this time and now getting the error "Server does not support secure connections" while sending emails.
Posted by: Khalid Abbas | Posted on: Sep 28, 2018
Question:Combine the summation of row counts from multiple tables and returned as one value in MSSQL
Description:I want to return one value which will be the sum of multiple row counts from different tables.
Posted by: Junaid Aziz | Posted on: Sep 13, 2018
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