Member Avatar

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly processed data (what I mean is the data from the database plus all related data created by way of data manipulation). 2. the last view of the program? (What I mean is, when the program is restarted I want it to display the last thing the person saw; GUI and …

Member Avatar
+0 forum 22
Member Avatar

Hi, I am writing a program that allows to keep track of some racing records and to do this I need to be able to save objects on a external file and then load them with next startup of the program. As I am just a beginner I need your help to do so. I did some research read about persistence and serialization. Kinda know the concept and implementation, however I'm not sure. I dont exactly know how to preserve the pointers and pointees and just pull it off. I have two classes, driver and team class, I want to …

Member Avatar
+0 forum 2
Member Avatar

First, let me start off by saying I am using ASP.NET 2.0 with VB as the default language using Visual Studio 2005. I have a form that has an asp:panel on it that is seeded with an iniitial control. Through the use of the form, additional controls may be dynamically added to the form. The problem is that none of the dynamically added controls persist on a postback. Here's some example code the exhibits the behavior I am seeing. First, the HTML: [CODE] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="test2.aspx.vb" Inherits="test2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" …

Member Avatar
+0 forum 5
Member Avatar

I´m sorry if I haven´t investigated enough but I´m not quite an expert in hibernate and I´m tired of looking for something that won´t really solve my specific problem. What I mean is that I am a bit short of time. I have a User class that represents every single user of the system. Every User has a Set of Roles (which is an enum type) that indicates which resources the user can and cannot acces. Nothing complicated. I am using Hibernate to map this classes but I am having problems with this last part. It doesn´t bother me at …

Member Avatar
+0 forum 7
Member Avatar

[CODE] @ManyToMany (fetch=FetchType.LAZY) @JoinTable( name="confirmed_join_table", joinColumns={@JoinColumn(name="user_id")}, inverseJoinColumns={@JoinColumn(name="match_id")} ) @IndexColumn(name="position") private List<Match> confirmedMatches = null; @ManyToMany (fetch=FetchType.LAZY) @JoinTable ( name="candidates_join_table", joinColumns={@JoinColumn(name="user_id")}, inverseJoinColumns={@JoinColumn(name="match_id")} ) @IndexColumn(name="position") private List<Match> candidateMatches = null; [/CODE] This is what I have in one of the classes, the other class has the inverse association, but I don´t think it´s important. In my last thread, which I still do not know how to close, I did not get much attention so I hope I get more help in this one. This associations in the database appears as one whole jointable with all the fields together in it, and its …

+0 forum 0
Member Avatar

Hi all, I am new to C# and the visual studio express environment. I have a button on this web page, when it is clicked a method assigns a new random number to a variable but I want new clicks to add numbers to what was in the variable and not an overwrite. Please does anyone have any idea how to make the adding happen without an re assignment. Would be very grateful. Thank you

Member Avatar
+0 forum 2
Member Avatar

Hello, I know you probably get quite a few threads asking this, but the DaniWeb search didn't pull up what I was looking for. So here we go: I have a page that I've made as "private" by including my access control script at the top. The access control script starts a session, then checks to see if a username and password were POSTed, and if not, if they are in $_SESSION. If all that fails, then it displays the log in page. If it gets results though, it validates them against my MySQL database of usernames + passwords. If …

+0 forum 0

The End.