MVC Code snippets
Translate
Sunday, 10 January 2016
Access Resource values for db values
ddlState.Items(index).Value = ds.Tables(0).Rows(index)("Region_Code")
ddlState.Items(index).Text = GetLocalResourceObject(ds.Tables(0).Rows(index)("Resource_key").ToString() + ".Text").ToString
Monday, 4 January 2016
Jquery Text Easy Counter
Jquery text easy Counter shown below
<
h2
>
EasyCountrer
</
h2
>
<
script
src
="~/Scripts/jquery-1.7.1.min.js"></
script
>
<
script
src
="~/Content/js/jquery.jqEasyCharCounter.min.js"></
script
>
<
textarea
id
="easy"
></
textarea
>
<
script
>
$(document).ready(
function
() {
$(
"#easy"
).jqEasyCounter(
{
'maxChars'
: 160,
'maxCharsWarning'
: 150
});
});
</
script
>
OutPut:
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)