Skip to content

Commit a3168e6

Browse files
Update send_data.md
1 parent a0d132c commit a3168e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/send_data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace YourProjectName
8383
{
8484
public void PageLoad(HttpContext context)
8585
{
86-
if (!string.IsNullOrEmpty(context.Request.Form["btn_Button"]))
86+
if (context.Request.Form["btn_Button"].has())
8787
btn_Button_Click(context);
8888
}
8989

@@ -129,7 +129,7 @@ We added a Controller class and in the `PageLoad` method we check the presence o
129129

130130
Checking the existence of data with the name `btn_Button`
131131
```csharp
132-
if (!string.IsNullOrEmpty(context.Request.Form["btn_Button"]))
132+
if (context.Request.Form["btn_Button"].has())
133133
btn_Button_Click(context);
134134
```
135135

0 commit comments

Comments
 (0)