Wednesday, April 25, 2012

Browser Back Button Issue after LogOut in asp.net


http://www.codeproject.com/Tips/135121/Browser-back-button-issue-after-logout
http://www.developerfusion.com/thread/51491/how-to-disable-back-button-of-the-browser-after-logout/
http://stackoverflow.com/questions/6017689/backbutton-after-logout-in-asp-net

Tab control mvc3

how to start Jquery?

Refresh a page asp.net



Once the page is rendered to the client you have only two ways of forcing a refresh. One is Javascript
setTimeout("location.reload(true);", timeout);

The second is a Meta tag:
<meta http-equiv="refresh" content="600">
You can set the refresh intervals on the server side.
for more detail
http://www.grizzlyweb.com/webmaster/javascripts/refresh.asp

How to open web page full screen?


Here is full-screen for netscape:
<script language="JavaScript"><!--
window.open('page.html','newwin','fullscreen');
//--></script>

for ie:
<script language="JavaScript"><!--
w=800
h=600
if (window.screen) {
w = window.screen.availWidth;
h = window.screen.availHeight;
}
window.open('page.html','newwin','width='+w+',height='+h+',top=0,left=0');
//--></script> 
u can do this with this client script function
or
set this proper way in u r ie browser...

Best CMS for ASP.net


For asp.net  best CMS
Umbraco is a good alternative http://umbraco.com/
Dotnetnuke is best cms  http://www.dotnetnuke.com/
Composite is also gaining popularity http://www.composite.net/
Commercial

Monday, April 23, 2012

asp.net froum

Hi Friends,

Iam a member in The Official Microsoft ASP.NET Site
Now this time i reached in 15000 points and i get all star level.
Heartfelt thanks to everyone.........................


Sunday, April 22, 2012

What is the difference between IEnumerator and IEnumerable?


IEnumerable is an interface that defines one method GetEnumerator which returns an IEnumerator interface, this in turn allows readonly access to a collection. A collection that implements IEnumerable can be used with a foreach statement.
Definition
 IEnumerable

public IEnumerator GetEnumerator();

IEnumerator

public object Current;
public void Reset();
public bool MoveNext();


What is IEnumerable in .net?


It's an interface implemented by Collection types in .NET that provide the Iterator pattern. There also the generic version which is IEnumerable<T>.
The syntax (which you rarely see because there are prettier ways to do it) for moving through a collection that implements IEnumerable is:
 IEnumerator enumerator = collection.GetEnumerator();

while(enumerator.MoveNext())
{
    object obj = enumerator.Current;
    // work with the object
}
Which is functionaly equivalent to:
foreach(object obj in collection)
{
    // work with the object
}

If the collection supports indexers, you could also iterate over it with the classic for loop method but the Iterator pattern provides some nice extras like the ability to add synchronization for threading.