CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.commerce_starter_kit Tags:
Item Type: NewsGroup Date Entered: 1/20/2005 2:18:19 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
Biplane
Asp.Net User
Subroutine not importing text from textbox1/20/2005 2:18:19 AM

0/0

I'm using Visual Studio and have created a few additional pages starting form the ECommerce Starter Kit. So far, so good. I'm building a catalogue interface and the page that posts the Sub Categories to the database contains the Datagrid with current categories and a Text Box, Drop Down list and a linkbutton.

I've determined that the click event of the Link Button is firing and I'm able to post the CategoryID from the dropdown list to hte database but have determined that the .text data from the tbxSubCat is posting a null, even though I've typed something in. Below is the code:

<code>
HTML Stuff
<TR>
<TD><asp:label id="Label1" runat="server" Font-Names="Bookman Old Style" Font-Size="Larger" Font-Bold="True">New SubCategory Name</asp:label><br>
<p><asp:textbox id="tbxSubCat" runat="server" Width="176px"></asp:textbox></p>
<p><asp:dropdownlist id="ddlmainCatList" runat="server"></asp:dropdownlist>
<p>
<asp:LinkButton id="lnkSubmit" runat="server" OnClick="lnkSubmit_Click">Submit Category</asp:LinkButton></p>
<p>
<asp:Label id="Label3" runat="server">Label</asp:Label></p>
<p>&nbsp;</p>
</TD>
</TR>
</table>
</TD>

Code Behind Stuff:

Private Sub lnkSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkSubmit.Click
Label3.Text = tbxSubCat.Text
Dim productCatalogue As New ASPNET.StarterKit.Commerce.ProductsDB
Dim CategoryID As Integer = ddlmainCatList.SelectedItem.Value
Dim SubCategoryName As TextBox = tbxSubCat
productCatalogue.InsertSubCat(SubCategoryName, CategoryID)
BindData()
End Sub

If you see in the Sub Routine, the Label3.txt is only receiving a Null. Any ideas?

Regards,
Seth

Seth Fuller

[email protected]
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET: Tips, Tutorials, and Code Authors: Scott Mitchell, Pages: 878, Published: 2002
ASP.NET Data Web Controls Kick Start: Kick Start Authors: Scott Mitchell, Pages: 432, Published: 2003
ASP.NET Unleashed: unleashed Authors: Stephen Walther, Pages: 1488, Published: 2003
Beginning XML with DOM and Ajax: From Novice to Professional Authors: Sas Jacobs, Pages: 432, Published: 2006
Access Cookbook: Solutions to Common User Interface & Programming Problems Authors: Ken Getz, Paul Litwin, Andy Baron, Microsoft Corporation, Pages: 810, Published: 2004
Sams Teach Yourself CGI in 24 Hours Authors: Rafe Colburn, Richard Colburn, Pages: 544, Published: 2002
Visual Basic .NET and XML: Harness the Power of XML in VB.NET Applications Authors: Rod Stephens, Brian Hochgurtel, Pages: 528, Published: 2002
ASP.net for Dummies Authors: Bill Hatfield, Pages: 432, Published: 2001

Web:
Import multiple worksheets into Access - ITtoolbox Groups especially as to data type, i.e. don't try to import text data into a numeric field. 'It will probably seem very tedious, but it probably not be as tedious ...
A Generic Calendar Application, pg.5 [AVDF Article] (Place the above subroutine in the TextBox's LostFocus event. ... as a delimited text file to specify 4 digit years in the Import/Export setup options. ...
ASP.NET Tutorial How to Display XML Data using ASP.NET 2.0 and VB .NET For this example we will need not need to import any special namespaces and we will have ... 'set the XMLDataSource's control to the XML within the Text Box ...
How to update records in ASP.NET with a Repeater - googleme.com.au
Practical .NET Internet Application Example Starting from line number 7 to line number 10 of our code, we check to see if the "URI' text box is empty or not. If it is empty the Subroutine will return, ...
Assorted Tk-related subroutines used in Grail : Programming ... The widget must exist but should not yet have been placed; in other words, this should be called after ... """Subroutine to create a text box. Create: ...
calling subroutine - ITtoolbox Groups If you enter anything into this text box, no search results will be displayed. .... above-mentioned notes or the import of the corresponding Hot Packages, ...
Enhance the admin interface when storing images in SQL Server ... Also, a text box and Search button allows the user to search the database. .... ties its Edit command (EditCommandColumn) to the specified subroutine. ...
Spice Up Your SMS Chat on the Pocket PC This user control simply uses a TextBox control and sizes it according to the .... Text, Balloons.Right) End Sub The above subroutine calls the SendSMS() ...




Search This Site:










error! how can i solve that ?

to modify register.ascx

directory listing

magic redirect and query strings

upgrade problem 1.0.10e to 2.1.2

flicker problem on menu items

memberrole.dll and probleme paging

server error in '/dotnetnuke' application

looking for a calendar module

anyone done this-do sugg-proceeding for a case for viewing files in the content page

remote install

making a case for dnn - corporate use

skin competition

windows auth automatic login?

dnn 3.1 how to hide top design icons bar in edit mode?

error with sendmail after upgrading to dnn 3.2

why is this construct not working?

3.0.12 wysiwyg is not available.

how to secure dnn email?

cmdwizard is already used by another control

prepending of relative paths

dnn 4 with sql 2000

hosting provider recommendations (dnn)?

upload is currently unavailable!!!!! (more skin issue)

3.0.13 issues: file manager

no web.config in dnn 3.1 download

register and login

dnn 4.0 on sql 2000?

4.0 installation issue: an unhandled error has occured.

banner styling

  Privacy | Contact Us
All Times Are GMT