|
Here i had change the code as
sw.write(asXML);
i got the xml file,but it's not writing the value from textbox.
I'm Getting the folloeing error.
XML document must have a top level element. Error processing resource 'file:///C:/Documents and Settings/sbritto/Desktop/test.xml
Please correct it...
Thanks in advance
With Regards,
Samson
|
|
|
|
|
you're not writing XML. Stop flailing about in the dark, abandon the path of ignorance, and actually do some work to establish that the code you enter stands some semblance of a chance of working.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
samsonx wrote: Please correct it...
Well, I'd recommend you do some reading on XML, and possibly C#. You either are hoping for some sort of magic to happen that has nothing to do with any code that you've written, or you plain have no idea. You've not written any nodes here, this would only work if you magically happened to type the right values into your textboxes to create XML. Either way, as the original guy said, this is horrible code. XmlTextWriter is the class you should be using. I've confirmed that there's tons of info and examples on the web, easily found with your search engine of choice.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Either way, as the original guy said, this is horrible code.
I'm having fun here
I are troll
|
|
|
|
|
is it possible to have a click event that takes three paramenter i:e
private void MyButton_Click(object sender, EventArgs e,int xyz)
{
}
if yes then how?
thanks
|
|
|
|
|
Yes and no. That not what you wanted to hear, but let me explain;
You can't change the way that a standard button uses to signal a click. Trust me, that's a good thing.
You can make your own button however, and fire your own custom event. You'd have to create a delegate and a matching event.
Throughout the .NET framework you'll find that most events are based on TWO parameters. The first one being the sender, the second one the arguments. That's done for enhanced readability. If you want to send an extra param, then you could derive from EventArgs and pass those.
My apologies for deepening the confusion
I are troll
|
|
|
|
|
It is not possible with Button class, the EventHandler delegate is defined like this:
public delegate void EventHandler(
Object sender,
EventArgs e
)
Regards,
Lev
|
|
|
|
|
To add to what others have said. Assuming you added this parameter, what do you hope it will contain ? Where could it come from and how ?
The way things work in .NET is that there's always two params ( as someone else said ). To clarify, if extra info is needed, a class is used derived from EventArgs, such as MouseEventArgs, send with a mouse event and containing pertinent information. Just for clarity, it would be wise if you create a custom button, that you create a custom event args instead of adding extra parameters to the list.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
how to implement logarithmic functions in asp.net
|
|
|
|
|
I didn't get your Qs.Can you be bit detailed.
elci wrote: functions in asp.net
Always post in right forum.
Cheers!!
Brij
|
|
|
|
|
if i specify log2 base10 i should get the log value which matches the log table
|
|
|
|
|
What do you mean log2 base10, log2 is base 2.
You can use the log static functions defined in Math class:
Math.Log(double a)
Math.Log(double a, double base)
Math.Log10(double a)
Regards,
Lev
|
|
|
|
|
|
You're welcome
Regards,
Lev
|
|
|
|
|
We have an ASP.NET forum ( of course, you asked there ), but this is not an ASP.NET question. Sounds to me like you need to focus on some basics, and learn the frameworks you're using.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Step by step, with great attention to detail
I are troll
|
|
|
|
|
Hi,
Crystal Report 2008 has no problem connecting to oracle 9 in Crystal Report developer.
When the same report handled by C# 2005, with same connection setting,
i.e.
Rprt.SetDatabaseLogon("user", "password");
or
Rprt.SetDatabaseLogon("user", "password", "deserver", "dbname");
other method like
ConnectionInfo
When called with
Rprt.VerifyDatabase();
It generates error "Login Failure"
Any Suggestion?
Thanks
|
|
|
|
|
Perhaps the Oracle client isn't seeing the database correctly. Do you have TNSNames defined correctly.
|
|
|
|
|
The same machine use for Crystal Report 2008 and VS 2005.
Therefore they are using the same TNS Setting.
When Crystal Report Developer able to connect to Oracle 9i (retrieve data and print out), it sould be able to connect to Oracle in VS 2005.
|
|
|
|
|
Since the error is coming from Crystal, if you're using ReportViewer, have you wired Error and HandleException events. Do they reveal any extra info?
|
|
|
|
|
Details StackTrace Error
{"\rError in File C:\\Temp\\report {F053726F-6312-438A-802A-E1A184F7446F}.rpt:\nFailed to load database information."}
[CrystalDecisions.CrystalReports.Engine.DataSourceException]: {"\rError in File C:\\Temp\\report {F053726F-6312-438A-802A-E1A184F7446F}.rpt:\nFailed to load database information."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: {"\rError in File C:\\Temp\\report {F053726F-6312-438A-802A-E1A184F7446F}.rpt:\nFailed to load database information."}
Message: "\rError in File C:\\Temp\\report {F053726F-6312-438A-802A-E1A184F7446F}.rpt:\nFailed to load database information."
Source: "CrystalDecisions.ReportAppServer.DataSetConversion"
StackTrace: " at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)\r\n at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)\r\n at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)\r\n at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)\r\n at CrystalReportService.PrintCrystalReport.executeReport() at C:\\Projects\\CrystalReportService\\CrystalReportService\\PrintCrystalReport.cs: at 170"
TargetSite: {Boolean ThrowDotNetException(System.Exception)}
|
|
|
|
|
How do i change the background image of form1 from form2
|
|
|
|
|
2 ways
1.
Form1 tmp_form1 = new Form1();
tmp_form1.BackGroundImage = Image.FromFile(FILEPATH);
tmp_form1.Show();
2.Delegates And Events[^]
one more i forgot
in Form1
Form2 tmp_form2 = new Form2();
tmp_form2.Form1Reference = this;
tmp_form2.Show();
you can change form1, backgrou...
Form1Reference.BackGroundImage =.....;
i didnt checked the code, so it may have errors
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
yp he is right. or you can dynamically add the image from a dialogbox
|
|
|
|
|
hi firends,
i want to design a new fresh and interesting interface for my application like in media player or in Y! messenger which is recently made by .NET 3. i mean i don't want to use those repetition tiring default skins in visual studio designer.
how should i start?
thanks all
|
|
|
|