Using Using
I have just completed reading a chapter in my book on performance. The books says to speed up performance on your web site you should use the using statement when opening connections. My question is how do you catch errors if you are using this as apposed to a try catch block.thanksBryan
Why would you use it as an alternative to a try/catch statement. Couldn't you just do something like public void UsingSomeMethod() { try { SomeMethod(); } catch(SomeException e) { /// do something useful }}public void SomeMethod() { using (Something) { ...
Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi
My requirement is
I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0.
once i read the all fileds and take that mobile number.using tat mobile number i need to send sms .after sending sms i shuld change status as 1
How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link.
and also provide the how to update the status field im csv file
Thank
ssandhya
To send SMS, you need some third party SMS providers. if you consul...
When to use ( and when to use ((?I'm just not getting it.
When do you use ( in a statement, when do you need to use ((, and is
the space after either or both mandatory?
For example, I coded this statement:
if (( $_ eq $bad_guys_ip )) { more_stuff_here };
Why the two (( in an if? And why does it seem to not work when I miss
the space after the ((?
Thanx!
Mark me as...
/Corn-fused|Dense/
> I'm just not getting it.
>=20
> When do you use ( in a statement, when do you need to use ((, and is
> the space after either or both mandatory?
>=20
> For example, I coded this sta...
To use or not to use ASP.net
Hi,
I'm new to developing of dynamic web pages.
Currently doing a website providing data retrieval and updating.
I am wondering if ASP.net is suitable for this task
If ASP.net is advisable, other than IIS, what else can be used as the host? (Oracle?)
Also, if I am currently having an Oracle server, would it be better to use the PL/SQL instead? (Maybe wrong forum to ask, but no harm asking rite?)
Hope I am not confusing anyone! Any help is greatly appreciated!
Hi,
and welcome to the ASP.NET forums.
First of all, yes ASP.NET is a great technology, amongst others, to create dyna...
How to use the arguments to use() in the package being usedHowdy,=20
The subject says it all believe it or not :)
What I'm trying to figure out is how to pass an argument=20
(pragma I believe is the proper term) to use() and do=20
sonethign in the package based on it.
I've looked at CGI.pm source but can't seem to track it down.=20
(Similar idea as to CGIs -oldstyle_urls -newstyel_urls)
http://search.cpan.org/~lds/CGI.pm-3.04/CGI.pm#PRAGMAS
What I'd like to do is something like this:
# for old time's sake we'll just use our favorite module
use Foo::Monkey qw(:Foo :Bar -doamazingthings);
#then in Foo::Monkey...
Creating word document using asp.net using vb.net
Hello friends,
I want to create word document dynamically through asp.net using vb.net.Plz send me code for the same.
Regrads ,
Harshala Lad.
To create Word document, you should use binary stream that contains correct format for Word. Then the key point is how do you get the source binary stream with proper format? I know there is a way to store Word documents in SQL as BLOB (binary Large object) and then read the binary stream from database, then write the stream into a Word document. You can take a look at this post:
http://forums.asp.net/thread/1257206.aspxWe...
How to use winsock control in ASP.Net using VB.Net 2003?
I have to use winsock control in my ASP.net application. And don't have any idea to use it in ASP.net, but I have used it previously in VB.Net project. What I did in ASP.net is-----I added its reference and also added it in toolbox. But it got added in Windows Forms section of toolbox. I dragged winsock control from tool box to a webform and named it as win1, then in code behind(i.e. aspx.vb) I tried to use it by typing win1 then one dot( . ) but it has not given any intellisence.So how could use winsock control in ASP.net.Can any send me link to a dummy project in which wins...
Accessing file twisely using asp.net using VB.Net
Hello Friends,
I am new on this group.
I have a problem in my functionality.
i am using asp.net using vb.net.
The pocess is as a way that I have to send a mail with attachment.I am using Input file type tag control to get Attachment file from directory.After it i am saving attachment file on server folder.After it i am sending file path to attachment function as string.After it attachment is working fine.
But after it i want to delete that file from server and when i wrote code for delete fileas following:
File.delete(Path of file)
but when runtime start execute this code ...
Using jQuery
What are the advantages of using ScriptReference to include a jQuery source in my .NET pages as opposed to using the regular <script src='jquery.js'></script> method? Thanks.Ryan
One advantage of the ScriptManager is that you can use application relative paths (e.g. ~/scripts/jquery.js).On a related note, if you're writing something that will be public facing, you might consider using Google's free CDN hosted version of jQuery. Encosia - ASP.NET, AJAX, and more.Latest article: How I handle JSON dates returned by ASP.NET AJAX
Thanks for the reply. I act...
what is the use of using our own webservice in asp.net
hi all, what is the use of using our own web service in asp.net in our site...... Thnk UAshok Ashok
Using a webservice would generally be slower than directly accessing the data. Turning data into xml and back into data again, plus the extra webservice overhead, will slow things down.That said, if you are concerned that the database that you are grabbing data from will change a lot, and that embedding direct data calls into your code could cause you serious maintenance problems, then putting a webservice in the middle might make sense. Particularly if you w...
How to Send email using System.Net.Mail ,in ASP.NET using c#
Hi dis is suresh, can any 1 plz tell me, how to send a email using system.net.mail in ASP.Net using c# waiting for ur reply..............
sureshkumar_246:
Hi dis is suresh,
can any 1 plz tell me, how to send a email using system.net.mail in ASP.Net using c#
waiting for ur reply..............
you can refer my article
http://www.aspsnippets.com/post/Send-Email-using-CSharp.aspxMAKMark as Answer if this reply helps youMVP ASP/ASP.NetASP.Net Hosting : Host DepotMy Site : ASPSnippets
Hi Dear,
also finds these links for sending email .
http://fo...
Using Dot Net Nuke to maintain a site developed in VS.NET using C#
Hi,Does anyone know if there is a way to create a site using C# and Visual Studio.NET 2003, but then use Dot Net Nuke to allow non-technical users to add content to the site. The current state of the site must be accessible in both VS.NET and DNN regardless of which application saved it last. Also preferably I would like the language used to remain C# even when edited by the marketing staff, so that I can still maintain it myself using VS.NET. Hope you understand what I mean.
If this is not possible, I wonder if anyone knows what solution I am after.
Thanks in adv...
Large image in a small size with clarity using ASP.NET using C#.net
Hi, How Can I show Large image in a small size with clarity using ASP.NET using C#.net We should not use two images.
Check this out: http://www.csharp-station.com/Articles/Thumbnails.aspxHanan Schwartzberg--------------------http://www.lionsden.co.il
you can create thumbnail og the large image using the following codeprivate Boolean ThumbNailCallBack()
{return false;
}
private void CreateThumbnail(Path)
{
System.Drawing.Image MyImage = System.Drawing.Image.FromFile(Path)System.Drawing.Image.GetThumbnailImageAbort CallBack = new System.Drawing.Image.GetT...
Receive mails from server use pop3 like Inbox using ASP.net and c#.net
Hi, I want to receive mails from directly from server using pop3 using ASP.net and C#.net , please any one help.
Thanks
Rajan
Friend, check this article how to implement the mail system using the POP3
http://www.codeproject.com/KB/IP/QMailClient.aspx
Good luck!Please Don't forget to click "Mark as Answer" on the post that helped you.This can be beneficial to other community members reading the thread.
We've used a commercial product from Lesnikowski which works really well:http://www.lesnikowski.com/mail/ -- Please Mark Posts that helped you as Answe...