User Profile

Collapse

Profile Sidebar

Collapse
bhar
bhar
Banned
Last Activity: Nov 2 '07, 06:51 AM
Joined: Apr 24 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bhar
    replied to Two Web.config file in a project
    in .NET
    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...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:52 AM. Reason: Removed link.

    Leave a comment:


  • bhar
    replied to connecting ms access database with vb.net
    in .NET
    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]...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:57 AM. Reason: Added CODE tags.

    Leave a comment:


  • bhar
    replied to Debugging a Web Service on weird Scenario
    in .NET
    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. ...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:58 AM. Reason: Removed commercial link.

    Leave a comment:


  • bhar
    replied to app.config
    in .NET
    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...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:58 AM. Reason: Removed commercial link.

    Leave a comment:


  • bhar
    replied to asp.net with vb
    in .NET
    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.
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 01:34 AM. Reason: Removed link.

    Leave a comment:


  • bhar
    replied to .NET Compilation
    in .NET
    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.
    ...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 01:29 AM. Reason: Removed commercial link.

    Leave a comment:


  • bhar
    replied to What does it mean by "Project Architecture?"
    in .NET
    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...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:58 AM. Reason: Removed commercial link.

    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)...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 11:59 AM. Reason: Added CODE tags, removed commercial link.

    Leave a comment:


  • bhar
    replied to how to validate textbox control in vb.net?
    in .NET
    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....
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 12:00 PM. Reason: Added CODE tags, removed commercial link.

    Leave a comment:


  • bhar
    replied to Editing entire Datagrid
    in .NET
    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...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 12:01 PM. Reason: Added CODE tags.

    Leave a comment:


  • bhar
    replied to Using SQL statements in C# >NET
    in .NET
    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);

    ...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 12:01 PM. Reason: Added CODE tags.

    Leave a comment:


  • bhar
    replied to asp.net problem...
    in .NET
    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...
    See more | Go to post
    Last edited by pbmods; Oct 22 '07, 12:02 PM. Reason: Added CODE tags.

    Leave a comment:


  • bhar
    replied to how can i create dll in c#.net
    in .NET
    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...
    See more | Go to post
    Last edited by Frinavale; Apr 27 '07, 01:25 PM. Reason: emoving link to website advertising as this is considered spam

    Leave a comment:


  • bhar
    replied to vb.net project management
    in .NET
    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]...
    See more | Go to post
    Last edited by Frinavale; Apr 27 '07, 02:36 PM. Reason: Link was removed because it is considered spam

    Leave a comment:


  • bhar
    replied to How to set connection string in vb.net?
    in .NET
    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...
    See more | Go to post
    Last edited by Frinavale; Apr 27 '07, 02:37 PM. Reason: Link was removed because it is considered spam

    Leave 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...
    See more | Go to post

    Leave a comment:


  • Hi,

    T R Y this b o o k

    Database programming using vb and SQL Server 2000...
    See more | Go to post

    Leave a comment:


  • bhar
    replied to Dataset.Update synchronization
    in .NET
    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...
    See more | Go to post
    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 HTML

    Leave a comment:


  • bhar
    replied to To call an exe in asp.net
    in .NET
    hi,

    http://www.codeguru.co m/forum/showthread.php? s=&threadid=233 294

    This link may help you...
    See more | Go to post

    Leave a comment:


  • bhar
    replied to want to get data from datagrid
    in .NET
    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)
    ...
    See more | Go to post
    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 HTML

    Leave a comment:

No activity results to display
Show More
Working...