Charts for Windows and web including .Net MAUI
Monday, December 5, 2022
FIX :ERROR ITMS-90717: "INVALID APP STORE ICON. THE APP STORE ICON IN THE ASSET CATALOG IN '_____' CAN'T BE TRANSPARENT NOR CONTAIN AN ALPHA CHANNEL
When you upload the archive to the App Store using the tool from Xcode, you may get the following error:
Reason: Your Icon image has feature: Alpha
Solution: Make a PNG without an alpha channel.
How to fix it:
Open file: Assets.xcassets From Runner > Runner
1. Select the AppIcon item, scroll down to the bottom to select the image size 1024 pt.
2.Right-click : Open in Finder
3. Double Click on that photo to open
4. Select File > Export...
5. In the Export screen: Untick Alpha, save the image file
6. Replace the entire App icon with that
7. Archive and Distribute => OK
Tuesday, November 1, 2022
We can generate random number using the following code:
var objRandom = new Random();
var myValue = objRandom.Next();
In the above example, you obtain an int number as result.
You can use the methods NextBytes and NextDouble to obtain the results to obtain random bytes or random doubles values.
In .NET 6 you can use the class RandomNumberGenerator present in the namespace System.Security.Cryptography.
Console.WriteLine("Generate Randoms in .NET 6!");
var objRandom = RandomNumberGenerator.Create();
var objBytes = new byte[sizeof(int)]; // 4 bytes
var myResult = BitConverter.ToInt32(objBytes, 0);
Friday, October 28, 2022
Note: For this function to work in production environment, make sure your website has SSL Certificate
<asp:Button ID="btnCopyResult" Visible ="false" OnClientClick="CopyToClipBoard();" class="btn btn-primary btn-sm" runat="server" Text="Copy Result" />
var sData = "Copy ME!";
alert('Could not write to clipboard', err);
Monday, October 24, 2022
There are many ways of persisting form data after the form has been submitted. Some of the more popular ways include the following:
The values of form fields can be stored in the Session object. Data can be added to the Session object with a line like this (in ASP.NET):
Session("Name") = "Mike Davis";
Session information can be stored in various locations: inside the ASP.NET runtime process, inside a dedicated Microsoft Windows® service, or inside a Microsoft SQL Server™ database. However, using the Session object, in any of these locations, is costly in server memory. In addition, you have to read the values out of session and put them back into the form on each page load. This routine code bulks up your pages.
Another option to persisting data is to duplicate your form content in a hidden field that is posted back to the server. The HiddenField control is used to store a value that needs to be persisted across posts to the server. It is rendered as an <input type= "hidden"/> element. Normally view state, session state, and cookies are used to maintain the state of a Web Forms page.
1026 This program is blocked by group policy. For more information, contact the system administrator.(GoDaddy server):
We can also eradicate the error “1026 This program block by group policy. For more information, contact the system administrator.” while hosting the asp.net mvc application published copy to the GoDaddy account. We can solve the issues by removing all of the contents inside the system.codedom tag in web.config file.
Go to web.config file in the project folder then search for system.codedom tag and removed all the contents inside the system.codedom tag.
Monday, September 26, 2022
<asp:Button ID="btnTestSample" Width="35" Height="25" runat="server" Text="lb" CssClass="cssTestSample" />
border: 1px solid #563d7c;
padding: 0px 25px 0px 3px;
left 18px top 5px no-repeat ;
Charts for Windows and web including .Net MAUI LiveCharts - LiveCharts2 (lvcharts.com)
Label tb = new Label (); tb.Name = "LabelID" + iRow; tb.Content = lblName; Grid .SetColumn(tb, iCol); Grid .SetRow(tb,...
HttpClient is a .NET class that an app can use to send HTTP requests and receive HTTP responses from a REST web service. The resources that...
Grid is a layout panel that consists of rows and columns. Example 1: < Grid > < Grid.RowDefinitions > < Row...