|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Senior Googler
![]() Join Date: Jul 2007
Posts: 144
Thanks: 0
Thanked 4 Times in 4 Posts
![]() |
Need a little help with this code please.
Hi, Ive got a dropdownlist which selects stored procedures from SQL and it works fine for 2 but i really want it to have more then 2 has anyone got any ideas? CODE BELOW
SQLConnection = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\Animals.mdf;Integrated Security=True;User Instance=True") SQLCommand = New SqlCommand SQLCommand.CommandType = CommandType.StoredProcedure If DropDownList.SelectedItem.Value = 0 Then SQLCommand.CommandText = "spcatinsert" Else SQLCommand.CommandText = "spdoginsert" EndIf |
|
|
|
|
Sponsored Links
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help with conversion code - installed by code is not firing | rebmyster | Google AdWords & AdSense Forum | 0 | 03-04-2008 08:07 AM |
| These code mean ...? | tigerbin | Web Design, Coding & Programming Forum | 0 | 01-08-2007 04:15 PM |
| Google Code: Summer of Code | Randy | Google and Open Source | 6 | 06-04-2005 12:38 PM |
| Code? | JshLnsctt | Web Design, Coding & Programming Forum | 9 | 02-12-2005 07:38 AM |
| I need help with this bit of code - php | pleasant | Web Design, Coding & Programming Forum | 9 | 10-31-2004 05:46 AM |