|
Thanx.
I'm going to check System.Net.Mail.
Anyway, you say that non-ASCII characters are written as =xx.
Ok, but I don't find this format in my string ("=?utf-8?q?dt.15.01.2007=20ABC.xls?=").
I've got "=?" that seems to be like an "open tag" (like '<') and at the end of the string I've got "?=" (like '>').
In the middle of the string I've got a blank space written as "=20" (and this is hex) but is the only non-ASCII character written with the format you say.
Anyway, now I re-check the MIME RFCs.
Thanx again
|
|
|
|
|
Yes, it's hard to say anything about the format from your example file name. There aren't any characters in it that really needs any special encoding. Perhaps the space character is considered a non-standard file name character, that triggers the encoding. The space is of course an ASCII character, but obviously it's decoded anyway.
Anyhow, you should find enough information in the RFCs if you need to decode the format.
---
Year happy = new Year(2007);
|
|
|
|
|
Hello friends,
Could somebody help me to solve the below issue.
I am using odbcdataadapter in my application
the select query for the adapter is something like this..
select * from employees where wages <5000
I display the records in an interface & let the user to edit it.
When the user increases the salary of the employee above 5000.., I call the update function of the adapter class to update the dataset. the databse is updated correctly & the value in the dataset is also updated for the row.
But my prob is, on updating I want the row to be removed from the dataset, since the where condition fails. But it doesn't happen in my case .
Am I missing some important link.. else what is going wrong ..
the where condition works fine only on the initial loading ..
Thanks for the help in Advance
|
|
|
|
|
It sounds like you're not using a DataGridView, otherwise the update would have been made to both the Datasource and the DataGridView.
What are you using to display the records?
Because if you're not using an Autobound Control then you will have to re-execute your Select Query to Fetch the updated records.
Live in fragments no longer. Only connect.
|
|
|
|
|
Don't you think this question would have better chances to be answered, if asked in the VB.NET forum.?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Hie guys. I got a problem. Recently i was working on files. All was fine until i tried reading from a binary file such as an mp3, dll file. Reading was not a problem but the problem came when i tried displaying the contents that i read into a byte[]. From the analysis that i did, i realized that the method **Encoding.ASCII.GetString() ** somehow stopped when it encountered a null character i.e binary 0. Can anyone help me? Below is a snippet of the code
.......
.....
FileStream fs=new FileStream(@"C:\example.mp3",FileMode.Open);
byte[] buffer=new byte[ fs.Length ];
fs.read(buffer,0,buffer.Length );
txtOutput.Text=Encoding.ASCII.GetString(buffer);
|
|
|
|
|
Quaspam wrote: From the analysis that i did, i realized that the method **Encoding.ASCII.GetString() ** somehow stopped when it encountered a null character i.e binary 0.
Of course, strings are null terminated. Why would you want to see an MP3 in a textbox ? How do you expect that to be worth anything ? I know the ID3 tags are at the end ( null terminated text for V1 tags, V2 are compressed ), but why show them in a textbox ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: Of course, strings are null terminated
That's why romans were not using strings. They were not not used to 0's (just I, II, III, ...)
SkyWalker
|
|
|
|
|
Can a classlibrary detect an event occurrance in the main form which uses the class library. if so how to detect that?
|
|
|
|
|
If a class exposes an event, and another class subscribes to it, then where those classes come from is irrelevant.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Events are only detected on Windows Forms. So you can pass whatever action you want to your class library from your Form's raised event. Dont worry about the class library being unable to handle events.
Allow the Form to do that.
Live in fragments no longer. Only connect.
|
|
|
|
|
Hi.
This one is realy nasty.
Does anybody know if there is a free .NET library for handleing MIME messages(used for SOAP attachments)?
I'm accessing a java-powered web service and I need to send attachments to it. The standards it supports for receiving atachments from clients are MIME and DIME. However, there are also functions that send files from the service back to me. And here is the problem: THE ONLY FORMAT USED BY THE SERVICE FOR SENDING ATTACHMENTS IS MIME. AND .NET HAS NO SUPPORT FOR MIME. So I get exceptions when getting the response from the server.
Is there any way to work with MIME in .NET??
Thanks.
|
|
|
|
|
hi guys
i have about this
if i click on textbox in any program such as Msn messager or notepad etc. how do i find them by using C#?
thanks
|
|
|
|
|
You want to find the textbox control ? There are windows APIs for that, you can PInvoke them in C#. I think it's WindowFromPoint, or something like that.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Can you give me some sample code? please!
|
|
|
|
|
Does google not work where you live ? The API just takes a point ( well, an X and a Y ), and it returns a HWND ( so, what's returned needs to be an IntPtr and you create a control, and set the Handle property to be the return value, to get a instance of the control.
If you google for C++ help, then you'll find all the help you need, if you add the bits I just told you.
You know, just because we know how to find info, that doesn't mean we've used this API. I've never written C# code that uses WindowToPoint.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
[DllImport("user32")]
public static extern int WindowFromPoint(int x, int y);
SkyWalker
|
|
|
|
|
Woo Hoo - my guess was right !! What do I win ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
my respect
SkyWalker
|
|
|
|
|
how can i use that? please sample code!
|
|
|
|
|
|
hello
i'm stuck on the problem of accessing the sub items of a listview control. the values of sub columns are not being accessed.
i'm using the following code
private void ColumnList_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
ListViewItem selection = ColumnList.GetItemAt(e.X, e.Y);<br />
if (selection != null)<br />
{<br />
MessageBox.Show("Item Selected: "+selection.Text);<br />
}<br />
<br />
}
how ever the following code only accesses the values of the left most column only.
how do i access the values in sub items.
plz do reply.
Saira
|
|
|
|
|
The item has a sub items property, you can iterate over that.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
through the sub item property, items can only be 'added, cleared or removed' and those too only statically.
i want to access the values of the sub items at runtime when the mouse is pressed down on a value.
how can i do this?
|
|
|
|
|