|
One concern is the scoring routines we use for our product. This is probably the portion of the code that is most concerning.
If I create unmanaged runtimes (Win32 - Delphi) then use a encryption/compression utility, shouldn't it be more secure?
|
|
|
|
|
Then why on earth do them in C# if you already have it in some other form? sounds to me you have too much time on your hands :p
top secret xacc-ide 0.0.1
|
|
|
|
|
Hi friends
Im having a problem regarding the debugging of my Web Based .NET Application.
I want to debug my application on my system (the application is on the server and the VS.NET is also on the server).
Currently i can build it but for running i have to just run in the browser.
F5 or debugging is not working in this case.
On server side all the remote debugging rights have been given and i have been put in Debugger user group.
Please help me in this as im having a great problem in my Web Application.
Any help or pointer is most appreciated
Naveen
|
|
|
|
|
while writing customized control that inherits .Net control (e.g. Treeview control) what is the advantage/disadvantage of having default
constructor and parameterized constructor both?
can we avoid/delete default constructor if everything can be done with parameterized constructor?
Please guide.
|
|
|
|
|
Your basic problem is that the IDE isn't going to generate any code for you that uses a constructor, and if you go changing the code it generates for you to use that constructor, it's likely to delete your code for you. I'd suggest sticking with a default constructor and an initialise method you can call.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
public class ExRichTextBox : System.Windows.Forms.RichTextBox
{
// variable declarations
private ExRichTextBox() : base()
{
// some logic
}
public ExRichTextBox(string _lang, string _projName) : this()
{
// some logic
}
// public and private methods
}
is it advisable?
please guide
|
|
|
|
|
Yes, but as Christian said, it wont work in the designer anymore... (does any real coder use the designer anyways? )
top secret xacc-ide 0.0.1
|
|
|
|
|
leppie wrote:
does any real coder use the designer anyways?
LOL - do you lay out GUI's by trial and error ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian Graus wrote:
LOL - do you lay out GUI's by trial and error ?
No, I normally think about it 1st...
top secret xacc-ide 0.0.1
|
|
|
|
|
You visualise the whole thing in your head ? I'd rather think about it by moving things in the designer until they look good.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
yeah, I think about the layout while i code some other stuff, it not that hard, just dont start your app with a GUI and build one as you need to expose functionality. Then you dont need to worry about the designer adding silly variables (like autoscalebasesize, that messes up borderless forms) etc, or changing your images in the imagelist from png to memory bmps (that lose transparency)... and if you wanna really love the UI designer u have to make all your controls also nice and friendly, tedious and redundant.
Gimme intellisense and im happy
top secret xacc-ide 0.0.1
|
|
|
|
|
Hi Guys,
I'm trying to write a server control that exposes as one of it's properties an object.
I've created a TypeConvertor that converts from a string representation to an instance of my object, and have also implemented the converstion from the object to an InstanceDescriptor.
When I create the InstanceDescriptor, I am passing in the parameters for the default no argument constructor of my object, and the third parameter to specify that the object can not be fully created from the InstanceDescriptor - which should force the serializer to output code for the properties of my object as well....
return new InstanceDescriptor( XmlDocType.GetConstructor( System.Type.EmptyTypes ), null, false);
However the code that is generated for the asp.net does not have any code for setting the propertiess of my object.
I know I could just create a constructor that takes in the values, and return the relevant InstanceDescriptor, but I would like to get it working the other way first. Does anyone know if this is possible, and where I could be gonig wrong?
Also I've looked at implementing my own CodeDomSerializer for my object, but cannot get the asp.net to actually call my implementation - again if any knows where I am going wrong with this, would be helpful to hear from you.
Thanks.
Chris.
|
|
|
|
|
How can I build a string with the string builder with new lines in it...?
foreach(string line in mail.LOGIN(user, pass))
{
sb.Append(line);
}
Right now I go like this... I would like to add a "\n " after line , but it dosn't complie. How can I add each line to a new line in the string?
/\ |_ E X E GG
|
|
|
|
|
Use Environment.NewLine
foreach(string line in mail.LOGIN(user, pass))
{
sb.Append(line);
sb.Append(Environment.NewLine);
}
Sanjay Sansanwal
www.sansanwal.com
|
|
|
|
|
Ahh, that's it. Thanks.
/\ |_ E X E GG
|
|
|
|
|
Environment,NewLine is how you should add newlines, not with \n or \r\n. I don't see why that wouldn't work in a stringbuilder.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
thanks..............................................................
/\ |_ E X E GG
|
|
|
|
|
The StringWriter class is an overlooked gem, providing a TextWriter on a StringBuilder. Have a look
top secret xacc-ide 0.0.1
|
|
|
|
|
Never heard of it. I'll check it out.
/\ |_ E X E GG
|
|
|
|
|
I'm working on a project to send SNMP to a device. I can create the UDP/IP packet and even send it to the correct port. I just can't get the body correct. I don't know how to set the version, community, etc... I know there are some .dll's availble and even WMI but I can't use the .dll's due to potential licensing issues and I don't want to get mixed up with the whole WMI thing. Any help or sujestions would be great.
-Toby
Bad spellers of the world Untie!!
|
|
|
|
|
I found this Article helpful with some SNMP stuff I was working on. I'll pass it on.
http://www.c-sharpcorner.com/Code/2002/Sept/SnmpLib.asp
|
|
|
|
|
Let's say I have this url in a webpage...
http://asdf.com/index.aspx?userid=alex&password=9696
How can I read the 2 variables from a C# asp.net page?
/\ |_ E X E GG
|
|
|
|
|
You should be able to read them by doing something like this... Request.QueryString["userID"]
|
|
|
|
|
Thanks, that worked good. Do you know how to keep the connection open on a page?
/\ |_ E X E GG
|
|
|
|
|
Keep the Connection of a page open? You can't.
What are you trying to do?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|