# TextControl.LoadDataSet Method

> Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.LoadDataSet Method
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddataset-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddataset-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddataset-method/llms-full.txt

---

### Description

Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object.

### Syntax

```csharp
public void LoadDataSet(System.Data.DataSet dataSet);
```

```vbnet
Public Sub LoadDataSet(dataSet As System.Data.DataSet)
```

### Parameters

| Parameter | Description |
|---|---|
| dataSet | Specifies a System.Data.DataSet object from which table and field names and existing data relations are loaded. |

### Examples

`LoadDataSet` is not exposed by the current ASP.NET Core editor helper. The following example uses `LoadDataSet` in the current server-side setup instead.

```csharp
var result = textControl.LoadDataSet(new System.Data.DataSet());
Console.WriteLine(result);
```

```vbnet
Dim result = textControl.LoadDataSet(New System.Data.DataSet())
Console.WriteLine(result)
```

---

## Nearby

- **Previous:** [TextControl.LoadDataFromModelAsync Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddatafrommodelasync-method/llms-full.txt)
- **Next:** [TextControl.LoadDataSetAsync Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddatasetasync-method/llms-full.txt)
