The text of this article is not in this database — only its details are. Read it on the old site: On-line Address Book in ASP.NET 2.0
29 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: On-line Address Book in ASP.NET 2.0
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
vijay rajPosted Oct 14, 2011, 4:18 AM
nice code dear, well done
Mohammad ArifPosted Dec 4, 2010, 4:55 AM
Thanks its very nice
manas manPosted Aug 13, 2010, 10:46 PM
Great job Rahul,i m a great fan of yours. Thanks yaar yours manas
vikash mehtaPosted Jun 23, 2010, 8:29 AM
Hi rahul...gr8 job...bt it wud better if u add a feature for storing and displaying contact pic also..:)
Preety kumarPosted Jun 5, 2010, 2:59 AM
thanks buddy, i badly need a project on dot net for last 3-4 days.....thanks a lot
AKSHAT MEHTAPosted Apr 24, 2010, 3:05 PM
hi , i have downloaded the project "Address book" but i am unable to run it successfully, the problem is with SQLServer connection .Can you please guide me step by step method to change connection string and connect to the SQLserver as i am beginner. Thanks and Regards, Akshat
AKSHAT MEHTAPosted Apr 24, 2010, 3:02 PM
hi...i have downloaded this project ....but i am unable to connect sqlserver with this .... Can u please tell me the steps to do so as i am a beginner. Thanks and Regards, akshat
suyash agrawalPosted Mar 20, 2010, 11:44 AM
hello rahul can u tell me how to connect database in this project
Nelson aPosted Oct 22, 2009, 12:14 PM
I receive this error http://i35.tinypic.com/jzy0zo.gif And database looks like this http://i34.tinypic.com/10fp5bs.jpg What may be the problem?
yogesh sharmaPosted Sep 13, 2009, 7:38 AM
hey rahul u r geinous it is nice one thanks for providing very good and helping articles .
Yogesh RPosted May 22, 2009, 1:11 AM
Hi, This is such a nice artical. I m new comer in .NET, I would like to know how to use databound controls in template fields in gridview. I facing proble while binding it. Please send me needful solution. I will wait for ur reply. Thanks again for nice artical. bye.
Shruti GogteeditedPosted May 12, 2009, 2:10 AMEdited May 12, 2009, 2:16 AM
Hi Rahul, Have liked your article....its a good way to start for asp.net 2.0 concepts I have a suggestion with the code written in search...u have placed buttons besides each textbox....instead of that we can keep one button...and in that button click following code can be written ...i have appended conditions in "and" clause...depending upon our requirement we can change it..... no need to write different evevnts for each textbox.... protected void btnSearch_click(object sender, EventArgs e) { StringBuilder whereCondition = new StringBuilder() ; foreach (Control ctlr in Page.Controls) { foreach(Control c in ctlr.Controls) {if (c is TextBox) {TextBox txt = c as TextBox; if (txt.Text != string.Empty) { switch (txt.ID) { case "txtIDSearch": whereCondition.Append("ID like " + txt.Text); break; case "txtFirstNameSearch": if (string.Empty != whereCondition.ToString()) { whereCondition.Append("and"); } whereCondition.Append(" FirstName like '" + txtFirstNameSearch.Text + "'"); break; case "txtLastNameSearch": if (string.Empty != whereCondition.ToString()) { whereCondition.Append("and"); } whereCondition.Append(" LastName like '" + txtLastNameSearch.Text + "'"); break; case "txtEmailSearch": if (string.Empty != whereCondition.ToString()) { whereCondition.Append("and"); } whereCondition.Append(" PersonelEmail like '" + txtEmailSearch.Text + "'"); break; } } } } } commandSearch = "select * from Record where" + whereCondition.ToString(); showSearchRecord(); Also in many pages you have created a connection string and dataadapter,command object.....we can create a generic class and place a code for once...for example public SqlConnection Connect() { conn = new SqlConnection(@"Data Source=;Initial Catalog=; Uid=sa; Pwd="); conn.Open(); return conn; } public DataSet ExecuteCommand(string query) { DataSet ds = new DataSet(); SqlDataAdapter sda = new SqlDataAdapter(query, conn); sda.Fill(ds); return ds; } public void InsertData(string query) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = query; cmd.Connection = conn; cmd.ExecuteNonQuery(); conn.Close(); }
sandeep dwivediPosted Apr 18, 2009, 11:32 AM
hi buddy it solve my prob??????????????
Hashim BhatiPosted Apr 4, 2009, 3:46 AM
Really good one! for new comer
rabi narayan panigrahiPosted Oct 23, 2008, 9:35 AM
Hi rahul, I am a VC++ developer and recently moved towards doing some web applications as per the requirement, So i wanted some examples which will give me a overal flow of asp .net application. And i checked your posts and those are very helpful for me getting some good knowledge. Thanks very much.....
YERRIPILLI POTT SRINIVASA RAOPosted Feb 15, 2008, 9:12 AM
Hello Raahul, how are you? I have visited the dotnetheaven.com to learn the basic asp.net concepts, there I found your article, it is clearly mentioned , it is for the beginners. I want to develop the asp.net applications. In addition to this, I am developing c# programs at home. This is very interesting. Thank your very much. This is my email [email protected]
kimPosted Feb 7, 2008, 5:10 PM
Good one!!! excellnet job