Skip to content

Commit

Permalink
Update CodeBehind Framework (#7780)
Browse files Browse the repository at this point in the history
* Update web.csproj

* Update config.yaml

* Update UserController.cs

* Update HomeController.cs
  • Loading branch information
elanatframework authored Sep 17, 2024
1 parent 31d9824 commit 6818581
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion csharp/codebehind/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ public partial class DefaultController : CodeBehindController
{
public void PageLoad(HttpContext context)
{
IgnoreViewAndModel = true;
Write(""); // path: /
}
}
4 changes: 1 addition & 3 deletions csharp/codebehind/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
public partial class user : CodeBehindController
{
public void PageLoad(HttpContext context)
{
IgnoreViewAndModel = true;

{
if (Section.Count() > 0)
Write(Section.GetValue(0)); // path: /user/{id}
else
Expand Down
2 changes: 1 addition & 1 deletion csharp/codebehind/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
framework:
website: elanat.net
version: 3.4
version: 3.6
3 changes: 1 addition & 2 deletions csharp/codebehind/web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CodeBehind" Version="3.4.*" />

<PackageReference Include="CodeBehind" Version="3.6.*" />
</ItemGroup>

</Project>

0 comments on commit 6818581

Please sign in to comment.