Hi,
Consider a Web site structure
Application Root
Sub Drec1
Sub Dir2
From the above fig, the application root directory is the virtual directory of the web site. A virtual directory is the main directory of a web site. This virtual directory contains all the files , subdirectories and other resources of a web site. Every web site needs to have a virtual directory...
User Profile
Collapse
Profile Sidebar
Collapse
bhar
Banned
Last Activity: Nov 2 '07, 06:51 AM
Joined: Apr 24 '06
Location:
-
-
Hi,
Working with the OleDbConnection object is similar to using the SqlConnection object. However, because the OleDb.NET data provider can be used to connect to several types of databases, you must specify a provider name in the connection string. These provider names will be the same ones that were used with earlier versions of ADO. Here is an example of a connection string for a Microsoft Access database:
[code=vb]...Leave a comment:
-
Hi,
In the Code view window, set break points. From the debug menu, choose Start. Internet Explorer displays the web methods of the XML Web service. The debugger breaks the execution at the breakpoint.
For example, web service contains method called divide. This method accepts two parameters n1,n2 and returns the value of division.
From the debug menu, point to windows, watch and then click Watch1. ...Leave a comment:
-
Hi,
Information is stored as Key-Value pairs. After we write the data source information in a program, it will be difficult to change the data source information. This will create problems when we deploy the programs from test server to production servers.
Till .Net was released this information was stored this information in .ini files or in system registry. It is not easy job to open the registry, locate entries and...Leave a comment:
-
Hi,
VB is not a back end tool. We use vb as a language to develop asp.net page. Please explain the problem more clearly. If you want to develop a web application using vb.net, first get familiar witrh vb.net language.Leave a comment:
-
Hi,
The first function to be called in any C# program is Main. The CLR calls Main() when your program starts. Main() is the entry point for your program, and every C# program must have a Main() method.
It is technically possible to have multiple methods in C#; in that case you use the /main command-line switch to tell C# which class contains the Main() method that should serve as the entry point to trhe program.
...Leave a comment:
-
Hi,
In today’s programming world, applications are developed using different types of architectures. Common architectures are:
a. Single Tier Architecture
b. Two Tier Architecture
c. Three Tier Architecture
d. n-Tier Architecture
An application can be divided into three layers. The first layer constitutes the user interface (user services) of an application. This layer is also called...Leave a comment:
-
Hi,
After you enter the data into the fields, user will press the button control. The code is based on C# 2005. You need to pass the values from the page as parameters to the stored procedure.
[code=vb]
void Button_Click(ob ject sender, System.EventArg s e)
{
SqlConnection conJobs;
string strConString;
SqlCommand cmdInsert;
SqlParameter parmReturn;
if (IsValid)...Leave a comment:
-
Hi,
[code=vb]
Private Sub txtCr_TextChang ed(ByVal sender As Object, ByVal e As System.EventArg s) Handles txtCr.TextChang ed
If Not IsNumeric(txtCr .Text) And (txtCr.Text <> " ") Then
MsgBox("Not a Numeric Input! Try Again")
txtCr.Focus()
Exit Sub
End If
End Sub
[/code]
The above code checks whether numeric data is entered in the Credit text box control....Leave a comment:
-
hi,
Programming the Save button involves saving multiple records at the same time. The data saved
over a period of time accumulates and results in a large database. While databases can efficiently hold large amounts of information that can be queried, all that data is useless if the data is incorrect. Databases provide many techniques for ensuring the integrity and consistency of the database. Primary key and unique constraints...Leave a comment:
-
Hi,
usage of DataAdapter in C# 2005
//Instantiate DataAdapter.
The below statements instantiate the DataAdapter objects. We need to instantiate the DataAdapters one each for the data we retrieve and data we update.
[code=vb]
myAccountAdapte r = new SqlDataAdapter( str_Account_Sel ect, myConnection);
myAllAccountAda pter = new SqlDataAdapter( str_Allaccount_ Select, myConnection);
...Leave a comment:
-
Hi,
Benefits of Forms-Based Authentication
1. Developer can configure Forms-based authentication for various parts of the website differ ently, because the Web.config is a hierarchical XML document.
2. Administrator and developer can change the authentication scheme quickly and easily in the Web.config file
3. Administration is centralized because all the authentication entries...Leave a comment:
-
Hi,
A class library is a collection of classes that are compiled into a .dll file. By converting classes into components we need not copy the source code into the projects where we need to use the components. We need to just import the component into a new project. By using components, we can reduce the size of the exe files. This is because components are precompiled and do not add up to the executable file. For those developing...Last edited by Frinavale; Apr 27 '07, 01:25 PM. Reason: emoving link to website advertising as this is considered spamLeave a comment:
-
Hi,
You need to insert the transaction (attendence) on a daily basis. Usually the number of students present in the class are more than the absent. The radio button should be default status for present(checked ). You need to uncheck the button for the absent students.
[Link Removed]...Last edited by Frinavale; Apr 27 '07, 02:36 PM. Reason: Link was removed because it is considered spamLeave a comment:
-
Hi,
Connecting to a DataSource using SqlClient Connection String in vb 2005
There are two ways.
Dim strConnect As String=”Data Source=localhos t;Initial Catalog=pubs;In tegrated Security=SSPI;”
Dim myConnection As SqlConnection=N ew SqlConnection(s trConnect)
MyConnection.Op en()
In the above code, we are taking advantage of the SqlConnection object’s parameterized constructor...Last edited by Frinavale; Apr 27 '07, 02:37 PM. Reason: Link was removed because it is considered spamLeave a comment:
-
Hi,
Private Sub Form_Load()
Set rsgroup = New ADODB.Recordset
Set rsaccount = New ADODB.Recordset
rsgroup.CursorL ocation = adUseClient
rsaccount.Curso rLocation = adUseClient
rsgroup.Open “SELECT * FROM NGROUP WHERE GHIDDEN <> -1”, CN, adOpenDynamic, adLockOptimisti c, adCmdText
rsaccount.Open “SELECT * from PARTY”, CN, adOpenDynamic, adLockOptimisti c
If rsaccount.Recor dCount...Leave a comment:
-
Leave a comment:
-
Hi,
a. Opening a Connection.
b. Instantiate the Commands.
c. Instantiate the DataAdapter.
d. Setting the DataAdapter command properties.
myAccountAdapte r.SelectCommand = comAccountSelec t
myAccountAdapte r.InsertCommand = comAccountInser t
myAccountAdapte r.DeleteCommand = comAccountDelet e
myAccountAdapte r.UpdateCommand = comAccountUpdat e...Last edited by Frinavale; Apr 27 '07, 02:44 PM. Reason: Link was removed because it is considered spam and its content is not typical HTMLLeave a comment:
-
hi,
http://www.codeguru.co m/forum/showthread.php? s=&threadid=233 294
This link may help you...Leave a comment:
-
Hi,
I have done like this:
We can create a DataTable temporarily to hold data from the query result and bind it to the DataGrid using the following statement.
(DataGrid1.Data Source=dtbuser , here dtbuser is DataTable.
To display values from the grid to the varaibles,
if dtbuser.Rows.Co unt)=0 Then
text1.text=dtbu ser.Rows(DataGr id1.CurrentRowI ndex).Item(0)
...Last edited by Frinavale; Apr 27 '07, 02:46 PM. Reason: Link was removed because it is considered spam and its content is not typical HTMLLeave a comment:
No activity results to display
Show More
Leave a comment: