Feeds:
Posts
Comments

ScriptManager.RegisterStartupScript(this.UpdatePanelPublish, typeof(Page), “Message”, “alert(‘Oops! Map is not published successfully. Please contact your software vendor with error Log.’)”, true);

Advertisements

public static string RemoveSpecialCharecter(string GarbageString)
{
StringBuilder sb = new StringBuilder();
for (int i=0; i< GarbageString.Length; i++)
{
if (char.IsLetterOrDigit(GarbageString[i]))
sb.Append(GarbageString[i]);
}
return sb.ToString();
}

public static string PropCase(string strText)
{
return new System.Globalization.CultureInfo(“en”).TextInfo.ToTitleCase(strText.ToLower());
}

/*
Created By : Sujeet Kumar Roy
Created on : 16 Oct 2010
*/
Create function dbo.RemoveSpecialChars (@s varchar(256)) returns varchar(256)
with schemabinding
begin
if @s is null
return null
declare @s2 varchar(256)
set @s2 = ”
declare @l int
set @l = len(@s)
declare @p int
set @p = 1
while @p <= @l begin
declare @c int
set @c = ascii(substring(@s, @p, 1))
if @c between 48 and 57 or @c between 65 and 90 or @c between 97 and 122
set @s2 = @s2 + char(@c)
set @p = @p + 1
end
if len(@s2) = 0
return null
return @s2
end

<script type=”text/javascript”>
function SelectAll(Checkbox) {
//Taking Status of header CheckBox    var status = ‘checked’;
if (Checkbox.checked == true) {status=’checked’;}    else {status = ‘unchecked’;}

var TargetBaseControl = document.getElementById(‘<%= this.rgStateMaps.ClientID %>’);
var TargetChildControl = “chkStateSelector”;
//Get all the control of the type INPUT in the base control.
var Inputs = TargetBaseControl.getElementsByTagName(“input”);
for (var n = 0; n < Inputs.length; ++n)    {

if (Inputs[n].type == ‘checkbox’ && Inputs[n].id.indexOf(TargetChildControl, 0) >= 0) {

if (status == ‘checked’) {
if (Inputs[n].disabled == false) { Inputs[n].checked = true; }

}

else {

if (Inputs[n].disabled == false) { Inputs[n].checked = false; }

}        }    }}
</script>

 

<HeaderTemplate>

<input id=”chkSelectAll” type=”checkbox” runat=”server” name=”chkStateSelector”                                                        value=”region” checked=”checked” onclick=”javascript:SelectAll(this);”/>

</HeaderTemplate>

[Incomplete]

http://en.wikipedia.org/wiki/.shtml

http://www.hwg.org/resources/faqs/shtmlFYIFAQ.html

http://www.w3.org/TR/1998/NOTE-compactHTML-19980209/

CheckBox chkstatus1 = (CheckBox)e.Item.FindControl(“chkPark”);

chkstatus1.Attributes.Add(“onclick”, “javascript:SelectAll(‘” + chkstatus1.ClientID + “‘)”);

<script type=”text/javascript”>

function SelectAll(Checkbox) {

var input = document.getElementById(Checkbox);

var status = ‘checked’;

if (input.checked == true) {

status=’checked’;

}

else {

status = ‘unchecked’;

}

var TargetBaseControl = document.getElementById(‘<%= this.rgImages.ClientID %>’);

var TargetChildControl = “chkPark”;

//Get all the control of the type INPUT in the base control.

var Inputs = TargetBaseControl.getElementsByTagName(“input”);

for (var n = 0; n < Inputs.length; ++n)

if (Inputs[n].type == ‘checkbox’ && Inputs[n].id.indexOf(TargetChildControl, 0) >= 0) {

Inputs[n].checked = false;

}

if (status == ‘checked’)

input.checked = true;

else

input.checked = false;

}

</script>