amrsaafan.blogspot.com
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack ASP.NET
http://amrsaafan.blogspot.com/2014/02/unable-to-evaluate-expression-because.html
Think outside the Box. Saturday, February 1, 2014. Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack ASP.NET. While I was debugging an ASP.NET Application, I wanted to get an object values I got this error message instead:. Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. There are 3 Solutions for this problem use just one of them:. Posted by Amr Saafan. Follow me on Facebook. For any suggest...
amrsaafan.blogspot.com
How to Get the referring page on Page_Load event in ASP .NET
http://amrsaafan.blogspot.com/2008/09/how-to-get-referring-page-on-pageload.html
Think outside the Box. Monday, September 1, 2008. How to Get the referring page on Page Load event in ASP .NET. When a page loads, in order to get the name of the page that sent you there, all you need to use is:. Request.UrlReferrer.ToString();. You can create a global variable to hold it:. Then, in the Page Load event, assign it:. PageIsPostback) { sReferrer = Request.UrlReferrer.ToString(); }. Or, you can put it in ViewState at that time:. PageIsPostback) { ViewState( "Referrer". Posted by Amr Saafan.
amrsaafan.blogspot.com
June 2012
http://amrsaafan.blogspot.com/2012_06_01_archive.html
Think outside the Box. Friday, June 1, 2012. How to Replace the First Instance of a String in C#. Assume that you have a string and you expect that this string might have some duplicated instances. String.Replace() is very good Function, but it will replace all the instances of the string. So to accomplish this you need to replace the first instance you find. The next code example can be used as a helper method in your project if you are dealing with strings frequently:. Position 0) { return. C ompletely...
amrsaafan.blogspot.com
May 2012
http://amrsaafan.blogspot.com/2012_05_01_archive.html
Think outside the Box. Tuesday, May 1, 2012. How to Programmatically create iFrame in ASP.NET. Sometimes we may need to create iFrames and use it within GridView or Repeater, and we want to pass some values to it. This example will show you how to create iFrame Programmatically and add it to a PlaceHolder. MyFrame.TagName = "IFRAME". MyPlaceHolder.Controls.Add(myFrame);. Posted by Amr Saafan. Subscribe to: Posts ( Atom ). Follow me on Facebook. Do you find this Blog helpful? View my complete profile.
amrsaafan.blogspot.com
January 2013
http://amrsaafan.blogspot.com/2013_01_01_archive.html
Think outside the Box. Tuesday, January 1, 2013. How to avoid Uncaught ReferenceError: $ is not defined in jQuery. Sometimes while developing an existing Web Application, I wanted to use jQuery function and I get this error "Uncaught ReferenceError: $ is not defined". There are some reasons causing it and ways to avoid them:. Make sure the references to the jQuery scripts is loading first, but them in the head of master page or the page you are using. This will not work:. But this will work:. How to Repl...
amrsaafan.blogspot.com
May 2013
http://amrsaafan.blogspot.com/2013_05_01_archive.html
Think outside the Box. Wednesday, May 1, 2013. How to Select from Data Table in C#. DataTable Object has a Select Method which acts like Where in SQL Server. So if you want to write filter query you write the column name directly without Where and the filter expression you want. I made a simple example that creates a DataTable and fill it with some data and use Select method:. I = 0; i 10; i ) { DataRow. Dr = dt.NewRow(); dr[ "ID". I 1; dr[ "Name". I 1)ToString(); dt.Rows.Add(dr); } DataRow. How to Secur...
amrsaafan.blogspot.com
February 2013
http://amrsaafan.blogspot.com/2013_02_01_archive.html
Think outside the Box. Friday, February 1, 2013. How to know if a Date is in range between two Dates in C#. Let's say that we have a DateTime = Jan 1, 2012 and we want to check if this date is between 2 other dates. The following code example Implements IRange interface that can be used with Integers too. T { T Start { get. T End { get. T range); } public. End) { Start = start; End = end; } public. End); } public. Start = range.Start) & (range.End = End); } }. This is how to use this class function:.
amrsaafan.blogspot.com
February 2014
http://amrsaafan.blogspot.com/2014_02_01_archive.html
Think outside the Box. Saturday, February 1, 2014. Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack ASP.NET. While I was debugging an ASP.NET Application, I wanted to get an object values I got this error message instead:. Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. There are 3 Solutions for this problem use just one of them:. Posted by Amr Saafan. Subscribe to: Posts ( Atom ). For any ...
amrsaafan.blogspot.com
Operation is not valid due to the current state of the object, Exception in ASP.NET
http://amrsaafan.blogspot.com/2012/04/operation-is-not-valid-due-to-current.html
Think outside the Box. Monday, April 23, 2012. Operation is not valid due to the current state of the object, Exception in ASP.NET. I got this error when I tried to save a Page with lots of form fields to SQL Server Database. The default max number of form fields that can be post is 1000. In order to solve this error add this Line to your Web.Config File:. Posted by Amr Saafan. Follow me on Facebook. Do you find this Blog helpful? Expert Senior Software Developer. View my complete profile. How to Get the...
amrsaafan.blogspot.com
How to Make a Captcha Image in C# .NET
http://amrsaafan.blogspot.com/2008/09/how-to-make-captcha-image-in-c-net-and.html
Think outside the Box. Thursday, September 25, 2008. How to Make a Captcha Image in C# .NET. What Captcha stand for? Uring test to tell C. The Captcha technology help you to make sure your site is reasonably secure against automated attacks. Write the following code in a class named Captcha :. Make the captcha image for text. FontFamilyName) { / make the bitmap and the associated Graphics object. Width, hight); Graphics. FromImage(bm); gr.SmoothingMode = SmoothingMode. 0, 0, width, hight); Brush. DarkGra...
SOCIAL ENGAGEMENT