473,382 Members | 1,202 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,382 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 1524
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;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.