# TXSheetControlAssetExtensions Class

> TXSheetControlAssetExtensions class in the .NET API: Restricts the product's static-file namespace to protected browser assets and public resource catalogs.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.AspNetCore`
- **Package:** `TXTextControl.TXSheetControl.AspNetCore` (assembly `TXTextControl.TXSheetControl.AspNetCore.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.AspNetCore > TXSheetControlAssetExtensions Class
- **530 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/llms-full.txt

---

Restricts the product's static-file namespace to protected browser assets and public resource catalogs.

### Syntax

```csharp
public static class TXSheetControlAssetExtensions
```

### Members

#### Methods

| Method | Description |
|---|---|
| [UseTXSheetControlAssets](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/llms-full.txt) | Rejects private/debugging paths before static-file or static-web-asset endpoint middleware executes. |

### Examples

Configure a complete Razor Pages application. The editor tag helper includes its browser assets automatically; the optional font routes provide compatibility URLs for the bundled static catalog.

```csharp
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using TXTextControl.TXSheetControl.AspNetCore;

var builder = WebApplication.CreateBuilder(Array.Empty<string>());
builder.Services.AddRazorPages();

var app = builder.Build();
app.UseTXSheetControlAssets();
app.MapRazorPages();
app.Run();
```

### See Also

- [TXTextControl.TXSheetControl.AspNetCore Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [TXSheetControlAssetExtensions.UseTXSheetControlAssets Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/llms-full.txt): TXSheetControlAssetExtensions.UseTXSheetControlAssets method in the TX Sheet Control .NET API, with the return type IApplicationBuilder and a C# example.

---

## Nearby

- **Previous:** [TXSheetControlAreas.StatusBar Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolareas/statusbar-property/llms-full.txt)
- **Next:** [TXSheetControlAssetExtensions.UseTXSheetControlAssets Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-aspnetcore/txsheetcontrolassetextensions/usetxsheetcontrolassets-method/llms-full.txt)
