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
N

NetBot

@NetBot
About
Posts
58
Topics
32
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Creating an instance of a VB class in C# class
    N NetBot

    But thats not feasible. That would result in redundancy.Is it the only way to tackle this????

    ASP.NET

  • Creating an instance of a VB class in C# class
    N NetBot

    Hi all, This may be a naive question, but i am not able to understand. I have a website in which i have used 2 classes written in different languages(C# and VB). They are stored in app_code as Csharp Class1.cs Class2.cs Vb Class3.vb Class4.vb Now i have to create an object of a vb class in my C# class. But the intellisense doen`t show up the vb class in my c# class file. However it allows me to create an object of C# class in my other VB class. How can i create an object of vb class in C# class???? Please excuse if its in a wrong forum :-\ :-\ :-\

    ASP.NET

  • Regarding Crystal Reports that comes integrated with VS 2005
    N NetBot

    Solution found... Just use in the foll code in your page load event Dim paramField As New ParameterField() Dim paramFields As New ParameterFields() Dim paramDiscreteValue As New ParameterDiscreteValue() paramField.Name = "@param1" paramDiscreteValue.Value = Request("Trans_no").ToString paramField.CurrentValues.Add(paramDiscreteValue) paramFields.Add(paramField) CrystalReportViewer1.ParameterFieldInfo = paramFields

    ASP.NET help question database visual-studio

  • Regarding Crystal Reports that comes integrated with VS 2005
    N NetBot

    Hi all, I don`t know whether it`s the right forum to ask this question, i had some problems using the crystal reports. Well the first problem is the crystal report that comes bundled with VS 2005 doesn`t support newline characters set through code behind. So to solve the issue you have to add the stored proc in the field explorer and drag in the field to report and tick the check box in field format to "can grow". But then the proc has an input parameter which it receives from the querystring. I tried doing rpt.SetParameterValue("@param1", Request("Trans_no").ToString) but it always asks for this parameter before loading the report. Instead it should take it from the query string. Does any one know how do i achieve this...

    ASP.NET help question database visual-studio

  • Smtp Mail
    N NetBot

    Don`t worry... Its ust a security constraint.You mail won`t be sent,but stored in the "C:\Inetpub\mailroot\Queue" folder. Once you deploy ur application on production server, just change the settings from localhost to your smtp server.

    ASP.NET csharp html asp-net help

  • database
    N NetBot

    jds1207 wrote:

    so the same rows will not be inserted

    so u don`t wan`t to insert anything...

    jds1207 wrote:

    I just need to know how to not insert the same row twice

    But now you are saying u need to insert it twice.... Pls be a bit more clear every time u post a question, otherwise u ll keep howling like a donkey...

    ASP.NET database tutorial question

  • How to store audio files in sqlserver 2000?
    N NetBot

    Although i would recommend u not to store audio files in sql, rather u should store them in ur file system, I guess you need to store them in sql as BLOB type ie in a byte stream. While fetching it from sql again u have to convert again this byte stream to ur suitable format(audio).

    ASP.NET database help tutorial question

  • Problem with gridview checkbox [modified]
    N NetBot

    haripinna wrote:

    GridViewRow row = gv.Rows[i]; CheckBox chkbox = (CheckBox)row.FindControl("chkSelect")

    Oh what code have u posted. I can`t get head or tails out of it..Pls post the entire code so that we can understand your logic implementation.

    ASP.NET help css database

  • Proble with Custom property used to remove duplicates
    N NetBot

    Hi all, I have a Gridview with with 4 columns....Brand,Category,Item,Stock The user wants that the for all items belonging to same Brand and category, the Brand and Category needs to be shown only once. For this i wrote the following code but it doesn`t seems to work...

    Public Class GridItem
    Dim _brand As String
    Dim _cat As String

    Public Sub GridItem()
        'Constructor
        \_brand = ""
        \_cat = ""
    End Sub
    
    Public Property Brand() As String
        Get
            Return \_brand
        End Get
        Set(ByVal value As String)
            \_brand = value
        End Set
    End Property
    
    Public Property Category() As String
        Get
            Return \_cat
        End Get
        Set(ByVal value As String)
            \_cat = value
        End Set
    End Property
    

    End Class

    Sub ItemGrid_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)

        If e.Row.RowType = DataControlRowType.DataRow Then
            Dim GI As New GridItem
            GI.Brand = e.Row.Cells(0).Text
            GI.Category = e.Row.Cells(1).Text
            If uniquearr.Contains(GI) Then
                e.Row.Cells(0).Text = ""
                e.Row.Cells(1).Text = ""
            Else
                uniquearr.Add(GI)
            End If
        End If
    End Sub
    

    uniquearr is declared global.Any help would be appreciated

    ASP.NET design help

  • A very simple query.. but i can`t get it done
    N NetBot

    I have put on some controls on page and i am using AJAX... Item ]]>" SelectCommand="Fill_Price_Item_Dropdown" SelectCommandType="StoredProcedure"> Date From: ![](../images/CalImage.gif) targetcontrolid="TextBox_Date_From"> To ![](../images/CalImage.gif) targetcontrolid="TextBox_Date_To"> Zone

    ASP.NET database

  • Can some body convert this c# code to VB.NET
    N NetBot

    sorry but the foll line doesn`t seems to convert Dim controlQueue As Queue = New Queue(New(){container()})

    ASP.NET csharp docker data-structures

  • Can some body convert this c# code to VB.NET
    N NetBot

    public static Control AdvancedFindControl(this Control container, string controlId) { Queue controlQueue = new Queue(new[] { container }); Control currentControl; while (controlQueue.Count > 0) { currentControl = controlQueue.Dequeue(); foreach (Control child in currentControl.Controls) { controlQueue.Enqueue(child); } if (currentControl.ID == controlId) return currentControl; } return null; } thanks in adv

    ASP.NET csharp docker data-structures

  • Help retaining textbox values
    N NetBot

    Thanks for replying...but i sorted out the issue. The following link helped me a lot http://geekswithblogs.net/ranganh/archive/2007/05/10/112390.aspx[^]

    ASP.NET javascript help

  • Help retaining textbox values
    N NetBot

    Hi, Recently i converted my project from 1.1 to 2.0. I have a page where the user enters some numbers in 4 text boxes and 10 values are calculated using some formulas with javascript. When i click save button these 10 values were available in my code behind. But when i converted to 2.0, the 10 textboxes show blank values....what should i do... pls help....

    ASP.NET javascript help

  • Maintain Value during postback
    N NetBot

    Hi all, I have a Dropdown of items which on "onchange" eevent fires an XMLHttprequest to calculate its Mrp. I m showing this mrp in a label field. I m setting the value of the label using javascript like document.getElementById("Label_MRP").innerHTML=xmlHttp.responseText But when i submit the values Label_MRP.Text yields me null. What can be the problem????BTW Label_MRP is an asp Label control.

    ASP.NET javascript help question

  • Problem in sorting datagrid in ASP.NET 1.1
    N NetBot

    Venkatesh Mookkan wrote:

    Check whether you have assigned value in the SortExpression of each BoundColumns. SortExpression might be the column name which is use to sort the GridView.

    I haven`t explicitly specified the sortexpression in the .aspx page. for your reference i m giving you the code Sub FillGrid() cmd = New SqlCommand cmd.Connection = con cmd.CommandText = "List_Party_Info" cmd.CommandType = CommandType.StoredProcedure sda = New SqlDataAdapter sda.SelectCommand = cmd ds = New DataSet sda.Fill(ds) CustGrid.DataSource = ds CustGrid.DataBind() Session("Data") = ds ValidateGrid() End Sub above code is used for binding the grid and the following is the sort command Private Sub CustGrid_SortCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) Handles CustGrid.SortCommand Dim ds1 As DataSet = CType(Session("Data"), DataSet) Dim dv As DataView = ds1.Tables(0).DefaultView dv.Sort = e.SortExpression FillGrid() End Sub Html Code but this event doesn`t fire..Whate can be the problem???

    ASP.NET csharp asp-net algorithms help question

  • Problem in sorting datagrid in ASP.NET 1.1
    N NetBot

    hi all, I have a datagrid with all bound columns and autogenerate columns =false. The problem is the datagrid headers have not become clickable even afer i have made allow sorting=true.They become clickable only if i make autogenerate columns=true. What can be the problem???? Thanks in adv!!!

    ASP.NET csharp asp-net algorithms help question

  • Databas connection with java script
    N NetBot

    You can do it using Ajax only. If u r using VS 2005, u can use the Ajax control toolkit for this purpose

    Database java database tools tutorial

  • Help in query design
    N NetBot

    Hi all, following is my yable schema Tic_pk | Tic_Denom_No | Tic_start_no | Tic_end_no -------------------------------------------------- 100 | 5 |111112411| 111112510 101 | 5 |111112511 | 111112610 102 | 5 |111112611 | 111112710 all i want that when user selects a Tic_denom, a start num and an end number the middle record should also b considered eg: tic_denom_no=5 startno:111112411 end no: 111112710 the middle record should also be returned because the start and end of the middle rec also falls in the range.. pls help thanks in adv

    Database database design xml help

  • Does updating view updates the table?
    N NetBot

    pmarfleet wrote:

    BTW, it's table, not tabel.

    oh... sorry it was a typo. So how do i create a view such that the actual data is not altered. I mean if i wan`t to test some queries on data. This is an ideal situation in online databases :-\

    Database database help question announcement
  • Login

  • Don't have an account? Register

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