|
hi,
I googled alot but nothing find how i send and receive sms through CDMA(Standard=TIA/EIA/IS-2000 having IS-707.3 AT Command Set user interface)
based modem.
plz help if any one can or any hint or any guidance.
|
|
|
|
|
Check out http://www.smscountry.com/[^]. They have APIs to send text messages via application.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi there,
This query is with respect to the isolation of object in a collection. And like to hear couple of approaches those are feasible in such scenario.
First, let me explain the problem which I am facing at this time. Our application has few rules (objects in concize) associated with few entities, those are editable for all currently active users (U1, U2). Assume that, we have 2 rules (R1, R2). Our requirement is no two users can edit, delete or modify a specific rule at same point of time.
Eg: If U1 update R1 then U2 has to wait till U1 release R1. If U1 update R2 then U2 have provision to update R1 since R1 is not locked by any user. I hope you are clear about the requirement.
Now, to ensure the above discussed functionality we implemented a method which uses Interlocked Class in threading namespace (VS.NET & C#). This approach in fact helps us while avoiding concurrent user access over a specific instance on a specific time using some flag value. But the problem is, it locks the entire rule collection (R1, R2) even thou there is no concurrent user. I presume, this is because of the way we model the class and is a collection (rule collection).
Eg: If I have N rules in rule collection, it doesn’t mean that I need to lock all N rule objects in the rule collection. But I only need to lock specific rule (subset of rule collection), those are currently used by some logged users. And ensure all other non affected rules are free from lock.
I did have a thought on the object level locking using .Net object locking mechanisms. But this is practically impossible to implement locking mechanism for each and every functionality.
FYI: It is small product which has 54 projects (30 services, test projects, script) in C#.NET. And the product has its 70% of functionalities in place. So a major rework in object level is not practical at this moment since it has to go through lot of review and regression process.
I hope you are clear with respect to the problem statement.
Can you explain me which method would be feasible in such scenario ?
How will i make sure only the object lock is available for the object which is currently i use and not other objects in the collection?
And how will I ensure object level isolation than locking an entire collection?
Do we have any proved patterns for this kind of problems?
Thanks in advance.
|
|
|
|
|
Please check whether a Hashtable[^]Hashtable can help you. A Hashtable can support one writer and multiple readers concurrently. To support multiple writers, you can use a synchronized (thread-safe) wrapper for it. For details read the 'Thread Safety' part of the article.
*jaans
|
|
|
|
|
It's too late to do a design change and looking forward for a wrapper kind of approach or attribute. Anyway thanks for your reply.
|
|
|
|
|
Hi all,
I m having problem with selecting multiple values in a listbox and inserting tht in the database.
I wrote this code:
if (lstResource.SelectedIndex != -1)
{
for (int i = 0; i < lstResource.Items.Count; i++)
{
if (lstResource.Items[i].Selected == true)
{
stringBuilder.Append(lstResource.Items[i].Value + ",");
}
}
}
but somehow its not giving any value as TRUE, even if it is selected.
Thanks in advance
|
|
|
|
|
The SelectedItems property will return the list of all the seleted items in a list box use this property to get the seletecd values.
This will return you a string array use foreach loop to get the values.
With Regards
Yogesh Agarwal
|
|
|
|
|
Where does the data for the listbox come from ? Are you resetting the data on postback ? If you are, then that will cause all your selections to be lost.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian Graus,
Data is comin from the database table.
I did binding on page load. as in below:
lstResource.DataSource = ds; //ds-Dataset
lstResource.DataTextField = "Names";
On Submit button click i want the selected values to get inserted in database together.
|
|
|
|
|
Oh..ok...
Thanx Christian Graus ....
Actually i was resetting data on postback..
I just put the code
if (!IsPostBack)
{}
And it worked like a charm....
Thanks a lot
|
|
|
|
|
ListBox.Items[i] returns the object the listbox contains. It does not contain a property called Selected.
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
Hi Vikram..
It does have the property called "Selected"
|
|
|
|
|
Vikram A Punathambekar wrote: It does not contain a property called Selected.
It's a cross post. Looks like OP is using ASP.NET.
|
|
|
|
|
Hi,
Just put a dot after thsi and you get selected as a property.
check out.
ListBox.Items[i]
----Naina
|
|
|
|
|
Hi,
I am reposting this message,plz help me to fix it.
I have written code for sending mails using c#.I am facing the following problem with this.
Mail Body is not showing up for Meeting requests/mail received through Lotus Notes. The meeting request is shown correctly when viewed through the Outlook with the body showing up but not in Lotus Notes.
Here is the code i am using,
msg.From = new MailAddress(From);
msg.Subject = Subject;
msg.SubjectEncoding = System.Text.Encoding.Default;
StringBuilder strBodyText = new StringBuilder();
strBodyText.AppendLine(some string on logical criteria);
msg.Body = strBodyText.ToString();
msg.BodyEncoding = System.Text.Encoding.Default;
msg.IsBodyHtml = false;
msg.Priority = MailPriority.High;
SmtpClient client = new SmtpClient();
client.Port = 25;//or use 587
client.Host = smtpServer;
client.Send(msg);
Plz help me...
Thanks in Advance
Alok...
|
|
|
|
|
Are you sending HTML or text ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am sending mail in plain text.
|
|
|
|
|
I don't know what kinds of checks Lotus Notes does, but I would see if there is anything that you are sending that would cause Lotus Notes to not want to download the body.
Some email clients don't show the body of the message if the body contains words that are common to spam mail. I would see if that is the root of this evil.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
How can I draw control or image on screen instead of form?
Something likes office assistant character.
|
|
|
|
|
I already responded to this. Why ask a new question, with a useless subject ( everyone here wants help ), instead of replying within the thread ?
As is often the case, my first google hit was on this site, did you do any searching on your own ?
http://www.codeproject.com/KB/GDI-plus/FallingSnowSharp.aspx[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I already responded to this. Why ask a new question, with a useless subject ( everyone here wants help ), instead of replying within the thread ?
hey,Whats wrong with u?I dont want that you answer me?!can you?
|
|
|
|
|
I want to upload folders containing sub folders .
Is it possible in asp.net1.1 (C# or vb)?
Please help.
Amitava
|
|
|
|
|
You can only upload files, one at a time.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ok then is it possible to zip/unzip that particular folder
in asp.net1.1 (C#) ?
I have found some codes but they are in .net2.0
but I need it in 1.1.
Amitava
|
|
|
|