473,420 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,420 software developers and data experts.

How to retrieve and pass data from sql server db to form controls

Peace upon u all
I wanna know how to retrieve data from db and pass it to form controls (textboxes and dropdownlists).
Oct 21 '08 #1
3 1526
Peace upon u all
The senario is as following:
1-The user should 1st login(The login part at master page)
2-phone, mobile, country, city from customer table will be displayed at form as initial value.
What I did:
I made stored procedure to retrieve these data and the parameter of stored was session["id"]. when I tested my code I noted that the session id is returned null.
So:
How 2 get session [“id”] to use run stored procedure successfully??
How 2 pass data from db to form controls(textboxes, dropdownmenus)??

plz any one help me as soon as possible.
Thanks,
Rasha
Oct 21 '08 #2
Frinavale
9,735 Expert Mod 8TB
Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics. Please take the time to read over the posting guidelines specifically the section on Before you post your question.

A great place to start researching is the MSDN Library. This resource should get you pointed in the right direction. I recommend bookmarking the MSDN Library and using it as your primary resource when developing in .NET.

Some other resources that can help you get started are listed below:
Also I recommend you watch this video on the topic of Membership, Roles, and Forms-Authentication.

You also may be interested in researching the topic of Windows Authentication.

-Moderator Frinny
Oct 21 '08 #3
Frinavale
9,735 Expert Mod 8TB
I have merged your questions.
Please do not double post your question. It makes it harder for us to answer your question and harder for you to get an answer to your question. Please take the time to look over the posting guidelines especially the section on Do not double post your question.

-Moderator Frinny
Oct 21 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Matt | last post by:
In ASP, when we pass data between pages, we usually pass by query string. If we pass data by query string, that means we need to use submit button, not by regular button, and the form will pass to...
7
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
5
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the...
2
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
1
by: j.t.w | last post by:
Hi. I'm new to ASP.Net and I'm running into a simple problem (I think). I'm trying to get 2 values from 2 separate queries into 2 different variables. I would then like to take the difference...
8
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
4
by: Rasha Farouk | last post by:
Peace upon u all I wanna know how to retrieve data from db and pass it to form controls.
2
by: Rasha Farouk | last post by:
Peace upon u all I wanna retrieve data from sql server db to form control I wanna what is the correct sentence I should put : i made datareader and wanna pass data Text2.Value = dr;
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...
0
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...

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.