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
T

thedom2

@thedom2
About
Posts
56
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • click a button on a webcontrol but retain focus of current control on the form
    T thedom2

    Hi All is it possible to click a button on a web user control and have it retain the focus of the current control on the webform ? I am trying to integrate the cool TCKeypad Numeric Keypad Web User Control[^] into a webform and want the output of the button to go to the current control of a textbox on my webform rather than the built in textbox of the control. Any ideas or suggestions would be appreciated Cheers Dom

    ASP.NET c++ html com question

  • Searching Sql Table for Image using byte array parameter
    T thedom2

    Hi All Im trying desparately to search a sql table image field passing in a parameter which is a byte array. I am having no luck whatsoever. I get this error when i run my code below :The data types image and image are incompatible in the equal to operator. Public Sub SearchByteArray(ByVal ByteArr() As Byte) Dim strSQL As String Dim oConn As SqlConnection Dim oCmd As SqlCommand Dim oBLOBParam As SqlParameter Dim str As String = "" ' Try ' Create and open connection object oConn = New SqlConnection("data source=XXX;initial catalog=CustomApps;user id=sa;pwd=xxx;") oConn.Open() ' Insert statement ' Notice that @BLOBValue is a placeholder for the actual data strSQL = "SELECT BlobField from MyImageTable where BlobField = (@BLOBValue)" ' Create a command object oCmd = oConn.CreateCommand() ' Set SQL statement oCmd.CommandText = strSQL ' Create a command parameter oBLOBParam = New SqlParameter("@BLOBValue", SqlDbType.Image, ByteArr.Length, ParameterDirection.Input) ' Finally, set the actual data oBLOBParam.Value = ByteArr ' Add this parameter to the command oCmd.Parameters.Add(oBLOBParam) ' Execute SQL statement MessageBox.Show(oCmd.ExecuteNonQuery()) ' Close the connection oConn.Close() End Sub Can anyone help or assist please ?

    Visual Basic help database algorithms data-structures question

  • Get Fullpath from treeview when node selected
    T thedom2

    can anyone help me with this...any samples in vb would be great i have already searched google and had no luck. thanks

    ASP.NET help

  • AutoComplete Extender results in textbox have breaks between each item [modified]
    T thedom2

    How do I remove the breaks between items in my autocomplete extender see picture in link ? http://img212.imageshack.us/img212/9526/cplu1.jpg

    modified on Thursday, June 12, 2008 9:07 PM

    ASP.NET question

  • call a function from aspx in vs2008
    T thedom2

    thanks mate

    ASP.NET help sysadmin tutorial

  • call a function from aspx in vs2008
    T thedom2

    can someone help with useful code i have the following in my codebehind

    Public Function GetCust() As String
    Return Session("CustCode")
    End Function

    And this in the aspx page

    <asp:Label ID="Label1" runat="server" Text=<%# GetCust() %> ></asp:Label>

    Can someone please tell me how to fix this and not to do it another way as i have to implement this method. I have simplified the above to get the point across. thanks i hope someone can help its annoying me badly..

    ASP.NET help sysadmin tutorial

  • add session variable to querystring in aspx not thru codepage
    T thedom2

    can you show suggestion ?

    ASP.NET tutorial question

  • add session variable to querystring in aspx not thru codepage
    T thedom2

    can this be done anyone ? obviously the code below does not work but if someone knows how to embed session varible within querystring in the aspx page that would be awesome. thank anyway ppl something like this :

    hyperlinkfield headertext="User Name" datatextfield="username" datanavigateurlformatstring="test.aspx?session("usercode")

    ASP.NET tutorial question

  • Can you have a gridview within a modalpopup in ajax ?
    T thedom2

    thanks i have searched google already this was my last resort... thanks anyway

    ASP.NET question

  • Can you have a gridview within a modalpopup in ajax ?
    T thedom2

    i'll repeat the question can you have a gridview embedded within a modal popup in ajax? not can you have a modal popup created from a gridview !

    ASP.NET question

  • Can you have a gridview within a modalpopup in ajax ?
    T thedom2

    i have tried it and it does not work - but alot of my project don't work :) anyone ?

    ASP.NET question

  • A Null reference exception could occur at runtime
    T thedom2

    thanks everyone :) doh!

    Visual Basic help sales

  • A Null reference exception could occur at runtime
    T thedom2

    OK people I am a hack programmer - think of me as the homer simpson of programming See my code below and please help me eliminate the "Null reference exception" warning/error I get.. Thanks I know this is a easy and i am a d*mb one

    Public Overloads Function LoadOrdersData() As Data.DataSet
    Dim sqlConn As New SqlConnection(ConfigurationManager.ConnectionStrings("SqlConn3").ConnectionString)
    Dim sqlDa As New SqlDataAdapter("spBackOrders", sqlConn)
    Dim sqlDs As New Data.DataSet

        sqlDa.SelectCommand.CommandType = Data.CommandType.StoredProcedure
        sqlDa.SelectCommand.Parameters.AddWithValue("@Customer", Session("CustCode"))
        sqlDa.SelectCommand.Parameters.AddWithValue("@Customer2", Session("CustCode2"))
    
        Try
            sqlConn.Open()
            sqlDa.Fill(sqlDs)
            sqlConn.Close()
            Return sqlDs
        Catch
    
        Finally
            If sqlConn.State = Data.ConnectionState.Open Then
                sqlConn.Close()
            End If
        End Try
    End Function
    
    Visual Basic help sales

  • ajax postbak question
    T thedom2

    i have a gridview within a scriptmanager and within the gridview i have a templatefield which contains a hyperlink control which when clicked resubmits this page with some query strings attached. see code below:

    <asp:TemplateField HeaderText="Order">
    <ItemTemplate>
    <asp:HyperLink ID="Hyperlink3" runat="server" NavigateUrl='<%# "default.aspx?SearchType=Wip&CustPO=" & rtrim(DataBinder.Eval(Container, "DataItem.PO#")) & "&StockCode=" & DataBinder.Eval(Container, "DataItem.MStockCode") %>'
    Target="_self" Text='<%# DataBinder.Eval(Container, "DataItem.PO#") %> ' ToolTip="Check Work In Progress!">
    </asp:HyperLink>
    </ItemTemplate>
    </asp:TemplateField>

    How can i catch this event when the user clicks the hyperlink from the gridview. obviously page.ispostback or ScriptManager1.IsInAsyncPostBack do not catch this event. ? any ideas people - ajax newbie so forgive my ignorance Cheers

    ASP.NET question database sysadmin docker

  • Webservice Issue / Application Pool - Network Indentity
    T thedom2

    Hi All I have a web service that was not working and bringing up the dreaded internal server error page. I have this web service working on another server so i know code wise it works but could not get it to work on my new server. I tried other web services on my new server and they work fine. Just not this particular one. i changed the network indentity to local system in the application pool and the web service works so was hoping someone had any clues where i should look to fix this issue as i dont want it running under the local system identity. one last thing this webservice uses a com object. any help appreciated cheers

    ASP.NET help sysadmin wcf com

  • Object reference not set to an instance of an object.
    T thedom2

    thanks for youre help :) sorry for all questions

    ASP.NET com help tutorial

  • Object reference not set to an instance of an object.
    T thedom2

    can you show me please if possible ? thank you

    ASP.NET com help tutorial

  • Object reference not set to an instance of an object.
    T thedom2

    but the code remains the same from the example on the website the only difference is i have incorporated a code behind file ? so i dont quite understand why it works when there is no code-behind ????

    ASP.NET com help tutorial

  • Object reference not set to an instance of an object.
    T thedom2

    why did it work when there was no code behind form ?

    ASP.NET com help tutorial

  • Object reference not set to an instance of an object.
    T thedom2

    Hi All I am getting a excpetion when i run my code, it was taken from the below url http://www.sitepoint.com/article/net-shopping-cart-datatables[^] I have run the code when there is no code behind page as per the authors page and it runs fine but when i try and recreate the code with a code behind I run into the obj.reference exception can someone please tell me how to correct this error. Code Below Thanks Protected Sub AddToCart(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim objDT As System.Data.DataTable Dim objDR As System.Data.DataRow objDT = Session("Cart") Dim Product = ddlProducts.SelectedItem.Text Dim blnMatch As Boolean = False For Each objDR In objDT.Rows <-------this is were the exception occurs!!!!!! If objDR("Product") = Product Then objDR("Quantity") += txtQuantity.Text blnMatch = True Exit For End If Next If Not blnMatch Then objDR = objDT.NewRow objDR("Quantity") = txtQuantity.Text objDR("Product") = ddlProducts.SelectedItem.Text objDR("Cost") = Decimal.Parse(ddlProducts.SelectedItem.Value) objDT.Rows.Add(objDR) End If Session("Cart") = objDT dg.DataSource = objDT dg.DataBind() lblTotal.Text = "$" & GetItemTotal() End Sub

    ASP.NET com help tutorial
  • Login

  • Don't have an account? Register

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