|
Assignment...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
While I would, or course, normally want to help somebody who has posted such a clear and incisive post as this; where the showed regard for the norms of the forums and had gone to such great lengths to help themselves, in this case I'm not. Instead I'm going to mock you. I am going to mock you to people I know, possibly even to complete strangers. On the journey home tonight, I'm going to mock you to more people, possibly holding you up to ridicule with anybody I encounter today.
I am tempted to dedicate my whole day to pouring scorn on you, in fact I'm even tempted to start an international campaign to track you down just so that you will travel through the rest of your life being mocked.
Now ask yourself - is this really worth it, or should I look for a career where I can dribble as much as I like?
|
|
|
|
|
I used to have a brutally sarcastic sense of humour....
Unfortunately, it's been dampened down by having to be professional for the last few years. You have however, inspired me to resume my hobby of creating elaborate insults.
Cheers for the laugh.
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Thanks - I think.
If this person hadn't so obviously been a troll, I'd probably have tempered it a little bit. Not much, but a little bit.
|
|
|
|
|
HI, I have a requirement to send picture messages or logos to the mobile device.
But i need to convert those pictures to hexadecimal format?
Send Picture SMS in HEX format
How to do this in c#?
G. Satish
|
|
|
|
|
Hexadecimal format!!!
...
!!!!!!
I get the feeling you have absolutely no idea what you are doing.
For your benefit, i will now tell you that you want to send the picture as BYTES, which are represented (usually) in hex.
For example, the number 13 in hex is D, which as a byte, would be represented by 0x0D, or perhaps just 0D.
So, now all you need is to get your picture into an array of bytes (perhaps by using a stream) and then send these bytes to your mobile device.
My current favourite word is: PIE!
Good ol' pie, it's been a while.
|
|
|
|
|
Hi i have tried a tutorial
www.codeproject.com/aspnet/ReadWebFolderContent.asp
I am facing problem on this section of code
string mapFolderPath = CreateWebFolderLink(siteUrl);
StringCollection ret = new StringCollection();
Shell32.ShellClass shell = new Shell32.ShellClass();
Shell32.Folder mapFolder = shell.NameSpace(mapFolderPath);
The problem is mapFolder.Parent has threw an exception
and system.notimplementedexception
Will you guys please guide me about the problem. It would be son nice of you.
Arslan Ilyas
Dot Net Developer
Red Signal
|
|
|
|
|
Hi,
Ive created a Crystal Report Viewer. I have a drop down list that allows the users to select a report and then the parameters display accordingly.
However, when I go to select a different report, the report changes but the previous parameters remain on the page...
I was wondering whether someone could help me. Im assuming I need to either delete or refresh these parameters. If this is the case, could you show me how to do this?
Thanking you in advance
|
|
|
|
|
Hi,
I created an Application that will send whatever is entered inside a text box as a mail.
I want to modify it so that it will send the details form a datagrid instead of textbox.
shown is my code using the textbox.I want it to use a datagrid instead of textbox.
How can we do it?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net.Mail;
using System.Net;
namespace Timetracker_TestApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnSend_Click(object sender, EventArgs e)
{
try
{
MailMessage msgMail = new MailMessage();
msgMail.IsBodyHtml = true;
msgMail.To.Add(new MailAddress("jk@tk.com"));
msgMail.Subject = "Is My App Working?";
msgMail.Body = txtMail.Text;
SmtpClient objSmtpClient = new SmtpClient("smtp.asnet.com");
objSmtpClient.Host = "smtp.asnet.com";
objSmtpClient.Credentials = new NetworkCredential("techvendors@asnet.com", "password");
objSmtpClient.Send(msgMail);
}
catch (Exception ex)
{ }
}
public void sentMail()
{
}
}
}
thanking you,
j
j
|
|
|
|
|
Hi,
Please help me in creating custom form control by inheriting Form class in C#. I want to create a form which will have specific properties like width, height, Background color etc and when I inherit my custom form to any child class it should create a form with all those properties.
Thanks
|
|
|
|
|
|
Suppose I have 40 objects on a single command button's click.
And the code is something around 800 lines.
Then I write dispose of all objects in the finally statement.
Is their any method which will tell me 4 objects out of 40 are not null yet...?
Actually I want to make my program more efficient. But I code a lot and forgot to destroy the object.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
Let the GC take care of it. Anyways, if you want an object reference to be null, you have to set it to null, the GC will take care of it then.
xacc.ideIronScheme a R5RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Ya you are right,
But as we know GC will run after some time. I want to make it my self. So I have to search every created object...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
If your class implemenst IDisposable interface, you can use "using " keyword to avoid disposing explicitly.
using(MyClass obj = new MyClass()){} This method ensures the objects are disposed properly.
|
|
|
|
|
Thanks for the reply.
I have few questions on that...
1. Where to write this...? Creation time of object.?
2. It will throw any error ?
3. If I call obj=null; in the code then any error occurred..?
Note:
Currently I don't have IDisposable interface. Please tell me how to create it..?
Will it work for all type of clasess...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
pankaj.indore wrote: Currently I don't have IDisposable interface. Please tell me how to create it..?
Will it work for all type of clasess...?
Then why you are worrying about object disposal ? Is your objects using any unmanaged resources ? If it is not using any unmanaged resources, you need not bother about the garbage collection. .NET framework will do it. If you want to invoke GC all System.GC.Collect()
And writing 800 lines inside a button click make your code a mess. Do you consider breaking it to small functions.
|
|
|
|
|
Breaking code in function is good. I already did it.
But actually I want to know how I know about those object whose are missing to dispose ..? If answer is GC then OK.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
pankaj.indore wrote: those object whose are missing to dispose
You won' be able to find that, because memory is cleared by GC automatically.
|
|
|
|
|
You can always call GC.Collect() but that is not such a good idea from the performance point of view.
I will use Google before asking dumb questions
|
|
|
|
|
If the object implements IDisposable then you should call Dispose when you finish using it. You can rely on the GC, but the GC might take some time to Dispose of your object. Also generally objects that implement IDisposable are using some limited resource, or unmanaged memory. The GC won't know about this, and what it sees as a trivial object might actually be quite large.
Theres no need to go implementing IDisposable on your own objects for no reason. Just let the GC handle it unless the object implements IDisposable.
|
|
|
|
|
i have one button and one gridview in that i have filled data using
public void GetData()<br />
{ SqlConnection con = new SqlConnection(constr);<br />
string cmd = "select a.errname as ErrorName, m.errortype as ErrorType, a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104) as CreatedDate from auditerrors a,auditerrormaster m where a.errtypeid=m.internalid order by m.errortype";<br />
SqlDataAdapter da = new SqlDataAdapter(cmd,con);<br />
DataSet ds = new DataSet();<br />
DataTable dt = new DataTable();<br />
da.Fill(ds, "auditerrors");<br />
dt = ds.Tables["auditerrors"];<br />
gvAuditErrors.DataSource=ds.Tables[0];<br />
gvAuditErrors.DataBind();}
in the same project i have another page with one text box in it. i want to select a row in the grid view and after selecting a row in grid view when i click on the button i want to transfer the createddate of that particular row in to the textbox of the other page
if anybody got the solution plz do let me know
tasks:
selecting a row on double clicking the row
transfering the content from first page to the other
regards
sunil
-- modified at 5:07 Thursday 22nd November, 2007
|
|
|
|
|
please anybody send me some solution
|
|
|
|
|
I want to send any URL to any web page that may be printed on webpage and also need to be opened in another new web page.
|
|
|
|
|
Why have you posted the same question 3 times, 1 minute apart ?
If you do this, no one will help you as it is considered very rude.
|
|
|
|