Three ways to tell if a .NET Assembly is Strongly Named (or has Strong Name)
Approach #1: Testing for Strong Name on Command Line or in a Script
Approach #2: Viewing Strong Name Details with IL DASM
Approach #3: Viewing Strong Name Details with Reflector
for details refer
http://blog.codingoutloud.com/2010/03/13/three-ways-to-tell-whether-an-assembly-dl-is-strong-named/
Tuesday, December 14, 2010
Saturday, November 20, 2010
Jquery Tabs
There are some common fuctions for tabs
Property
Default Value
Usage
ajaxOptions
{}
Options for remote AJAX tabs
cache
"false"
Load remote tab content only once (lazy-load)
cookie
null
Show active tab using cookie data on page load
disabled
[]
Disable specified tabs on pageload
idPrefix
"ui-tabs-"
Used when a remote tab's link element has no title attribute
event
"click"
Tabs event that triggers display of content
fx
null
Specify a transition effect when changing tabs
panelTemplate
A string specifying the elements used for the content section of a dynamically created tab
selected
0
The tab selected by default when the widget renders
spinner
"LoadingB230"
Specify the loading spinner for remote tabs
tabTemplate
#{label}
A string specifying the elements used when creating new tabs dynamically
unselect
false
Hides an already selected tab when it is clicked
Property
Default Value
disabledCLass
"ui-tabs-disabled"
hideClass
"ui-tabs-hide"
loadingClass
"ui-tabs-loading"
navClass
"ui-tabs-nav"
panelClass
"ui-tabs-panel"
selectedClass
"ui-tabs-selected"
unselectClass
"ui-tabs-unselect
E.X.
If you want nothing should be selected on load
$(document).ready(function () {
var tabOpts = {
selected:null
};
$("#tabs").tabs(tabOpts);
});
else type 0,1,2 are index starts with 0
If you wanna disable TAB$(document).ready(function () {
var tabOpts = {
disables:[0]
};
$("#tabs").tabs(tabOpts);
});
disable first tab , change [0] to disable other or for mutliple [0,1] etc.
Transition Effects
$(document).ready(function () {
var tabOpts = {
fx: {
opacity:"toggle", duration:"slow" }
};
$("#tabs").tabs(tabOpts);
});
duration could be slow, normal, or fast
To only show the animation once, when a tab closes for example, we would need to nest the fx object within an array
$(function(){
//define config object
var tabOpts = {
fx: [{
opacity: "toggle",
duration: "slow"
},
null]
};
//create the tabs
$("#myTabs").tabs(tabOpts);
});
/script>
executable functions on an event
Property
Usage
add
Execute a function when a new tab is added
disable
Execute a function when a tab is disabled
enable
Execute a function when a tab is enabled
load
Execute a function when a tab's remote data has loaded
remove
Execute a function when a tab is removed
select
Execute a function when a tab is selected
show
Execute a function when the content section of a tab is shown
tab's custom binding events and their triggers
Event
Trigger
tabsselect
A tab is selected
tabsload
A remote tab has loaded
tabsshow
A tab is shown
tabsadd
A tab has been added to the interface
tabsremove
A tab has been removed from the interface
tabsdisable
A tab has been disabled
tabsenable
A tab has been enabled
Functions
$(function(){
//alert the id of the tab that was selected
function handleSelect(event, tab) {
alert("The tab at index " + tab.index + " was
selected");
}
//define config object
var tabOpts = {
select:handleSelect
};
//create the tabs
$("#myTabs").tabs(tabOpts);
});
Property
Default Value
Usage
ajaxOptions
{}
Options for remote AJAX tabs
cache
"false"
Load remote tab content only once (lazy-load)
cookie
null
Show active tab using cookie data on page load
disabled
[]
Disable specified tabs on pageload
idPrefix
"ui-tabs-"
Used when a remote tab's link element has no title attribute
event
"click"
Tabs event that triggers display of content
fx
null
Specify a transition effect when changing tabs
panelTemplate
A string specifying the elements used for the content section of a dynamically created tab
selected
0
The tab selected by default when the widget renders
spinner
"LoadingB230"
Specify the loading spinner for remote tabs
tabTemplate
A string specifying the elements used when creating new tabs dynamically
unselect
false
Hides an already selected tab when it is clicked
Property
Default Value
disabledCLass
"ui-tabs-disabled"
hideClass
"ui-tabs-hide"
loadingClass
"ui-tabs-loading"
navClass
"ui-tabs-nav"
panelClass
"ui-tabs-panel"
selectedClass
"ui-tabs-selected"
unselectClass
"ui-tabs-unselect
E.X.
If you want nothing should be selected on load
$(document).ready(function () {
var tabOpts = {
selected:null
};
$("#tabs").tabs(tabOpts);
});
else type 0,1,2 are index starts with 0
If you wanna disable TAB$(document).ready(function () {
var tabOpts = {
disables:[0]
};
$("#tabs").tabs(tabOpts);
});
disable first tab , change [0] to disable other or for mutliple [0,1] etc.
Transition Effects
$(document).ready(function () {
var tabOpts = {
fx: {
opacity:"toggle", duration:"slow" }
};
$("#tabs").tabs(tabOpts);
});
duration could be slow, normal, or fast
To only show the animation once, when a tab closes for example, we would need to nest the fx object within an array
$(function(){
//define config object
var tabOpts = {
fx: [{
opacity: "toggle",
duration: "slow"
},
null]
};
//create the tabs
$("#myTabs").tabs(tabOpts);
});
/script>
executable functions on an event
Property
Usage
add
Execute a function when a new tab is added
disable
Execute a function when a tab is disabled
enable
Execute a function when a tab is enabled
load
Execute a function when a tab's remote data has loaded
remove
Execute a function when a tab is removed
select
Execute a function when a tab is selected
show
Execute a function when the content section of a tab is shown
tab's custom binding events and their triggers
Event
Trigger
tabsselect
A tab is selected
tabsload
A remote tab has loaded
tabsshow
A tab is shown
tabsadd
A tab has been added to the interface
tabsremove
A tab has been removed from the interface
tabsdisable
A tab has been disabled
tabsenable
A tab has been enabled
Functions
$(function(){
//alert the id of the tab that was selected
function handleSelect(event, tab) {
alert("The tab at index " + tab.index + " was
selected");
}
//define config object
var tabOpts = {
select:handleSelect
};
//create the tabs
$("#myTabs").tabs(tabOpts);
});
Friday, November 19, 2010
Using Jquery in Master Pages
There are few things to notice :
1) try google CDN's
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript">/script>
script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript">/script>
2) Put stepone in the head section of the Master page before Head Content Placeholder
head runat="server">
title>/title>
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>
link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
/head>
1) try google CDN's
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript">/script>
script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript">/script>
2) Put stepone in the head section of the Master page before Head Content Placeholder
head runat="server">
title>/title>
link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css"/>
link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
/head>
Tuesday, October 26, 2010
Wednesday, October 20, 2010
Request.PathInfo
Request.PathInfo is a little known property that returns the path information for a resource with a URL extension
Thursday, October 7, 2010
User doesnot hace permission to do this action
When you receieve this error as "User doesnot hace permission to do this action" This is maily because the application run under a process which doen't have sufficient permissions to perform action. In case of Visual Studio if you receieve tis error then it means that the ASPNET doesn't have permissions to perform this action. to overcome this errror you should do the following:
1) Give permission for the ASPNET to perform this action
2) or make your application run under another account than ASPNET.
Read about (1) and let me know too.
But for the second option use the impersonate setting account in the web config file that would resolve this issue. This would tell the ASPNET that use specified crenditials to update information.
identity impersonate="true" userName="xx" password="xx"/
I would also recommend following article with it.
http://support.microsoft.com/default.aspx?scid=kb;en-us;329290
1) Give permission for the ASPNET to perform this action
2) or make your application run under another account than ASPNET.
Read about (1) and let me know too.
But for the second option use the impersonate setting account in the web config file that would resolve this issue. This would tell the ASPNET that use specified crenditials to update information.
identity impersonate="true" userName="xx" password="xx"/
I would also recommend following article with it.
http://support.microsoft.com/default.aspx?scid=kb;en-us;329290
Labels:
error,
exception,
express,
impersonate,
permission,
sql server,
web.config
Tuesday, September 28, 2010
There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section defined
Above issue screwed up my head, I spent couple of hours on it and finally I got the solution. Some reasons behind these issues are
1) You might changed “sharepoint – 80” application pool’s .net framework version 2 to 4
2) You might have the web.config file in your site or sub site it contains the duplicate section of scriptresourceHandler, You should retain this section only on root web.config file.
1) You might changed “sharepoint – 80” application pool’s .net framework version 2 to 4
2) You might have the web.config file in your site or sub site it contains the duplicate section of scriptresourceHandler, You should retain this section only on root web.config file.
Labels:
error,
scriptResourceHandler,
section,
web,
web.config
Subscribe to:
Posts (Atom)