Below is a code extract from an ASP.Net application.
The code basically reads data from the “name” field in
the “members” table and prints them onto the webpage.
Using the assumptions provided, fill in the 4 blanks below
so that the code will run correctly.
‘Assumptions:
‘conn_str is a variable that holds the connection string to
the database
‘Objects dbcomm and dbread are already declared earlier
dbcomm = New OleDbCommand("SELECT name FROM members",
conn_str)
dbread = dbcomm._______________
_____________________
response.write(_______________)
_____________________
dbread.Close()
My website has around 100 aspx. Out of this, a certain 20
aspx files should be made available to the users only
if they are logged in. How can I achieve this with the
web.config file?
a web application needs to be created to accept the product
name and quantity of a toy from a customer. After the
customer has entered the product name the application needs
to display the discounted price of the product to the
customer (company is offering 35% discount on all products).
The application should allow the customer to select the
product name from a list box. and also while i'm data
binding to a label with custom data binding with some
declarations : "The Discounted Price is
"+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text))
-
((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)).
Where i need to give this declaration in asp.net 2.0.
How many types of API functions are availble in VB?
100
i am attending to US consulate i kept my projects on
vb.net ,please help me what questions will be ask on vb.net
in us consulate
337
In a single process non of user's are accessing Web site when
i checked the logs it showing event ID "530" ? need the
solutions and also Mail me all the event id's related to
IIS...
How can you filter out specific type of file using file
system controls?
130
How can you get selected file from file system Control?
114
Explain Default cursor Type and LockEdits type in RDO?
83
Hello,
Using Visual Studio 2005 (VB) I am working to create a Web
Site implementing the following:
Within a gridView I have placed a dropdownlist control with
a DataSourceID="SDSLkupList".
SDSLkupList is a sqlDataSource used to store a lookup list
for dropdownlist
translation from ID to text. SDSLkupList contains the
translation text and other fields
related to the dropdown selection ID. (Thought it would be
efficient to get everything
at the same time.)
I would like to provide the user the ability to select from
the dropdownlist and, based on the
selection, use labels to list related columns stored on the
SDSLkupList in separate gridView
columns.
I have read that SqlDataSources are not meant to be used
for individual controls. Since
SDSLkupList contains all related information, is there a
way to do a find using the
dropdownlist selectedValue? (I was not able to discover
one.)
Otherwise, what should I use? It would need to set the
labels on the gridView DataRowBound
event as well as the SelectedIndexChanged events.
Has anyone done this?
Any help would be appreciated.
Thanks in Advance.
Neal
73
What do you mean by Databound Controls Explain?
94
What is ActiveX? Explain.
73
What are the consideration in deciding to use .NET Remoting
or ASP.NET Web Services?