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
K

kowplunk

@kowplunk
About
Posts
64
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can't add reference for hash tables in C#.net
    K kowplunk

    hmm, maybe I should try :) Ya I did try silly. For some reason on my home machine it is readily available. On the other machine it threw an error saying that it had to be referenced, but it was no where in the reference library.

    C# csharp data-structures cryptography help

  • can't add reference for hash tables in C#.net
    K kowplunk

    I am used to VB.NET so this might be something stupid, but I can't seem to find a way to add System.Collection in C#.net after right clicking the references folder and selecting "add reference". I am trying to use a hash table but need the reference. Thanks for the help

    C# csharp data-structures cryptography help

  • accessing properties of the mdiParent from the child
    K kowplunk

    Here is the form load for the mdiParent private void frmMain_Load(object sender, System.EventArgs e) { //populate the status bar StatusBarPanel status = new StatusBarPanel(); //status.Text = "Ready"; status.AutoSize = StatusBarPanelAutoSize.Spring; sbrStatus.Panels.Add(status); sbrStatus.ShowPanels = true; //attach the child window Form frmEventList = new frmEventList(); frmEventList.MdiParent = this; frmEventList.WindowState = System.Windows.Forms.FormWindowState.Maximized; frmEventList.Show(); } Thanks for the help

    C# csharp algorithms help

  • accessing properties of the mdiParent from the child
    K kowplunk

    I have put the line break in the load event. It steps through fine, but when I call on the StatusBar property in the commend window it says: error: 'ParentForm.StatusBar' does not exist but how would the parent mdiForm not exist? Thanks for the help.

    C# csharp algorithms help

  • accessing properties of the mdiParent from the child
    K kowplunk

    here is what I have: //the property for the parent form in the child form private frmMain ParentForm { get{return (frmMain)this.MdiParent;} } //the load form method private void frmEventList_Load(object sender, System.EventArgs e) { //set the form status ParentForm.StatusBar = "Searching for events"; //StatusBar is a property in the frmMain that sets the status bar LookupEvents(DateTime.Now, DateTime.Now); ParentForm.StatusBar = "Ready222"; } using this the Parent forms status bar text does not change. No exception is thrown indiciating that there is somthing wrong with the code. I have just recently had to change over from VB.NEt so it may be something simple. Thanks for the help

    C# csharp algorithms help

  • logic within aspx page?
    K kowplunk

    with previous languages it would be easy to, for example, display a picture if a certain parameter was true, but I am having a hard time doing that in asp.net Say I have a list of articles and one of them is the featured article. Within the admin side I would like to have a picture that is displayed by one of the articles within a list, showing that it is the featured. This is what I have within a datagrid custom template and it doesn't work: if Container.DataItem("featured_article_fl") = "Y" then ...imagebutton start ImageUrl="/Pictures/Icons/featuredArticle.jpg" ToolTip="Current Featured Article" runat="server" ID="Imagebutton5"> imagebutton end... end if Thanks for the help btw asp tags are only missing because they wouldn't display in post

    ASP.NET csharp asp-net sysadmin docker help

  • loop running in background
    K kowplunk

    yip I think it was the dynamic help that was hiding behind my properties. Thanks

    ASP.NET question csharp visual-studio help

  • loop running in background
    K kowplunk

    what is visual studio doing when there is suddenly some loop that is running in the background while I am simply typing in controls. It halts the program and sometimes it will do it every 5-10 seconds. It is a real pain in the ars. is there any way to fix this? Thanks

    ASP.NET question csharp visual-studio help

  • odd problem when adding contrls to placeholders
    K kowplunk

    method 1: on my page I have a featuredItem control and within this control there is a title along with another place holder. I am having a hard time adding an item to the placeholder within the featuredItem control. When I try the std way of featuredItem.plhItem.Controls.add(someItem) it does not work and says that I can't access the protected variable. I think I worked around that by creating a public method that does the adding of the control, but haven't been able to test it yet. But why am I unable to add the control? method 2: instead of having the placeholder for the item within the featured item I simply inserted an item control instead. But I am unable to set any of the parameters from the vb for the page unless I declare the control within the vb class. FIX---> It seems that user controls have to be declared in the vb while asp controls do not, am I right in saying that? Why is this, because I have before thought that I had to declare all the controls I added to the page, but when I did that for the asp controls it through errors. Thanks for the help

    ASP.NET help winforms question

  • create user control or itemtemplate
    K kowplunk

    I want to create a simple chat page and need to have all the postings displayed. I am unsure of what way is the best to do this. I could easily create an item template for the list view that contains the messages. This would allow for an easy setup of the edit/delete/other buttons for each of the messages. But you would think that this is a good place for a control. One thing that I am unsure of in regards to user controls is the event handling. in the list view there is the even bubbling that occurs and all event handlers are contained within the listview (for this ex). So if you make your own control are the event now handled within each control or do you create a control that has an itemtemplate within it, add all the contols that you create to an arraylist (or something with the proper interface) and set that as the datasource for a list view? Thanks for the help

    ASP.NET winforms help question lounge workspace

  • keeping the listView selected Item highlighted
    K kowplunk

    :) That's it, thanks. Sorry for the dumass question, I won't do it again for a couple days.

    Visual Basic help question

  • keeping the listView selected Item highlighted
    K kowplunk

    Is there a way to do this? It would be nice to give a visual aid to the user to see which item when looking back to the list at a later time. Right now it hihghligts upon clicking on an item in the list, but then looses the highlights. Thanks for the help.

    Visual Basic help question

  • row validation
    K kowplunk

    It seems that row validation fires when any one column of the row changes, so if you have a blank form that you are inputting values into and one of the things that you have to check is that both columns must contain data, how does it not flag the row as in error when the second col is still blank because you haven't got to it yet? Thanks

    Visual Basic help question

  • validation in datagrid
    K kowplunk

    that makes sense. Thanks

    Visual Basic question help

  • validation in datagrid
    K kowplunk

    right now I am dealing with validation errors with this after the data has been processed determining if there is an error If isValid Then 'will clear the error for the row e.Row.ClearErrors() Else 'prevents the invalid changes from being submitted e.Row.AcceptChanges() End If It works, just the way that it should, but the logic is odd in that I have to AcceptChanges(). I do understand what is happening, but if someone else who is unaware of what happens in the acceptChanges method they would scratch their head. So is there a better way of doing this?

    Visual Basic question help

  • IIS or apache for server
    K kowplunk

    I guess the real question is "can you use apache as a server when using asp.net"? If you can how easy is it to setup? If you must use IIS then does IIS still have a limit of 10 users? I remember in w2k, at least the version that I had, that was all it allowed. Thanks for the help.

    ASP.NET question csharp asp-net apache sysadmin

  • silly exception question
    K kowplunk

    ok, I figured that sometime there was a few different sprocs that were run, that passing in the connection would prevent the opening and closing of each one, but I see how keeping everything together is a good thing as well. Thanks for the tips

    Visual Basic question database announcement

  • silly exception question
    K kowplunk

    I have various classes in my data access layer that are talking with the database. for all the methods I pass in the connection ref. Now if the connection object is being passed in from the outside and within the da classes there is a try catch block is it necessary to enclose the methods call within a try catch finally block to close the connection in the finally? You would think that any exceptions that are thrown will be caught internally and there for the connection will still be able to be close even if it is not in a finally block in the outer function. private sub formMethod() ... conn.open 'not sure if this has to be in the t/c block someDAMethod() conn.close 'connection should still be closed, right? end sub ..in da module public sub someDAMethod() try ... catch sqlEx as sqlException end try end sub I guess you could say that you are only catching sqlExceptions so you still have to do the other catch, but you could always catch the base exception, as long as you know that the update didn't go through properly. I am still new to dealing with exceptions properly, so if it is a dumass question sorry. I am just curious.

    Visual Basic question database announcement

  • transactions causing exceptions
    K kowplunk

    oops I will get those up in a bit, but right now some other changes have to get worked out first. thx

    Visual Basic help database announcement

  • transactions causing exceptions
    K kowplunk

    I have a couple sprocs that I wanted to enclose in a transaction. The transaction only has to assure that if one fails they all fail, I don't need to prevent updates or anything of the like, but that is somewhat irrelevant I guess. The problem is, is that as soon as the trans was put into place it always threw exceptions on the first sproc. I think I will just combine the sprocs together in sql, but I am curious to what I am doing wrong. Here is the code Public Function UpdateFieldErrors(ByRef conn As SqlConnection, ByRef dt As DataTable) As Integer 'counter of the number of records updated Dim counter As Integer = 0 Dim corrected_fl As String Dim trans As SqlClient.SqlTransaction 'submit all the corrected values and the comments to the database For Each row As DataRow In dt.Rows 'ensure that the columns that were not corrected were not submitted Try 'only require a transaction that will allow all to rollback if required 'since there is a lock on the image other users updating or querying 'the data is of no concern trans = conn.BeginTransaction(IsolationLevel.ReadCommitted) Dim cmd As New SqlCommand("dbo.mySproc", conn) cmd.CommandType = CommandType.StoredProcedure cmd.Parameters.Add("@err_id", row.Item("err_id")) cmd.Parameters.Add("@new_value", row.Item("new_value")) cmd.Parameters.Add("@comments", row.Item("comments")) 'only set the error to corrected if there is user input in the newvalue field If row.Item("new_value") = "" Or row.Item("new_value") Is DBNull.Value Then cmd.Parameters.Add("@corrected_fl", "N") Else cmd.Parameters.Add("@corrected_fl", "Y") End If cmd.ExecuteNonQuery() 'update the answer string containing all the students answers DbAnswerUpdate.UpdateAnswerString(conn, row) trans.Commit() counter += 1 Catch ex As Exception trans.Rollback() MessageBox.Show("Exception occured when inserting one of the updated rows.") End Try Next dt.AcceptChanges() Return counter End Function Thanks for the help

    Visual Basic help database 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