|
hi
The permissions allowed by this access level are those allowed by the 'protected' level plus those allowed by the 'internal' level. The access level is thus more liberal than its parts taken individually. This modifier should only be used for internal classes (ie. classes declared within other classes).
Rajendra Kumar Yerra
|
|
|
|
|
how we can arrange array items in descending order?
vamsi
|
|
|
|
|
Sounds that this question is asked in the Interview?
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Hi, and welcome to the internet. Search the forums, then google, then ask. And look in your textbook before asking a homework question.
Try using Array.Sort and then Array.Reverse.
|
|
|
|
|
Ask your friend from class!
His question got a lot of response![^]
P.S.: You forgot that question: "enter a number and display next 5 prime numbers."
Maybe you forgot to turn the page of your homework assignment.
-- modified at 3:06 Thursday 12th July, 2007
I know now why you didn't asked it.
PhilDanger[^] gave the correct answere allready!
All the best,
Martin
|
|
|
|
|
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Hi Martin,
this question is quite different from the ascending order one;
the solution is much, much harder. It probably takes more than one line of code.
|
|
|
|
|
Hello Luc,
You are write, I haven't looked to carefully at the question!
Ok, so he changed the page and found this additional question for the 'primus' studends!
-- modified at 6:15 Thursday 12th July, 2007
I found a solution in one line:
1) http://support.microsoft.com/kb/319401[^]
All the best,
Martin
|
|
|
|
|
bubble sort it... or use a listbox to display it and turn its sorted property on.
Mark
|
|
|
|
|
Hello,
how can i get the information about wich/how many COM Ports are available on my platform/PC ?
thanks!
|
|
|
|
|
Hi.
You can use
string[] availablePorts = SerialPort.GetPortNames();
Standards are great! Everybody should have one!
|
|
|
|
|
Hello my problem i have vss schedular, it is designed with asp.net and .
vb.net, what i want is this vss schedular is running everyday night 12.00am.
i want to get sms is it running or not ,
how to do this one
, please any one can help me
srinivas
|
|
|
|
|
VSS Schedular?? What is that? Is it Microsoft Visual SourceSafe?
|
|
|
|
|
Yes Michael Sync
srinivas
|
|
|
|
|
I didn't see this feature in SourceSafe. Is it in Visual Sourcesafe 2005??
|
|
|
|
|
Hi,
First a bit of common info.
This can't be done directly. You should contact your mobile operator, because you will have to use the SMPP server of the celular service provider. It's also possible that you need a VPN connection to their computer (but I'm not sure about this). To use SMPP, you will need to use WinSock for the connection.
More info on how to use the SMPP can be found on the SMSForum : http://www.smsforum.net/.
You can also use a SMS Modem, but I don't have more info on this one.
A bit of advantages and disadvantages :
The SMPP option gives you these advantages and disadvantages:
- Massive amounts of SMS. Perfect for SMS spammers.
- Lower costs, depending whether your provider charges you for SMPP and how much.
- Providers rarely release access to SMPP to individuals. Sometimes not even companies.
The GSM Modem option gives you these other advantages:
- Freedom from the provider. Just insert the SIM and you are ready.
- It will handle (outgoing or incoming) only 1 message every 4.5 seconds.
Now todo this with .Net, here is a bit of info :
An example in C# : http://www.emant.com/681002.page
There are also a few examples on the codeproject itself :
http://www.codeproject.com/cs/webservices/SendSmsThroughWS.asp
http://www.codeproject.com/vb/net/PDUEncoder.asp
http://www.codeproject.com/smartclient/phoneat.asp
Several code examples : http://www.csoft.co.uk/sms/example_code/index.htm
So I hope this helps you with your problem.
|
|
|
|
|
Thank you now iam searching about the related sites
srinivas
|
|
|
|
|
srinivassam wrote: schedular
Check the spelling. It is misspelt everywhere.
|
|
|
|
|
Hello everyone,
If I wish few line of codes to be run during the run time (I mean all the time) as it is checking for something, where should I place the code?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Use BackGroundWorker component so that your piece of code runs in a new thread. Or you can set up a timer to run the code in other thread.
|
|
|
|
|
Hello,
A timer event would seem to me the write place!
Now you have do decite if you whant to run it in the GUI thread or start an other thread for this checking.
A independend thread would have the posibiliy to run it in lower priority which doesn't effect your GUI to much!
If you whant to run it in GUI thread the Forms.Timer is the write one.
If not, use Threading.Timer or Timers.Timer.
Hope it helps!
All the best,
Martin
|
|
|
|
|
Hi all,
I've been looking at the MVP pattern recently, and it impressed me so much that I've converted my ASP.Net application to make extensive use of it. However, I'm wondering about the best way in which to incorporate validation into the pattern.
Formally I was using the Regex validator in the aspx page; clearly, this is was an inflexible approach - and wouldn't be at all feasible as and when I update the application to Silverlight or roll it as a Winforms app. MVP does solve this problem on a page by page basis, however I can't help but think that in terms of the application I've simply moved a problem up a level, rather than solved it.
In my application some areas of validation are common across different pages. For example, a number of pages are required to validate that the user has entered curreny values and not stupid stuff like "Mike is Ace!" etc. Now I can code this directly in the "presentor", but by doing so I prevent the same code being shared throughout the application.
A thought I had was to create an abstract CustomValidator object, and then make each presentor implement an IValidatable interface which could be passed into the concrete CustomValidator. Is this a good approach, or can anyone suggest a better way?
One other thing that is giving me pause for thought is the ASP.Net Session. Without coupling the presentor to the "web", how can I access the session and maintain portability if (when!) I need to convert to other platforms?
Thanks,
Martin.
|
|
|
|
|
I've done this in the past with the Command pattern. Imagine that you have implemented a base command:
public interface IValidatorCommand
{
void Execute();
}
public class ValidationOutcome
{
public bool Passed = true;
public Type FailureType;
public string Reason;
}
public abstract class ValidatorCommand : IValidatorCommand
{
public ValidatorCommand()
{
}
public override ValidationOutcome Execute() {}
}
public class RegexValidatorCommand : ValidatorCommand
{
protected string regex;
protected string text;
protected RegexValidatorCommand(string regex, string text)
{
this.text = text;
this.regex = regex;
}
public static RegexValidatorCommand Validator(string regex, string text)
{
return new RegexValidatorCommand(regex, text);
}
public override ValidationOutcome Execute()
{
ValidationOutcome outcome = new ValidationOutcome();
outcome.Type = this;
if (...)
{
outcome.Reason = "The regex didn't match your input.";
outcome.Passed = false;
}
}
} Then, all you need do in your code is
ValidationOutcome outcome = RegexValidatorCommand.Validator("regex", txtMyTextbox.Text).Execute();
if (outcome.Passed)
{
}
else
{
}
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|