Making Web Services Accessible from Script
http://www.asp.net/ajax/documentation/live/tutorials/ExposingWebServicesToAJAXTutorial.aspx
Great Asp.net tutorial
http://www.beansoftware.com/ASP.NET%2DTutorials/
Different Date Format for sqlserver
http://www.sql-server-helper.com/tips/date-formats.aspx
Convert VB.NET to C# OR C# to VB.NET -
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
Job creation :-
http://www.databasedesign-resource.com/sql-server-jobs.html
Retriving and saving Image as binary:-
http://www.beansoftware.com/ASP.NET-Tutorials/Save-Read-Image-Database.aspx
Membership understanding :-
http://aspnet.4guysfromrolla.com/articles/101106-1.aspx
URL Rewriting:-
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
DotNetNuke Installation:-
http://www.bestwebsites.co.nz/dotnetnuke/easy-dotnetnuke-installation-guide/
UrlRewriting:-
http://www.simple-talk.com/dotnet/asp.net/a-complete-url-rewriting-solution-for-asp.net-2.0/
Sunday, November 23, 2008
Sys is undefined error message
if (typeof(Sys) !== "undefined")
Sys.Application.notifyScriptLoaded();
Sys.Application.notifyScriptLoaded();
How to set up Membership using asp.net sql server registration tool
1) Member ship
aspnet_regsql -S [Server name] -U [username] -P [password] -A all -d [DataBaseName]
2) SQL Session State
aspnet_regsql -S [Server name] -U [username] -P [password] -ssadd -sstype c -d
3) DB Caching
aspnet_regsql.exe -S [Server name] -U [username] -P [password] -d -ed
aspnet_regsql -S [Server name] -U [username] -P [password] -A all -d [DataBaseName]
2) SQL Session State
aspnet_regsql -S [Server name] -U [username] -P [password] -ssadd -sstype c -d
3) DB Caching
aspnet_regsql.exe -S [Server name] -U [username] -P [password] -d -ed
Thursday, November 6, 2008
Download Pdf/excel/ or any file
String type = "Application/msword";
if (File.Exists(Server.MapPath("Certificatepdf.pdf")))
{
Response.AppendHeader("content-disposition", "attachment; filename=" + "Certificatepdf.pdf");
if (type != "")
Response.ContentType = type;
Response.WriteFile(Server.MapPath("Certificatepdf.pdf"));
Response.End();
}
if (File.Exists(Server.MapPath("Certificatepdf.pdf")))
{
Response.AppendHeader("content-disposition", "attachment; filename=" + "Certificatepdf.pdf");
if (type != "")
Response.ContentType = type;
Response.WriteFile(Server.MapPath("Certificatepdf.pdf"));
Response.End();
}
Monday, November 3, 2008
solution to fire click event through js in firefox not work
function fireClickEvent(control)
{
if (document.all)
{
control.fireEvent("onclick");
}
else
{
var clickEvent = window.document.createEvent("MouseEvent");
clickEvent.initEvent("click", false, true);
control.dispatchEvent(clickEvent);
}
}
{
if (document.all)
{
control.fireEvent("onclick");
}
else
{
var clickEvent = window.document.createEvent("MouseEvent");
clickEvent.initEvent("click", false, true);
control.dispatchEvent(clickEvent);
}
}
add new element in dropdown/listbox using javascript
function addOption(selectbox,text,value )
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}
function removeOption(selectbox,selectedIndex )
{
selectbox.remove(selectedIndex);
}
{
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}
function removeOption(selectbox,selectedIndex )
{
selectbox.remove(selectedIndex);
}
Solution to the InnerText Not work with Firefox
function getText(el)
{
if ('string' == typeof el.textContent) return el.textContent;
if ('string' == typeof el.innerText) return el.innerText;
return el.innerHTML.replace(/<[^>]*>/g,'');
}
function setText(el,str)
{
if ('string' == typeof el.textContent)
el.textContent = str;
if ('string' == typeof el.innerText)
el.innerText = str;
}
{
if ('string' == typeof el.textContent) return el.textContent;
if ('string' == typeof el.innerText) return el.innerText;
return el.innerHTML.replace(/<[^>]*>/g,'');
}
function setText(el,str)
{
if ('string' == typeof el.textContent)
el.textContent = str;
if ('string' == typeof el.innerText)
el.innerText = str;
}
Subscribe to:
Posts (Atom)