|
I started investigating the possibilities of NHibernate yesterday and my fisrt conclusion was: Promising technology and stable.
Anyone else working with nhibernate, and want to share his/her experiences with it?
Also I got a question about ms access databases. Can I use them with NHibernate? Anyone did this before?
WM.
What about weapons of mass-construction?
|
|
|
|
|
You'd be much better off asking this question on the SourceForge boards for the project. It's very unlikely this post will stay on thefront page of the forum long enough for anyone with any experience to see it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Actually this post can be closed
I posted a similar message on sourceforge and experimented in the mean time. The result of the experimentation is that:
- MS Access is limited in the number of joins possible
- It does work with NHibernate
- It's time for me to go check out ms sql for the current project I'm planning
WM.
What about weapons of mass-construction?
|
|
|
|
|
When I change the font in NOTEPAD, it apply to all text. I just want to change sellected text What I have to do ??
Thank.
|
|
|
|
|
Whether you can change the font for parts of your text or the whole control only depends on the type of control you're using.
TextBox supports only one type of font, RichTextBox supports several fonts.
They're both well-documented in the framework reference.
mav
|
|
|
|
|
What does this have to do with C#???
Notepad only allows one font. If this not satfisfies you than use another editor (or write your own).
|
|
|
|
|
He's right about this not being a C# question. But what you're not understanding is this is the font Notepad is using the display the text file that is loaded. The font choice is NOT saved with the file it's editing.
Wordpad on the other hand uses a RichTextBox, where formatting text IS supported and fonts choices are saved in the file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hallo...
I'm trying to develope (just for study) a simple chat application using clinet/server socket.
The problem is: how can I test the application without using VMWare or other virtual machines programs??
Thanks
CometKeeper... bye from Italy
|
|
|
|
|
Why dont you just start the server and several clients on the same machine? For simple functionality tests this will do it. And when you are finished than ask a friend to make some real tests with you
|
|
|
|
|
Asside of testing, you could review your code for any hard-coded ip-adresses or hostnames. This will almost in any case do the trick. If you don't have those hard-coded, you should be able to run the chat program on any windows computer
WM.
What about weapons of mass-construction?
|
|
|
|
|
Hello,
I'm programming in .net enviroment (asp.net in c#).
i would like to ask two seperate questions:
question 1
I would like to find control in a form during run-time using "this.Page.FindControl("ctl")"
the problem is that the control is nested somewhere inside (i.e inside panels or place holders) thus when running the above command i recieve nothing.
how can i find the control?
must i create a function that loop on the controls of the page and when it reachs a control that has container, it searches inside (recursive)?
is it not bad for performances?
question 2
I have a photo gallery divided into pages. the pictures are shown in DataList.
Above each photo i have a checkbox which alow the user to select it.
When moving between pages I would like the application to "remember" the checkbox that were chosen for two reasons:
1. when the user return to a page were several photos were selected, their checkbox will be checked.
2. when the user press a "send" button, a list of all the photos will be send (not only those that are shown on the current page).
Please advice how to do so.
Eran Sakal.
|
|
|
|
|
|
for question 1, are you searching for a Control whose Id value you set at design-time? that is, can you use
document.getElementById(knownControlId)
in client-side javascript?
for question2, I'd try using
<input type="hidden" id="ipt_[associated Image Id]" value="false" />
then use script (I'm big on client-side script) to handle the checkbox onclick event.
function checkboxClicked(checkBox){
var sId = checkBox.id;
if (sId){
// use a naming convention to convert to the id of the input
var inputElem = document.getElementById(sId);
if (inputElem && inputElem.value) {
inputElem.value = "true";
}
}
}
Then add onclick="checkBoxClicked(this);" for each checkbox.
This approach, although it relies on a naming convention, allows you to have access to the information on both server and client side.
HTH
|
|
|
|
|
When using a button on a form to launch a process.
How can I prevent unintentional recursion.
If you do fast multiple clicks of the button it runs the process multiple times.
I have tried disabling the button on Form1 while running the process.
It appears that multiple events are queued in the message queue before running the process.
Thanks Steve
|
|
|
|
|
An easy solution for your problem is to keep a flag for the process to start.ie when ever you see the flag true do not initiate the process.On your button click set this flag to true and at the end of the process set it back to false.Check the status of this flag before initiating the process.
James Poulose
|
|
|
|
|
I was about to post this when I read your reply. Decided to go ahead and post anyway.
/// message
Assuming you've assigned an EventHandler delegate from a private method on the Form to handle the Button's Click event, could you set a private flag, and test its value before launching the Process? Something like the pseudo-code below, so you can ignore the Button.Enabled property? (and so the Button doesn't have to know anything about the Process or the Form?)
private void HandleButtonClick(object sender, EventArgs e){
// at the beginning
if (!this.canLaunch) return;
// set the flag before launch
this.canLaunch = false;
Process targetProcess = new Process();
// set EnableRaisingEvents
targetProcess.EnableRaisingEvents = true;
// assign exit event handler
targetProcess.Exited += new EventHandler(this.TargetEnded);
targetProcess.Start(...);
}
// process.Exited handler
private void TargetEnded (object sender, EventArgs e){
this.canLaunch = true;
}
// if other objects need to know:
public bool LaunchEnabled {
get { return this.canLaunch; }
}
HTH
JSF
|
|
|
|
|
The following code does not prevent a fast double click on the button and it still runs multiple times.
I used a textbox to display the count of the number of times the process is executed.
#region Using directives
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
#endregion
namespace ClickMe
{
partial class Form1 : Form
{
public int counter = 0;
public canLaunch Busy = new canLaunch();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (!this.Busy.can_Launch)
{
this.Busy.can_Launch = true;
this.button1.Enabled = false;
for (long i = 0; i < 100000000; i++) ;
counter++;
this.textBox1.Text = counter.ToString();
this.Busy.can_Launch = false;
this.button1.Enabled = true;
}
}
}
public class canLaunch
{
private static bool busy = false;
public canLaunch()
{
}
public bool can_Launch
{
get
{
return busy;
}
set
{
busy = value;
}
}
}
}
|
|
|
|
|
hi
i want to make a background in my directx project of a sky
i wanna it as a static picture where the 3d objects are in front of it or something similar
thanks for help
|
|
|
|
|
1. Create a Sprite[^] object. You'll be reusing this, so keep it in your project class, and do it in your initialization code.
2. Create a texture with your sky picture using TextureLoader.FromFile[^]. You'll be reusing this too.
3. Right after your Device.Clear() call and right before your 3D objects get drawn, call Sprite.Begin, Sprite.Draw or Sprite.Draw2D, Sprite.End.
|
|
|
|
|
I developed internet banking wesite.
For that I want to generate a report who are the customers logged in last 2 days
in diagram form.
In X-axis hours.
In Y-axix No.of customers
please help how can i do that.
the person who answered will be appreciated .
|
|
|
|
|
|
the administrator can see all the customers who loggeg in last 2 days
It must generate customers in datagrid that i know that
but i want to get in graph form
No.of cuctomers in one by one hour
i am maintaining a table. sno datetime customername
according to datetime field I want to get graph
is it possiable
|
|
|
|
|
I am using a Windows 2000 Professional computer with all of the components installed, and with Visual Studio installed. When I try to run the ASP.NET portion of the program, it creates a site at http://localhoast/websitename/ and creates the main form on the screen. However, when I add some controls to the webform1.aspx and attempt to build and browse, it does not display any of those controls. When I look at the source code, it is provided accurately but does not render to the browser. Could somebody kindly explain to me how to correct this problem. Would really appreciate it!!!
|
|
|
|
|
There are several things you could check.
- Try running aspnet_regiis -i (this can be find in the framework directory in windows)
- Check if all the <asp: ...=""> tags are inside a tag.
WM.
What about weapons of mass-construction?
|
|
|
|
|
be sure that you have saved all your coding pages in your project. and notice if your IIS's Web Service Extensions - ASP.net's status is allowed.
good luck!
|
|
|
|