Skip to content

Commit d50ab4d

Browse files
Update Controller.cs
1 parent 2e5bceb commit d50ab4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

class/Controller.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ public void IgnoreAll()
100100
IgnoreLayout = true;
101101
}
102102

103+
public void IgnoreLayoutForPostBack(IHeaderDictionary Headers)
104+
{
105+
if (Headers.TryGetValue("Post-Back", out var value))
106+
if (value == "true")
107+
IgnoreLayout = true;
108+
}
109+
103110
/// <summary>
104111
/// This Method Supports Query String
105112
/// </summary>

0 commit comments

Comments
 (0)