|
and again thank you for fast replay !
and for VERY helpfull tool (yep, seems it's monitoring entire CLR activity, so an interop activity as well).
|
|
|
|
|
Hello everyone,
I am using xsd to generate a C# class from an XML file. I noticed there are a couple of fields of the generated classes are marked with various XML attribute, like XML attribute and XML element.
Now I want to add more restrictions to the input XML file during deserialization,
- Make some fields in the C# class not nullable during serialization;
- Make some fields to accept only numbers (currently the automatic generated C# file is using string type other than number type to represent the fields).
Any ideas about how to decorate the generated C# class file to achieve the goal?
thanks in advance,
George
|
|
|
|
|
Hello Forum
I am new for this concept.
I want to create a web site in Asp.Net using c#.Net in which user can create his mail account like in code project,yahoo or gmail etc...like
abc@gmai.com
Do i need my own server?or the domain space will be sufficient on any server?
Any Basic Technology required?
Can any bdy tell me some steps to follow in the creation of that Web site
My basic Confusion is how and where to store the Mails and their format...?
Thanx n Regards
Rahul
|
|
|
|
|
The domain name is not sufficient for hosting a mail server.
The hard way will be to create a Mail Server web application, but actually there are a lot of ready solutions, so you can go the easy way, i.e. register a domain name and tie it with Google Apps[^], it's free and setup takes minutes.
But, if you really want to go for your own mail server, start by reading the following RFCs:
RFC 821 - SMTP[^]
RFC 1939 - POP3[^]
RFC 3501 - IMAP4rev1[^]
PS. RFC - Request for comments, this is basically the description of protocols. SMPT/POP3 - are protocols for sending/receiving e-mail, IMAP4 - is also a mail protocol, but a very sophisticated one.
Regards,
Lev
|
|
|
|
|
Hello Lev,
Thanx for ur reply and sorry for cross posting.
Lev can u send me any link or help regarding tying my domain name with google apps...I am not able to getting u exactly..
Thanx again Lev.
|
|
|
|
|
Register a domain with a registrar like godaddy[^] and then purchase some hosting. Shouldn't be more then 10$ a month. You can pay some extra $ for 100 extra emails. The you are free to create as many whateveryoulike@yourdomains.com as you wish.
|
|
|
|
|
Just like Eliot said
But with Google Apps you won't need to purchase a hosting and pay for e-mail addresses, just a domain name is enough. I've already given you the link, but here it goes again Google Apps[^]. Read their tutorials and you'll have everything straightened out.
PS. I switched to google apps a couple of months ago, and it's really cool for a free product (they do actually have a commercial version with more options, but you decide what you need )
Regards,
Lev
|
|
|
|
|
Hello friends
I have a combo box, on ComboBox dropDown i have to show tooltip for combo box item.But tooltip should dislay after some time delay.
I have used toolTip.Show(...) which shows toolTip text immediatly.
Thanks in advance
|
|
|
|
|
Use InitialDelay property.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
|
|
|
|
|
i already had used InitialDelay = 1000 but it isnt work.
|
|
|
|
|
himuskanhere wrote: i already had used InitialDelay = 1000 but it isnt work.
Read the documentation[^] and it clearly says
The period of time, in milliseconds, that the pointer must remain stationary on a control before the ToolTip window is displayed.
1000 millisecond is 1 second. So you will not feel the difference. Consider putting some big value and test it.
|
|
|
|
|
Can you show the code block you are using?
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
|
|
|
|
|
himuskanhere wrote: i already had used InitialDelay = 1000 but it isnt work.
What about InitialDelay = 10000? It must be easy for us to tell the difference.
Tan Li
I Love KongFu~
|
|
|
|
|
Hi,
I've 2 classes Parent and Child, Parent has some Virtual Methods those are basically override in child class. I'm trying to call those override methods through delegate, unfortunately it always refers base class not child class method (that is override). What might be the wrong?
Thanks in advance
|
|
|
|
|
I guess you've misunderstood how overriding works. Perhaps if you post some code and explain what happens and what you expect to happen ? A delegate will call the method you tell it to, I don't see how overriding methods counts for anything here ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
As Christian said, you might be doing it wrong. See the following code. It works as you expect
class Parent
{
public virtual void SayHello(){
Console.WriteLine("Hello from parent");
}
}
class Child : Parent
{
public override void SayHello() {
Console.WriteLine("Hello from child");
}
}
class Program
{
delegate void FooDelegate();
static void Main(string[] args){
Parent p = new Parent();
FooDelegate foo1 = p.SayHello;
Parent p1 = new Child();
FooDelegate foo2 = p1.SayHello;
foo1();
foo2();
}
}
|
|
|
|
|
Ensure that the object associated with delegate in runtime is child object.
Easy to find it if you debug it.
Tan Li
I Love KongFu~
|
|
|
|
|
Hi,
I have an excel file that contains a chart, is there a way using C# code to take that chart in the excel file and export it to an image file.
Before I was making the chart in the C# code and was able to export it but now the chart is already made.
Thanks in advance.
|
|
|
|
|
Did you checked workbook.charts property? I think it gives collection of the sheets with charts.
The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."
modified on Tuesday, January 6, 2009 1:18 AM
|
|
|
|
|
Hi,
Can anyone please tell me how can I get how do I get user's local time . I am using asp.net ,C#. If i have to use small javascript that would be okay.
Thanks for any comments or idea.
|
|
|
|
|
Yes, you need to use Javascript. Create a Date object to get the current time, use the getTime method to get the date as an integer value, and put the value in a hidden field. Read the value when it's posted to the server and convert it to a DateTime value.
Hidden field:
<input type="hidden" id="ClientTime" name="ClientTime" />
Javascript code:
document.getElementById('ClientTime').value = new Date().getTime();
Server code:
string milliseconds = Request.Form["ClientTime"];
DateTime clientTime;
if (string.IsNullOrEmpty(milliseconds)) {
clientTime = DateTime.Now;
} else {
clientTime = new DateTime(1970,1,1).AddMilliseconds((double)long.Parse(milliseconds));
}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank for your reply. Here is what i tried.But i get NULL value when I tried at the backend.
1st:
function GetClientUtcOffset()
{
document.getElementById('ClientTime').value = new Date().getTime();
}
2nd:
onload="GetClientUtcOffset();">
3rd:
input type="hidden" id="ClientTime" name="ClientTime" />
FinallY:
string milliseconds = Request.Form["ClientTime"]; // I get milleseconds = null
DateTime clientTime;
if (string.IsNullOrEmpty(milliseconds)) { clientTime = DateTime.Now; }
else { clientTime = new DateTime(1970, 1, 1).AddMilliseconds((double)long.Parse(milliseconds)); }
Thanks for any comments or help.
|
|
|
|
|
Yes, you will always get a null value until you have posted the form to server. First the script has to run on the client side, then you can get the value on the next postback.
Also, make sure that the hidden field is inside the form that is posted.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks for your reply.
How do I make sure the hidden field is posted ? I am always getting null even after psotback.
--- Also I am running at the body's onload. So shouldn't it run as soon as the page load?I am not sure -- just curious .. since it's not working.
Thanks
|
|
|
|
|
This is not the ASP.NET forum. If you can't follow some simple instructions, or read one of the many google articles on how to do this, at least ask in the right forum.
mdpavel wrote: Also I am running at the body's onload. So shouldn't it run as soon as the page load?I am not sure -- just curious .. since it's not working.
It seems you have no idea how ASP.NET works. OnLoad and OnPreRender run on the server, obviously, they need to run to completion for HTML to be sent to the client. So, there is no code on the client until a postback occurs, until then, there's no way to know what the time on the client is.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|