Skip to content

Instantly share code, notes, and snippets.

@ritacse
Last active January 16, 2023 10:44
Show Gist options
  • Save ritacse/c60501af1ca4c779422daf959f44d260 to your computer and use it in GitHub Desktop.
Save ritacse/c60501af1ca4c779422daf959f44d260 to your computer and use it in GitHub Desktop.
// Read Web.Config Key from server end in C#
// add Key in Web.Config after ending: </connectionStrings> tag
<appSettings>
<add key="FileUploadedPath" value="~/PurchaseCSDocument/" />
<add key="LiscenseExpireDate" value="2023-01-15" />
</appSettings>
// Declare global Variable in server end(controller or handler) & get value
private string LiscenseExpireDate = Convert.ToString(ConfigurationManager.AppSettings["LiscenseExpireDate"]);
var q = new { DashboardLogin = oDashboardLogin,
EmpCases = list_HRMS_Disciplinary_Case_T,
LiscenseExpireDate = LiscenseExpireDate }; /// Passing value to js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment