Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-03-2010, 07:42 PM   #1 (permalink)
Apprentice
 
Join Date: Jul 2007
Posts: 59
Default asp.net database.cs help


I am trying to develop a class in asp.net where I want to put some common functions but I don't know how to add value in sql query using ....Parameter.AddWithValue("@r", txt.Text) please suggest me some example or some tutorial please help....
meghraj is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 08-03-2010, 10:56 PM   #2 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: asp.net database.cs help

Didn't understood your question clearly. But as far I got it I think you want to add values in to an SQL Insert Query. You can do it by Parameters.Add("Value"). The first statement will add value to the first field and so on..

For more better reference refer MSDN.
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is offline  
Old 09-03-2010, 03:18 PM   #3 (permalink)
Apprentice
 
Join Date: Jul 2007
Posts: 59
Default Re: asp.net database.cs help

I am actually trying to develop a function through which I can able to add the value in sql query.....but I am not able to figure out the way to implement that....

the only thing I know is that I have to use SqlParameterCollection object...
meghraj is offline  
Old 09-03-2010, 06:15 PM   #4 (permalink)
Simply a DIGITian
 
krishnandu.sarkar's Avatar
 
Join Date: Nov 2007
Location: Kolkata
Posts: 2,942
Default Re: asp.net database.cs help

Ya got it. Take a look here http://msdn.microsoft.com/en-us/libr...withvalue.aspx
__________________
  • Read The Forum RULES First.
  • Before PM'ing Or Asking Any Questions To Any Mod Read The FAQ's
  • Before Starting A New Thread Read The STICKY THREADS First
  • Before Participating In Bazaar Section Read The BAZAAR RULES
krishnandu.sarkar is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 3 tier architecture help meghraj Programming 1 03-05-2010 12:34 AM
asp.net form tag error meghraj Programming 2 03-03-2010 03:26 PM
ASP.NET Development Problem in Visual Studio 2005 Krazy_About_Technology Programming 1 06-02-2008 09:38 PM
ASP.Net troubles vuttu Software Q&A 5 16-07-2006 11:19 AM
Whats the difference between ASP & ASP.NET help_me QnA (read only) 8 08-12-2005 03:31 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:14 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2