One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
[HtmlTargetElement(Attributes = "is-active-page")] | |
public class ActivePageTagHelper : TagHelper | |
{ | |
/// <summary>The name of the action method.</summary> | |
/// <remarks>Must be <c>null</c> if <see cref="P:Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper.Route" /> is non-<c>null</c>.</remarks> | |
[HtmlAttributeName("asp-page")] | |
public string Page { get; set; } | |
/// <summary> | |
/// Gets or sets the <see cref="T:Microsoft.AspNetCore.Mvc.Rendering.ViewContext" /> for the current request. |
--modified from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table | |
--added table and column | |
declare @TableName sysname = 'TableName' | |
declare @Result varchar(max) = '[Table(Name = "' + @TableName + '")] | |
public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
[Column(DbType = "' + |
<a class="os-iframe-link" href="https://embed.opensports.net/iframe/events?aliasID=PhiladelphiaVolleyball"></a> | |
<script src="https://embed.opensports.net/dist/iframe.min.js"></script> |
namespace MyApp; | |
using System.Reflection; | |
public record class AssemblyInformation(string Product, string Description, string Version, string InformationalVersion) | |
{ | |
public static readonly AssemblyInformation Current = new(typeof(AssemblyInformation).Assembly); | |
public AssemblyInformation(Assembly assembly) | |
: this( |
$urls = @("http://example.com", "http://example2.com") # Add the URLs you want to check here | |
foreach ($url in $urls) { | |
try { | |
$response = Invoke-WebRequest -Uri $url | |
if ($response.StatusCode -eq 200) { | |
Write-Host "Website $url is up and running." | |
} else { | |
Write-Host "Website $url is not responding properly. Status code: $($response.StatusCode)" | |
} |