|
-
Oct 27th, 2006, 04:28 AM
#1
Thread Starter
Member
[2005] Insert Row using SqlDataSource
Hi, please help
I am trying to populate a table in a SQL Sever DB, but I am having trouble assigning the InsertParameters. I am using normal textboxes and a SqlDataSource.
Thanks
-
Oct 30th, 2006, 04:16 PM
#2
Re: [2005] Insert Row using SqlDataSource
Show some code that you're using to attempt insertion. Why aren't you using stored procedures? Are you really from Africa?
-
Oct 30th, 2006, 04:18 PM
#3
Re: [2005] Insert Row using SqlDataSource
You should be executing a stored procedure instead of unprepared sql statements. The sp can be written to accept parameters.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 31st, 2006, 02:30 AM
#4
Thread Starter
Member
Re: [2005] Insert Row using SqlDataSource
Thanks, I can see that a SP will be the better option, I am coming from a VB6 environment and are realy not used to the asp \ web way of doing things.
Like how does data binding work if you are not using a data control and want to populate just normal text boxes...
and Mendhak yes I am from South-Africa.
-
Nov 2nd, 2006, 10:40 AM
#5
Re: [2005] Insert Row using SqlDataSource
There are many ways to do it, you could even bind a textbox to a dataset, but common practice is that you retrieve the value into a dataset and directly assign the value...
Textbox1.text = ds.tables[0].Rows[4].Columns["suppliername"].ToString();
Seth Africa? That's not really Africa. That's Europe :P
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|