Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / April 2006

Tip: Looking for answers? Try searching our database.

Please give me Parameter Examples in ASP.net 2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phillip Vong - 07 Apr 2006 15:55 GMT
Please some one help me.  I'm trying to learn something very very simple and
I just have to see how it's done.  If you're using VS2005 or VWD, please
create this very simple asp.net page for me and just past the whole source
code so I can see how it's done.  People keep giving me a little code here
and there and say try this or that, but none of it worked for me.  I just
need to see the whole thing.

This is all i want to do.
DB = SQL northwind
Table = Customer
Column = Contact Name
One Textbox = textbox1 with default value of "c"

I just want to see how you can pass a variable to the Select  using Like
that contains the value in the textbox1.text.  The result will show on a
simple GridView.  I know I basically have to do it with parameters and I've
read a lot and tried a lot and can not get it to work. This is the Select
from VS2005.  Can someone tell me if this is correct?  My peramter name is
@test.  The SQLDataSource is fine.

SelectCommand="SELECT [ContactName] FROM [Customers] WHERE ([ContactName]
LIKE '%' + @test + '%')"

Please please please create this simple aspx and paste the whole source code
so I can see how it's done.

Thanks in advance.

Phil
Phillip Vong - 07 Apr 2006 16:25 GMT
oops wrong group.  If you know the answer please tell me.

Phil

> Please some one help me.  I'm trying to learn something very very simple
> and
[quoted text clipped - 28 lines]
>
> Phil

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.