Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

rashadaliarshad

@rashadaliarshad
About
Posts
17
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Resolved] How to make a child form stay on the top until closed in mdi application (VB.NET 2005)? [modified]
    R rashadaliarshad

    When you go to show the form use: form.ShowDialog(); instead of: form.Show(); ShowDialog tells .net to open the form as a modal dialog instead of a standard form. here is the Solution i got from some other forum

    :- Rashid Ali -:

    Visual Basic csharp help tutorial question

  • [Resolved] How to make a child form stay on the top until closed in mdi application (VB.NET 2005)? [modified]
    R rashadaliarshad

    Hello friends, I am developing a mdi application. I have a form that takes input from user, and based on user selection , open a form as mdi child. i want the UserSelectionForm to stay on the top of all the other forms including MDI parent and any other mdi child forms until user has made any selection or cancelled the form. any help?

    :- Rashid Ali -:

    modified on Tuesday, February 26, 2008 6:11 PM

    Visual Basic csharp help tutorial question

  • How to Sort DataGridView Combobox Column?
    R rashadaliarshad

    I have a datagridview combobox column that needs to load a list of sorted "PRODUCTs". But when i try to sort the products. it gives me error saying that Datagridview column cannot be sorted..! any suggestions or way out?

    :- Rashid Ali -:

    Visual Basic help tutorial question

  • How to Update Binded Combobox value ?
    R rashadaliarshad

    . . . you need a second BindingSource and set it's DataSource and DataMember properties to the table that's going to supply the ID's and Text for the ComboBox to show. I wrote code manually to get get ID and Name fields from database. here is the code. Private Sub LoadSuppliers() m_CommandSupplier = New SqlCommand m_CommandSupplier.CommandText = "Select SupplierId, SupplierName from Suppliers" Try m_DaSupplier = New SqlDataAdapter m_DaSupplier.SelectCommand = m_CommandSupplier _**// connection has already been created in seprate Sub-Routine**_ m_DaSupplier.SelectCommand.Connection = m_ConnectionSupplier m_DsSupplier = New DataSet() m_DaSupplier.Fill(m_DsSupplier) Catch ex As Exception MsgBox(ex.ToString, MsgBoxStyle.Critical, " Get Suppliers") End Try m_DsSupplier.Tables(0).TableName = "Suppliers" **1 - it's DisplayMember to the field that's supplying the Text the user gets to see in the Combo and set the ValueMember property to the field that's supplying the ID's for those text items.** **2 - create a new Binding object and add it to the DataBindings property of the ComboBox** _Both these task are accomplished in the following code, SupplierNAme is set as Display MEmber , while the SupplierID is set a value member._ With SupplierIDComboBox .DataSource = mDsSupplier.Tables("Suppliers") .DisplayMember = "SupplierName" .ValueMember = "SupplierId" .DataBindings.Clear() .DataBindings.Add("SelectedValue", PurchaseOrderDetailsDataSet.PurchaseOrders, "SupplierId") End With End Sub the table that's supplying the data for the ComboBox. There's normally a one-to-many relationship between these two tables. The Table that supply the value for both tables is actually a Binding Source with a binding navigator to move back and forth. All these were automatically drawn when i dragged the 'PurchaseOrder' Table from Datasources window. Note: 'PurchaseOrder' table was set to draw control in 'DETAILS mode' while "PurchaseOrderDetails" table was set to 'DAtagridview mode'. Now when i run the program, the value for PurchaseOrder and PurchaseOrderDetails tables in both Details and datagrid goes fine. But when i click 'MOVE NEXT RECORD' button from BINDING NAVIGATOR. All the values in Tex

    Visual Basic help csharp database sql-server

  • How to Update Binded Combobox value ?
    R rashadaliarshad

    I am facing problems to update combo box value that is binding to a datasource ... i m using VB.NET 2005 and SQL SERVER 2000 at back. I simply created a Data Source. And added 'PurchaseOrders' Table in it. Set it to draw 'DETAILS' components. and dragged it on to the form and it draws all the controls on the form. along with a navigator and binding source, dataset added to the form. Now i have a field ... SUPPLIER ID and its component was set to a COMBOBOX. I seprately loaded this combobox with a datasource as: SupplierIDCombobox.Datasource = DsSupplier.Tables(0) SupplierIDCombobox.DisplayMember = "SupplierName" SupplierIDCombobox.ValueMember = SupplierID now when i run the program, the first SupplierID is picked by the combobox correctly. When i navigate to second purchase Order. the supplierID does not change. How to fix this problem??? anyone?

    :- Rashid Ali -:

    Visual Basic help csharp database sql-server

  • Typed Datasets
    R rashadaliarshad

    Yup , can anyone elaborate the difference between TYPED and UNTYPED DAtasets? ADVANTAGES and DIsADVANTAGES any working example of how they work? :(

    :- Rashid Ali -:

    Visual Basic question

  • Web.Config file problem... Any Help?
    R rashadaliarshad

    I developed a web application, which has two sections Client Section: that is visible to local users Control Panel: allows admin of the site to control the contents of the web application. I created a cpanel folder on the root of the web application, and all the pages and functionality of Control Panel section goes there. The sample structure of the files is as in below section: /Default.aspx 'Client Side File /contactUs.aspx 'Client Side File /Aboutus.aspx 'Client Side File /Web.config 'Main Configuration file ( admin section uses connectionstring from 'the same web.config file /AppCode/DAL/Classes.vb ' Contains all the classes used in both client and cpanel section /CPanel/Default.aspx ' Admin side File /Cpanel/UpdateContactus.aspx ' Admin Side File /Cpanel/UpdateAboutus.aspx ' Admin Side File Now problem is that, i need to Secure Pages in CPANEL by adding Authenticating process, now if i add the authentication information in /Web.Config /Main configuration file then it will apply on both client side and Cpanel side as well... but i need this authentication only in CPanel side, so what i did is add a new configuration file with appropriate instructions and a Login Page, where person trying to open CPanel will be redirected if he/she has not logged in using proper username and password. here i added those files at place /CPanel/Web.Config /CPanel/Login.aspx but when i try to open any page, it gives me an error message Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS ---- The code for Web.config ----- Any Solution? 1- Can we merge two different projects with different web.config files with each others?

    :- Rashid Ali -:

    C# help windows-admin security question workspace

  • WEb.COnfig File Problem...!!!
    R rashadaliarshad

    I developed a web application, which has two sections Client Section: that is visible to local users Control Panel: allows admin of the site to control the contents of the web application. I created a cpanel folder on the root of the web application, and all the pages and functionality of Control Panel section goes there. The sample structure of the files is as in below section: /Default.aspx 'Client Side File /contactUs.aspx 'Client Side File /Aboutus.aspx 'Client Side File /Web.config 'Main Configuration file ( admin section uses connectionstring from 'the same web.config file /AppCode/DAL/Classes.vb ' Contains all the classes used in both client and cpanel section /CPanel/Default.aspx ' Admin side File /Cpanel/UpdateContactus.aspx ' Admin Side File /Cpanel/UpdateAboutus.aspx ' Admin Side File Now problem is that, i need to Secure Pages in CPANEL by adding Authenticating process, now if i add the authentication information in /Web.Config /Main configuration file then it will apply on both client side and Cpanel side as well... but i need this authentication only in CPanel side, so what i did is add a new configuration file with appropriate instructions and a Login Page, where person trying to open CPanel will be redirected if he/she has not logged in using proper username and password. here i added those files at place /CPanel/Web.Config /CPanel/Login.aspx but when i try to open any page, it gives me an error message Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS ---- The code for Web.config ----- Any Solution? 1- Can we merge two different projects with different web.config files with each others?

    :- Rashid Ali -:

    Web Development help windows-admin security question workspace

  • Table Question
    R rashadaliarshad

    i think u can achieve the same task using Server Table Control, why you want to use html table only?

    :- Rashid Ali -:

    ASP.NET javascript html question

  • Table Question
    R rashadaliarshad

    yes, it is easy to achieve but what you have to do is to built the table (add rows and colums) dynamically at runtime in the table... e.g in code-behind file (default.vb) use if condition=true then //add code to create table with 3 rows and 5 colums elseif condition2 =true then // add code to create table with 2 rows and 2 colums elseif condition3 = true then and so on......hope it helps Note: at Design time you should just place the Table control on the place where it needs to drawn at runtime... then handle, height, width, and etc attributes programtically in code behind file

    :- Rashid Ali -:

    ASP.NET javascript html question

  • Web.Config File Problem...Please Help
    R rashadaliarshad

    I developed a web application, which has two sections Client Section: that is visible to local users Control Panel: allows admin of the site to control the contents of the web application. I created a cpanel folder on the root of the web application, and all the pages and functionality of Control Panel section goes there. The sample structure of the files is as in below section: /Default.aspx 'Client Side File /contactUs.aspx 'Client Side File /Aboutus.aspx 'Client Side File /Web.config 'Main Configuration file ( admin section uses connectionstring from 'the same web.config file /AppCode/DAL/Classes.vb ' Contains all the classes used in both client and cpanel section /CPanel/Default.aspx ' Admin side File /Cpanel/UpdateContactus.aspx ' Admin Side File /Cpanel/UpdateAboutus.aspx ' Admin Side File Now problem is that, i need to Secure Pages in CPANEL by adding Authenticating process, now if i add the authentication information in /Web.Config /Main configuration file then it will apply on both client side and Cpanel side as well... but i need this authentication only in CPanel side, so what i did is add a new configuration file with appropriate instructions and a Login Page, where person trying to open CPanel will be redirected if he/she has not logged in using proper username and password. here i added those files at place /CPanel/Web.Config /CPanel/Login.aspx but when i try to open any page, it gives me an error message Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS ---- The code for Web.config ----- Any Solution? 1- Can we merge two different projects with different web.config files with each others?

    :- Rashid Ali -:

    ASP.NET help windows-admin security question workspace

  • Paging a DataList?
    R rashadaliarshad

    Hi friends, i desprately need a method to do paging a Datalist(ASP.NET), that will be displaying data using SQLDataSource. Any help?

    :- Rashid Ali -:

    Visual Basic csharp asp-net help question

  • Paging through Recordset and Database
    R rashadaliarshad

    http://www.yourdomain.com/yourpaging.aspx?page=1.[^] can u provide any examples for this method?

    :- Rashid Ali -:

    ASP.NET database performance tutorial

  • Paging a DataList?
    R rashadaliarshad

    Kindly help me, paging a Datalist control, i have no idea how can i do it. Datagrid often have a paging proeprty, that when set to True automatically handles paging, but what about Datalist??? any help?

    :- Rashid Ali -:

    ASP.NET question help

  • replacing text in a text file on server...
    R rashadaliarshad

    hello friends... i m facing problems, while appending a file with (.txt) extention on server. I have a textarea on in a web page, user types some text and clicks save button. and the text in textarea must be replaced with the text in file on server named ( lets say mytextfile.txt). i dont know any hint of how can i achieve this task... any help?

    :- Rashid Ali -:

    ASP.NET question sysadmin help

  • Null Reference Exception for Array Problem... [modified]
    R rashadaliarshad

    Friends, i got ma problem fixed:) // One Dimentional Array to hold String Values fetched from Database... Public myProfileNames() As String <-- Wrong Initialization public myprofileNames(10) as String <-- Problem Solved:-D But i still want to know, what if i dont know, how mnay elements my array gona contain, how to dynamically initialize array elements. anyone there for help?

    :- Rashid Ali -:

    Visual Basic help database data-structures question

  • Null Reference Exception for Array Problem... [modified]
    R rashadaliarshad

    Problem: When i fetch a list of column values from database and store them into a String One dimentional Array, it gives me exception error "Null Reference", kindly can anyone help me out, whats wrong with my code? // ========================================================================= // This is Where Problem comes - Complete code in given below // ========================================================================= myProfileNames.SetValue(pfDataSet.Tables("TimerDetails").Rows(j).Item("ProfileName").ToString, j) MsgBox(myProfileNames.GetValue(j)) // ========================================================================= Code: Public Class DataAccess Private m_strAppPath As String Private m_connectionString As String Public m_connectionObject As New OleDbConnection Private dataAdapter As OleDbDataAdapter Private pfDataSet As DataSet // One Dimentional Array to hold String Values fetched from Database... Public myProfileNames() As String // Public Subroutine that will be called through an instance of this // class. Public Sub LoadProfiles() Dim ProfileCount As Integer m_strAppPath = Directory.GetCurrentDirectory m_connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & m_strAppPath & "\TimerData.mdb" Try If Not (m_connectionObject.State = ConnectionState.Open) Then m_connectionObject.ConnectionString = m_connectionString m_connectionObject.Open() m_ConnectionStatus = True End If dataAdapter = New OleDbDataAdapter("Select * from ProfileMaster", m_connectionObject) pfDataSet = New DataSet("TimerDetails") dataAdapter.Fill(pfDataSet, "TimerDetails") // GET the No. of Rows that exists in Dataset ProfileCount = pfDataSet.Tables("TimerDetails").Rows.Count If Not (ProfileCount = 0) Then Dim j As Integer For j = 0 To (ProfileCount - 1) // ========================================================================= // This is Where Problem comes Stating that Null Refrence Exception occured // ========================================================================= myProfileNames.SetValue(pfDataSet.Tables("TimerDetails").Rows(j).Item("ProfileName").ToString, j) MsgBox(myProfileNames.GetValue(j)) // ==================================================

    Visual Basic help database data-structures question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups