|
|
Thanks, but no dice - Environment.NewLine.Insert(0, "sometext") does not put a line break into the Tooltip, Environment.NewLine has no effect either this thing seems bent on ignoring whitespace.
my code lokks like this:
H.ToolTip = "Date of Order: " + Convert.ToDateTime(dataread["DateStamp"].ToString()).ToString("MM/dd/yyyy HH:mm") + Environment.NewLine.Insert(0, "sometext");
|
|
|
|
|
Perhaps something like this?[^] Btw this would have been more appropriate in the ASP forum.
|
|
|
|
|
I have no idea if this actually helps you, but you are using Environment.NewLine the wrong way. It's used to insert a new line like this:
string s = "Ladies and gentlemen..." + Environment.NewLine + "Welcome to my new lair!";
Cheers,
Vıkram.
I don't suffer from insanity, I enjoy every moment of it.
|
|
|
|
|
Thanks for the pointer,
I have unfortunately come to the conclustion after trying even an ASCII carriage return that the Web Hyperlink Tooltip displays all whitespace as a single space. So, I will either have to clutter an already busy dynamic display or figure out how to get the AJAX to update just my popup panel instead of the entire page.
|
|
|
|
|
This is an ASP.NET question, you are more likely to get better help in the ASP.NET forum.
HTML collapses all contiguous whitespace into a single whitespace. If you want to use multiple whitespace characters, use For the line break, have you tried <BR> ? I have no idea if it will work in your case, but that's the line break tag in HTML.
Sorry if you know all of this: I'm assuming you're a beginner, no offence meant.
Cheers,
Vıkram.
I don't suffer from insanity, I enjoy every moment of it.
|
|
|
|
|
None taken, yes and \n is the first thing I tried actually, no I am definately not a beginner at this but sometimes one has to look at the basics which can become more difficult the more experienced one becomes.
Thanks for your thoughts on this, I am going to persue another solution.
|
|
|
|
|
Hi,
I'm currently sparetime coding on a neural network analyzer of Kismet (Wlan) data.
Project language is c# (.net 2-3.5)
As NN I'm using NeuronDotNet-3 or encog-1.1.0
Current state:
* Read data from logfiles
* Sort data into Lists<points> devided by track and BSSID
* work in progress: Analyse input data and complete field calculation with a FeedForward BackPropagation NNetwork
* ToDo: display calculated data, calculated center of field
As sampled input data has a lot of errors, the NN is my current problem. Is there anybody to contribute to this project? It will be licensed under LGPL or something similar.
If anybody is interested, please write a short mail with the title "Neural Network KisLyzer" to:
dhg8641 /\a_t/& g(m)x [dot.t] net
Source is maintained on a public subversion server and my be moved to sourceforge, if projekt is progressing.
Backgrund: Mathematical analysis works in free space or with a lot of calculation power and exact placement of walls and fences.
If these parts are not given, the analysis has to follow other rules. A neural network seems to produce the best fit.
If there are some interested people, I'll publish a webpage with the current source and something like a dev-blog.
current code version of pre-alpha NN-code (NeuronDotNet-3):
public List<clstypedatapoint> CalcSigmoidSignal(List<clstypedatapoint> sampleData, List<clstypedatapoint> requestPoints)
{
updateLogDelegate("Initializing samples");
updateProgressMDelegate(10);
List<clstypedatapoint> calcData = new List<clstypedatapoint>();
foreach (ClsTypeDataPoint p in sampleData)
{
ClsTypeDataPoint pt = p;
pt.Signal = (p.Signal - 128) / 256;
calcData.Add(pt);
}
updateLogDelegate("Initializing neural network.");
updateProgressMDelegate(20);
LinearLayer inputLayer = new LinearLayer(2);
SigmoidLayer hiddenLayer1 = new SigmoidLayer(this.neuronCount);
SigmoidLayer hiddenLayer2 = new SigmoidLayer(this.neuronCount);
SigmoidLayer outputLayer = new SigmoidLayer(1);
BackpropagationConnector bp1 = new BackpropagationConnector(inputLayer, hiddenLayer1);
BackpropagationConnector bp3 = new BackpropagationConnector(hiddenLayer1, hiddenLayer2);
BackpropagationConnector bp2 = new BackpropagationConnector(hiddenLayer2, outputLayer);
bp1.Momentum = momentum;
bp2.Momentum = momentum;
BackpropagationNetwork network = new BackpropagationNetwork(inputLayer, outputLayer);
network.SetLearningRate(learningRate);
outputLayer.Initializer = new ZeroFunction();
hiddenLayer1.Initializer = new RandomFunction();
network.Initialize();
int progress = 0;
network.EndEpochEvent += new TrainingEpochEventHandler(delegate(object senderNetwork, TrainingEpochEventArgs args)
{
progress++;
if (progress % 1 == 0)
{
updateProgressTDelegate(((int)((progress) * 100) / trainingCycles)%100);
updateLogDelegate("SquaredError: " + network.MeanSquaredError);
}
});
updateLogDelegate("Adding training data.");
updateProgressMDelegate(30);
TrainingSet trainingSet = new TrainingSet(2, 1);
foreach (ClsTypeDataPoint p in calcData)
{
trainingSet.Add(new TrainingSample(new double[] { p.Longitude, p.Latitude }, new double[] { (p.Signal)}));
}
updateLogDelegate("Training network.");
updateProgressMDelegate(50);
network.Learn(trainingSet, trainingCycles);
network.StopLearning();
updateProgressTDelegate(0);
updateLogDelegate("Calculating field.");
updateProgressMDelegate(90);
int reqCnt = requestPoints.Count;
int cnt = 0;
foreach (ClsTypeDataPoint p in requestPoints)
{
cnt++;
if ((cnt % 100) == 0)
updateProgressTDelegate((int)(100 * (cnt) / reqCnt));
double[] ret;
ret = network.Run(new double[] { p.Longitude, p.Latitude });
p.Signal = ret[0];
}
updateProgressTDelegate(0);
updateProgressMDelegate(0);
return requestPoints;
}
</clstypedatapoint></clstypedatapoint></clstypedatapoint></clstypedatapoint></clstypedatapoint>
|
|
|
|
|
salam sir;
how can made student form application in C#.net and login form?please send me coding and tutorial
thanks sir
mohammedali
|
|
|
|
|
I AM NEW USER OF THIS FORUM.PLEASE HELP ME HOW CAN MADE CALCULATOR APPLICATION IN C#.NET WINDOWS APPLICATION?
how can made login user form application in c#.net?
please you will help me about how can made marks sheet project in vb.net or c#.net?
how can made msn messenger or windows messenger in vb.net?please send me coding of this application and send me msn messenger application in vb.net
how can made login form in vb6 and vb.net?please send me coding
how can made Login Form in c#.net?how can coding any easy in dot net or c#.net?please send me any software
HOW CAN MADE MESSENGER IN C#.NET?HOW CAN MADE STUDENT FORM IN C#.NET?
how can made clinic project in c#.net?
This is ridiculous, buy a book and at least try to learn.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
which books is best?
mohammedali
|
|
|
|
|
|
plz help me applicaton form in c#.net and loginform
|
|
|
|
|
I'd start with my answer to the last inane question you posted. Clickety[^]
|
|
|
|
|
I have a .NET service that collects data from custom hardware.
I want clients to log on to the service so I can do the Publisher-Listener pattern to publish updated data to the clients.
Right now I have remoting objects that both sides use that are basically event containers. Server gets new data, server gets listener objects from listener collection, server transmits new data via the event to the client. Client observes event, unpacks and updates. Is this the best way to do this?
The way it's laid out now seems hackish just to have classes that are nothing more than event containers. I also need additional scaffolding on both sides to observe the events and client request calls. The system is safety critical and the prototype application leaves a bad taste in my mouth.
Does anyone have a different approach other than the event container, or should I get some mouthwash (or some bourbon) for the bad taste?
Scott P
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
hi everyone out there, am trying to make a simple sound player with atleast forward(next), rewind, pause, play and stop. can anyone give me help on this? I will really appreciate anything manageable.
thanks.....
|
|
|
|
|
if you just want to play WAV's then you can check out this article[^] from our very own codeproject.
|
|
|
|
|
si = new ServiceControllerInfo(new ServiceController("myservice"));
si.Controller.Start();
si.Controller.WaitForStatus(ServiceControllerStatus.Running);
|
|
|
|
|
Hi,
there could be many reasons why starting a service fails, e.g. your code is in an aspx page; or you don't have the necessary privileges (are you running as admin? is this Vista?); does the service exist, and is its status "Stopped"?
etc.
Luc Pattyn [Forum Guidelines] [My Articles]
I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).
modified on Friday, June 10, 2011 12:22 PM
|
|
|
|
|
yes i have checked all of the conditios, i van start and the service through administrative tools of the windows, but not through code!
my account is administrator and the windows is vista!
|
|
|
|
|
-------------------------------------A.W.Surveys----------------------------------
Hey Guyz,
wanna earn 100$ in 7 days......free to join
Here I am going to give you the link of that site which
will make you to earn 100$ in just 7 to 10 days.....with very ease.........
What you have to do is that visit that site and signup there and there are few earning opportunities ........you just have to fill them out............It will make you to earn 30$ in a single day............
http://www.AWSurveys.com/HomeMain.cfm?RefID=purshottam
A new opportunity is waiting for you .......Don't miss it..........
thanxs for ur support...its nice to see u all working tough
http://www.AWSurveys.com/HomeMain.cfm?RefID=purshottam
---------------------------------CBclickbank--------------------------------------
Hi,
I joined CBclickbank.com affiliate program. I like this program very much. CBclickbank.com free affiliate program where you can earn $161,452.38 just by refering Your friends! Click on the link and join I want to recommend you. Please visit this link.
http://cbclickbank.com/affiliate/?r=purshottam
----------------------------------Shareapic----------------------------------------
upload any pictures and make money online
http://www.shareapic.net/ref.php?owner=purshottam
|
|
|
|
|
Die in a deep hole. F*** your referrals you prick.
|
|
|
|
|
I have never used reflection before and I have been tasked with a project to tranform object data into 1 long string for a mainframe. I am trying to use an xml document as a reference for the information need to tranform to the mainframe. Below is an example of 1 element of that XML. What I am trying to accomplish is read in the schema and use reflection to build a string. Below the XML I have what I think is correct, but can not seem to get it working. Any point in the right direction would be great. businessType always comes back null and I can't seem to get the value
<MainframeField>
<MainframeKeyword>POLNO</MainframeKeyword>
<MainframeKeywordDescription>Policy Number</MainframeKeywordDescription>
<BusinessEntityDetails>
<Namespace></Namespace>
<EntityName>HealthPlanDetails</EntityName>
<PropertyName>PolicyNumber</PropertyName>
</BusinessEntityDetails>
<MaximumLength>2</MaximumLength>
<DataType>STRING</DataType>
<IsRequired>TRUE</IsRequired>
<TransformationDetails>
<MainframeTransformationEntity></MainframeTransformationEntity>
<Namespace></Namespace>
<MethodToCall></MethodToCall>
<Inputs>
<Input></Input>
<Input></Input>
</Inputs>
</TransformationDetails>
</MainframeField>
Part of my problem is I am not sure how to set the applicationEntity.HealthPlanDetails equal to the object created using reflection to get back the value.
Code:
public static string BuildMainframeString(ApplicationEntity applicationEntity)
{
XDocument xmlMainframeOutput = XDocument.Load(@"C:\_XsdGen\Gen\Mainframexml.xml");
var mainframeOutputs = from mainframeField in xmlMainframeOutput.Descendants("MainframeField")
let mainframeKeyword = mainframeField.Element("MainframeKeyword")
let mainframeKeywordDescription = mainframeField.Element("MainframeKeywordDescription")
let businessEntityProperty = mainframeField.Element("BusinessEntityProperty")
let maximumLength = mainframeField.Element("MaximumLength")
let dataType = mainframeField.Element("DataType")
let isRequired = mainframeField.Element("IsRequired")
let businessEntityDetails = mainframeField.Element("BusinessEntityDetails")
let businessEntityNamespace = businessEntityDetails.Element("Namespace")
let businessEntityName = businessEntityDetails.Element("EntityName")
let businessEntityPropertyName = businessEntityDetails.Element("PropertyName")
let mainframeTransformationDetails = mainframeField.Element("TransformationDetails")
let mainframeTransformationEntity = mainframeTransformationDetails.Element("MainframeTransformationEntity")
let mainframeTransformationNamespace = mainframeTransformationDetails.Element("Namespace")
let mainframeTransformationEntityMethodToCall = mainframeTransformationDetails.Element("MethodToCall")
let inputs = mainframeTransformationDetails.Descendants("Input")
select new
{
MainframeKeyword = mainframeKeyword.Value,
MainframeKeywordDescription = mainframeKeywordDescription.Value,
BusinessEntityNamespace = businessEntityNamespace.Value,
BusinessEntityName = businessEntityName.Value,
BuisnessEntityPropertyName = businessEntityPropertyName.Value,
MaximumLength = maximumLength.Value,
DataType = dataType.Value,
IsRequired = isRequired.Value,
MainframeTransformationEntity = mainframeTransformationEntity.Value,
MainframeTransformationNamespace = mainframeTransformationNamespace.Value,
MainframeTransformationMethodToCall = mainframeTransformationEntityMethodToCall.Value,
Inputs = (from input in inputs
select input.Value).ToList<string>()
};
StringBuilder mainframeOutputString = new StringBuilder();
foreach (var mainframeField in mainframeOutputs)
{
string businessEntityName = mainframeField.BusinessEntityName;
string businessEntityNamespace = mainframeField.BusinessEntityNamespace;
string businessEntityPropertyName = mainframeField.BuisnessEntityPropertyName;
string mainframeTransformationEntityName = mainframeField.MainframeTransformationEntity;
string mainframeTransformationMethodToCall = mainframeField.MainframeTransformationMethodToCall;
if (businessEntityName.Length > 0)
{
Type businessType = Type.GetType(BUSINESS_ENTITY_CLASS_PATH + businessEntityName);
PropertyInfo pi = businessType.GetType().GetProperty(businessEntityPropertyName);
mainframeOutputString.Append(mainframeField.MainframeKeyword);
mainframeOutputString.Append("=");
mainframeOutputString.Append(pi.GetValue(businessType, null));
mainframeOutputString.Append(";");
}
else
{
Type mainframeType = Type.GetType(MAINFRAME_TRANFORMATION_CLASS_PATH + mainframeTransformationEntityName);
MethodInfo mi = mainframeType.GetMethod(mainframeTransformationMethodToCall);
mainframeOutputString.Append(mainframeField.MainframeKeyword);
mainframeOutputString.Append("=");
mainframeOutputString.Append(mi.Invoke(mainframeType, null));
mainframeOutputString.Append(";");
}
}
|
|
|
|
|
Why are you trying to use reflection to do this? It seems like this would be much easier using a simple XmlReader (or XmlDocument and XPath) and a StringBuilder object.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Scott,
I was trying to avoid having to write a unique method for every mainframe keyword. Maybe I should clarify. I am writing a web service which takes in a large xml structure that represents an application. Then I parse that out into business entities that I can manipulate. Once that is done, I need to take my objects and create the long string. I don't want to have to create a method for each keyword that points to the businessEntity and the correct property each time. Maybe reflection isn't the correct path, but I am not sure how to build the output dynamically because it can be any number of object types. Hope this makes sense, if you can suggest a better route I can look into that as well.
Thanks,
|
|
|
|