473,779 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

assigning a value to a textbox/label control in ASP.NET

I have a stored procedure which does a simple select * from MemberTable.
This returns first name and last name.

I want to assign this value to a label control in asp.net and display on
screen. I am a newbie to ASP.net

Can anyone please explain the sql querying and assignment portion of this
task

Thanks
Sep 24 '08 #1
3 1548
"Rahul Chatterjee" <ra***@benesysi nc.comwrote in message
news:O4******** ******@TK2MSFTN GP03.phx.gbl...
I have a stored procedure which does a simple select * from MemberTable.
This returns first name and last name.

I want to assign this value to a label control in asp.net and display on
screen. I am a newbie to ASP.net

Can anyone please explain the sql querying and assignment portion of this
task
What method(s) are you using to interface with the database...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 24 '08 #2
ADO.NET (using VB.net)
"Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
news:eC******** ******@TK2MSFTN GP02.phx.gbl...
"Rahul Chatterjee" <ra***@benesysi nc.comwrote in message
news:O4******** ******@TK2MSFTN GP03.phx.gbl...
>I have a stored procedure which does a simple select * from MemberTable.
This returns first name and last name.

I want to assign this value to a label control in asp.net and display on
screen. I am a newbie to ASP.net

Can anyone please explain the sql querying and assignment portion of this
task

What method(s) are you using to interface with the database...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 25 '08 #3
"Rahul Chatterjee" <ra***@benesysi nc.comwrote in message
news:Od******** ********@TK2MSF TNGP02.phx.gbl. ..

[please don't top-post]
>>I have a stored procedure which does a simple select * from MemberTable.
This returns first name and last name.

I want to assign this value to a label control in asp.net and display on
screen. I am a newbie to ASP.net

Can anyone please explain the sql querying and assignment portion of
this task

What method(s) are you using to interface with the database...?

ADO.NET (using VB.net)
And what database is it...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 25 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4615
by: Brian Morris | last post by:
I'm new to .NET and just trying a few things out, like emailing. I created a form in Visual Studio .Net to input some information for generating an email and I'm getting the following error when it executes both on my server or on the server of the .NET service provider. I'm obviously missing something very basic and I'm hoping one of you can point out my error. Thank you for your assistance. Brian
2
3122
by: Benedict Teoh | last post by:
I created a dropdownlist containing day, month and year field and expose a property to assign a date. When I call from a aspx page and assign the value, the new date is not displayed until a submit is performed. How do I force the usercontrol to display the newly assigned date? I don't have this problem if I place the two dropdownlist and the year field directly on the aspx page.
3
3996
by: Justin Morris via DotNetMonster.com | last post by:
<asp:TextBox ID="TextBox1" runat="server" value='<%=Server.HtmlEncode (Request.Cookies("Username")("Username"))%>'/> <input name="Password" type="text" id="Password" value='<% =Server.HtmlEncode(Request.Cookies("Username")("Username"))%>'> i have created a cookie and want to use it with my login page. I currently have asp:TextBox with form validation control. I can get the cookie value to appear but not in the asp:TextBox. I can use a...
3
1241
by: JJ_377 | last post by:
I made a user control to gather usa address information and would like to know why the following doesn't work (I am assigning the valid of textbox in a second instance of the control from the first instance of the control) The textboxes hold date values. If Len(USAAddress1.ValidFromCur) > 0 Then USAAddress2.ValidFromCur = USAAddress1.ValidFromCur End If Here is the Property method in the user control's class file:
0
1399
by: jason | last post by:
Hello everyone. I am trying to write some custom command events into a DataGrid. The command that is currently giving me trouble is an "Add" custom command in the footer of a template column. Question #1: In the Add button Command Event I am trying to access the Text value of the TextBox in the other Footer columns. However, inside the Event, the TextBox.Text values are all empty strings, even if they had data typed into them. Is this a...
2
4556
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was set to...it is set to false. Can someone show me what I am doing wrong and tell me the correct way? Thank you. In the page load event, I am doing the following:
0
1021
by: Paul | last post by:
Hi all, I have a simple custom control with a label and a text box. The text control's value is persisting when I do a post back, so the view state is working, but I cannot access the value in the code. Is there anything different I have to do to expose the value of the text box? testControl.Text returns the unchanged original value, not the new value.
1
5842
by: JTok | last post by:
I have an asp.net website I am designing using VS2005 standard. It is installed on Win2K3 Enterprise. In a Wizard Control, I want to take user input from two textboxes, add them together, and then display the results in a label when the user clicks a button. I am using VB. Here is an example of what I'm trying to do: <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
2656
by: Jim in Arizona | last post by:
On one page I have a datalist where a message is bound to a label. On another page I have the datalist which allows for the insert of new message as well as being able to edit those messages. The editing (EditItemTemplate) has a textbox that loads the message into its text property. The problem I'm running into is working with vbCrLf and <brinterchangeably between the textbox on the admin page and the label on the general message page. I...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.