How to enable cookie in all browse?

Hello Friend,

Here we will simple demo how to enable cookie in all browse?

Process of Enable Cookie

Microsoft Internet Explorer

  • Within Internet Explorer, click the “Tools” menu and choose “Internet Options.”
  • Click the tab labeled “Privacy.”
  • Click the button labeled “Advanced.”
  • Check the option labeled “Override automatic cookie handling.”
  • Set “First-party Cookies” and “Third-party Cookies” to “Accept.”
  • Click “OK” to save changes and close the dialog box.

Mozilla Firefox

  • Click Tools > Options.
  • Click Privacy in the top panel.
  • Set “Firefox will:” to Use custom settings for history.
  • Check the box next to “Accept cookies from sites” to enable cookies.
  • Click OK.

Chrome

  • Click the Tools menu.
  • Select Options.
  • Click the Under the Hood tab.
  • Click Content settings in the “Privacy” section.
  • Select “Allow local data to be set”.

Safari

  • Go to the Safari drop-down menu.
  • Select Preferences.
  • Click Security in the top panel.
  • Under “Accept Cookies” select Only from sites you navigate to.

Opera

  • Within Opera, click the “File” menu and choose “Preferences.”
  • In the left-hand column, select “Privacy.”
  • Select the option labeled “Enable cookies.”
  • Click “OK” to save changes and close the dialog box.

Netscape

  • Within Netscape Navigator, click the “Edit” menu and choose “Preferences.” (In OS X, click the “Netscape” menu and choose “Preferences.”)
  • In the left-hand Category column, click “Cookies.” It’s listed in the “Privacy and Security” group.
  • Select “Accept all cookies” or “Accept only cookies that get sent back to the originating server.”
  • Click “OK” to save changes and close the dialog box.
Advertisements
Posted in Asp.net

Javascript and JQuery function not working in update panel

This post is move to http://devssolution.com/javascript-and-jquery-function-not-working-in-update-panel/

Posted in Asp.net

How to set TextBox value when TexBox mode is password in code behind.

This post is move to http://devssolution.com/set-textbox-value-when-texbox-mode-is-password-in-code-behind/

Tagged with:
Posted in Asp.net

Pass multiple parameter in “Ajax Auto Extender”

Hello Friend,

Here we have to give simple example of “Ajax Auto Extender” with multiple parameter.

Country
 <asp:DropDownList ID="ddl_topCountryList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddl_topCountryList_SelectedIndexChanged"
 Width="210px" CssClass="dropdown" />

State name

 <asp:TextBox ID="txtSearchStateName" runat="server" CssClass="textEntryCountry" MaxLength="100"
 Width="210px"></asp:TextBox>

 <ajax:AutoCompleteExtender runat="server" ID="AutoCompleteExtender1" BehaviorID="AutoCompleteExtender1"
 TargetControlID="txtSearchStateName" ServiceMethod="GetStateName" MinimumPrefixLength="1"
 OnClientPopulating="LoadAutoComplete" CompletionInterval="10" EnableCaching="true"
 CompletionSetCount="20" CompletionListItemCssClass="autocomplete_listItem" CompletionListCssClass="autocomplete_completionListElement"
 CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" UseContextKey="true"
 DelimiterCharacters=";, :" ShowOnlyCurrentWordInCompletionListItem="true" ServicePath="~/Ajax.asmx">

 </ajax:AutoCompleteExtender>
// Set UseContext Key = True

Pass argument using javascript function


<script type="text/javascript">
 function LoadAutoComplete(source, eventArgs) {
 SetContextKeyValue();
 }
 function SetContextKeyValue() {
 $find('AutoCompleteExtender1').set_contextKey($get("<%=ddl_topCountryList.ClientID %>").value);
 }
 </script>

Create Service “Ajax.asmx”


[WebMethod]
 [System.Web.Script.Services.ScriptMethod]
 public string[] GetStateName(string prefixText, int count, string contextKey)
 {

//your text box value in "prefixText" and your second argument value in "contextKey"

return Country.ToArray();

}

Tagged with:
Posted in Asp.net

Set Date Format in asp.net

This post is move to http://devssolution.com/date-format-in-asp-net/

Tagged with:
Posted in Asp.net

Sql Bulk Copy in asp.net

This post is move to http://devssolution.com/sql-bulk-copy/

Tagged with:
Posted in Geo Sql Script

Read Excel Sheet in Asp.net

This post is move to http://devssolution.com/read-excel-sheet-in-asp-net/

Tagged with:
Posted in Asp.net
  • An error has occurred; the feed is probably down. Try again later.
%d bloggers like this: