Google Brother Up
2009/02/03
Difference between a Label and a Literal in ASP.NET
Ad Rotator Simplest Example
2008/12/19
Split a string separated by ";" and place in an array
2008/12/12
Fundas on Server Paths
tw.Close();
How to get a Path & Xml file values into a Dataset
Convert a string to Proper Case or Sentence Case
CultureInfo cc = new CultureInfo("");
TextInfo ti = cc.TextInfo;
ti.ToTitleCase(mlstSelectedColumn.Column
2008/11/26
Sys.WebForms.PageRequestManagerServerErrorException:
2008/11/07
2008/11/05
System.IO.FileStream Class - A good tutorial
2008/10/31
Paging Code Behind
2008/10/27
All Databases and All Tables
- Select All Databases from a Server (this is a system stored procedure)
- Select All Tables from a Particular Database
2008/09/10
A Master Page & A Content Page
controls your layout, specifying how big your header will be on every page, where your navigation features
will be placed, and the text to display in the footer on every page—a bit like a cookie cutter for
each page. The Master page contains some of the content available to each page on the site, so standard
copyright footer text can be defined here, along with positioning the main site logo at the top of the
page. After the standard features of the Master are defined, you then add some placeholders—named
regions on a page that define where content that varies from page to page will be positioned.
A Content page is a page based on a Master, and is where you add the content for each page on a site that
varies from page to page. The Content page contains text, HTML, and controls within
tags. When the Content page is requested, its content is combined with a copy of the Master page, with
the specific content defined in the Content page placed within the specified placeholder on the Master
page. Then the whole package is delivered to the browser, as shown in Figure 2-1.
2008/09/08
Some AJAX Sites
http://en.wikipedia.org/wiki/AJAX
http://www.ajaxpro.info/lesson/1/
http://weblogs.asp.net/mschwarz/archive/2007/04/10/jquery-and-ajax-net-professional-ajaxpro.aspx
http://malakablog.wordpress.com/2008/07/16/using-ajax-pro-step-by-step/
http://ajaxpro.info/Examples/Special/keypress.aspx
http://weblogs.asp.net/mschwarz/default.aspx
http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2007/04/19/AjaxPro-Rocks_2100_.aspx
http://www.schwarz-interactive.de/quickguide.aspx
http://www.schwarz-interactive.de/quickguide.aspx
http://munich.schwarz-interactive.de/session.aspx
http://munich.schwarz-interactive.de/autocomplete.aspx
http://ajaxpro.info/Examples/Special/keypress.aspx
http://www.schwarz-interactive.de/quickguide.aspx
http://free-ebook-download-links-gw.blogspot.com/2008/06/introducing-microsoft-aspnet-ajax-pro.html
http://ajaxpro.schwarz-interactive.de/ (good)
http://ajax.phpmagazine.net/2006/09/new_ajaxpro_java_edition.html
D:\Vaijayanta-BACKUP\Back-Up-For-XP\VAIJAYANTA\IMPORTANT\Study Materials All\Study Materials 2007 August to December\Ajax\CSharpSample
http://tricks-for-new-bloggers.blogspot.com
http://www.codeproject.com/KB/aspnet/DynamicControls.aspx
http://extjs.com/forum/archive/index.php/t-2641.html
http://extjs.com/forum/showthread.php?t=2641
http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx
http://69.10.233.10/KB/cpp/ASPNet_Ajax.aspx?fid=421153&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2483447#xx2483447xx
http://w3schools.com/html/html_forms.asp
http://news.hping.org/comp.lang.javascript.archive/17790.html
http://www.ajaxlab.com/index.php?c=AjaxProNET
http://munich.schwarz-interactive.de/default.aspx
http://www.codeproject.com/KB/ajax/AjaxValidation.aspx (good)
http://www.aspcode.net/AjaxNET-part-3.aspx (good)
http://www.codeproject.com/KB/ajax/AjaxValidation.aspx
81 unique visitors
AJAX .NET Examples and Concepts
This webpage has a lot of examples: -
http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx
81 unique visitorsAJAX PRO Concept and Example
1. In web.config file add the tag below under (system.web) tag: -
(httpHandlers)
(add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/)
(/httpHandlers)
2. Write the TestAjaxPro.aspx file: -
(html xmlns="http://www.w3.org/1999/xhtml" )
(head runat="server")
(title)Test Ajax Pro Page(/title)
(script type="text/javascript")
function getServerTime() // being called from (body)
{
TestAjaxPro.GetServerTimeAjax(getServerTime_callback); // asynchronous call
}
function getServerTime_callback(res) // being called from inside GetServerTimeAjax() parameter
{
alert(res.value);
}
(/script)
(/head)
(body onload="javascript:getServerTime();")
(form id="form1" runat="server" )
(div)
(/div)
(/form)
(/body)
(/html)
3. Write the TestAjaxPro.aspx.cs file: -
using AjaxPro;
public partial class TestAjaxPro : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(TestAjaxPro)); //
}
[AjaxPro.AjaxMethod]
public DateTime GetServerTimeAjax() // being called from getServerTime()
{
return DateTime.Now;
}
}
4. Run the code.
81 unique visitors
2008/08/14
ConnectionString in Web.Config
(configuration)
(appSettings)
(add key="mstrConnectionString" value="user id=abcd; password=1234; server=VAIJAYANTA-PC\SQLEXPRESS; database="VaijayantaTest" /)
(/appSettings)
(/configuration)
or
(configuration)
(connectionStrings)
(add name="mstrConnectionString" connectionString="user id=abcd; password=1234 server=VAIJAYANTA-PC\SQLEXPRESS; database="VaijayantaTest" /)
(/connectionStrings)
(/configuration)
string StrCon;
StrCon = ConfigurationSettings.AppSettings.Get("mstrConnectionString");
Sqlconnection conn = new SqlConnection(StrCon );
conn.Open();
SqlCommand cmd = new SqlCommand(select,conn);
rest follows.........
72 unique visitors
2008/08/08
What is DDL, DML, DCL, TCL in SQL ?
CREATE TABLE - creates new database table
ALTER TABLE - alters or changes the database table
DROP TABLE - deletes the database table
CREATE INDEX - creates an index or used as a search key
DROP INDEX - deletes an index
The Data Manipulation Language (DML) includes: -
SELECT - extracts data from the database
UPDATE - updates data in the database
DELETE - deletes data from the database
INSERT INTO - inserts new data into the database
The Data Control Language (DCL) includes: -
GRANT – gives access privileges to users for database
REVOKE – withdraws access privileges to users for database
The Transaction Control Language (TCL) includes: -
COMMIT – saves the work done
ROLLBACK - restore the database to original since the last COMMIT
70 unique visitors
2008/08/05
How to write a Database Connection in Dot Net
---------------------------------------------------------------------------
source = "server=(local); integrated security=SSPI; database=Northwind";
select = "select * from Customers";
Sqlconnection conn = new SqlConnection(source);
conn.Open();
SqlCommand cmd = new SqlCommand(select,conn);
int rowsReturned = cmd.ExecuteNonQuery(); //returns no of rows affected
---------------------------
SqlDataReader reader = cmd.ExecuteReader();
while(reader.Read())
{
ConsoleWriteline(reader[0], reader[1]); //returns a set of values
} // by iterating through records
-------------------------
object o = cmd.ExecuteScalar();
Console.WriteLine(o); // returns a column
-----------------
XmlReader xr = cmd.ExecuteXmlReader();
xr.Read(); // returns a XmlReaderObject
--------------
SqlDataAdapter da = new SqlDataAdapter(select, conn);
DataSet ds = new DataSet();
da.Fill(ds,"Customers"); //runtime schema generation
---------------------------------------------------------------------------
68 unique visitors