|
Hi there friends,
Does any one have a function that can convert HTML content to RTF?
I did some research and I only found controls on this, but what I am actually looking for is a function that I can include in my codebehind.
Your help is most appreciated.
Kind regards
Alpheus
allphpro
|
|
|
|
|
Hii to all,
I want to know the Codeing standards Accepted by MNC.Im looking for the Standards.If any one Let me know
|
|
|
|
|
If you are working on MS technologies, stick to MS standards. They have something called Code Analysis post VS 2005 (not sure if it existed with VS 2005 too). Check that out.
|
|
|
|
|
what is MNC if i may ask?
Regards,
Jamil
|
|
|
|
|
He must mean this: MNC[^]
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
nils illegitimus carborundum
|
|
|
|
|
Do you mean something like this: Coding Techniques[^]
me, me, me
"The dinosaurs became extinct because they didn't have a space program. And if we become extinct because we don't have a space program, it'll serve us right!"
Larry Niven
nils illegitimus carborundum
|
|
|
|
|
I know there are lots of organizations that say you must not have any of the
top 25 security errors[^] in your code.
|
|
|
|
|
I got this simple GDI+ Code:
Bitmap image = new Bitmap(300, 50);
Graphics g = Graphics.FromImage(image);
g.FillRectangle(Brushes.White, 1F, 1F, 300F,50F);
Font font = new Font("Impact", 20, FontStyle.Regular);
g.DrawString("Saranghae", font, Brushes.Blue, new Point(10, 5));
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
image.Dispose();
g.Dispose();
But I got this output instead of an image
GIF89a,2���������3��f����������+��+3�+f�+��+��+��U��U3�Uf�U��U��U������3��f��������������3��f��������������3��f�ՙ�����������3��f���������3��3�33�f3��3��3��3+�3+33+f3+�3+�3+�3U�3U33Uf3U�3U�3U�3��3�33�f3��3��3��3��3�33�f3��3��3��3��3�33�f3ՙ3��3��3��3�33�f3��3��3��f��f�3f�ff��f��f��f+�f+3f+ff+�f+�f+�fU�fU3fUffU�fU�fU�f��f�3f�ff��f��f��f��f�3f�ff��f��f��f��f�3f�ffՙf��f��f��f�3f�ff��f��f�������3��f�����̙���+��+3�+f�+��+̙+��U��U3�Uf�U��U̙U������3��f�����̙�������3��f�����̙�������3��f�ՙ��̙�������3��f�����̙�������3��f����������+��+3�+f�+��+��+��U��U3�Uf�U��U��U�̀�̀3̀f̀�̀�̀�̪�̪3̪f̪�̪�̪������3��f�ՙ�����������3��f��������������3��f����������+��+3�+f�+��+��+��U��U3�Uf�U��U��U������3��f��������������3��f��������������3��f�ՙ�����������3��f���������������������!�����,����,2����H���*\Ȱ�Ç#J�H��ŋ��ȱ�Ǐ C�I��ɓ(S�\ɲ�˗0aj�I��͛8s�����̞@� J��ПF�*]ʴ)P�N�J�Ju*ԪX�j��*ׯ`Â�*��ٳIɢ]˶-M�n�ʝ.ݻx����߿��f�[ N��M�n��0�n����rړ�;>�V�_ÖCU�X������������ֆ�����܄�U�7_ǐ?��{A�s��G�]`�̦c��Ԙ7v�� ��i��7�2�� 2���c�3��h��k�[���_ԭ��O������p}��V���gYt�Y�g�����q�x��u.��)(2xbz"z�|��gae��FX(��~��>H���m�a��X@(�� �:>��_?y�6�x�b�e瑈�f�_<�S�$N9ٚ;���0v��~Aɦ�x>�b�^�戚 �G]��m)`j�!J���]���5��U���XnTe�� �|��XsnF ���ڝUB��i���Z��;�ڨ��.�]�nd�A���ivd즶�Z�õج���iZsN���\�n4az��C��rn �>��x��k�g��sn��R�-�,���p�j'k;����f*�p�Z���f۽m�(e�w���g���ŭG�z�(m�?�gs�l/�nI\k"�&:lr�rd���:����J���fj��,��ö�q��{��]v4g�i��2���!2�#���X6�a����t}jF3�<#W��*o(��Y�]/�L�J0���kp�/G��9��%�d�ӭ���U{~��bJ�V���t�̒�}�7ݬʎ�v�o���%G�%���A����C'�6/�F�No�\�_�=��w������4ؓo~��_V��o�����ׯ���_������`J�(����L�G�;
I ran it with Firefox and Chrome and yield the same results. In IE, I prompts me to run an addon and after running the addon, the image showed properly. Thanks
|
|
|
|
|
Hi guys,
I have three different queries and i would like to put them as one huge query.
This will reduce the number of times i make a connection to Sql Server and hence load
time on my page.
I have already managed to put two queries like:
SELECT COUNT(Cellsmart_ussd.dbo.ussd_log.[msisdn]) AS totentries,
(
SELECT COUNT(ussd_clean.dbo.ster_vouchers.sent) FROM ussd_clean.dbo.ster_vouchers
WHERE [sent] = '1' AND [sent_date] BETWEEN @start AND @end
) AS [totsent]
FROM [Cellsmart_ussd].[dbo].[ussd_log]
WHERE [request] = '*120*789#'
But i also want the query below to be part of the two subqueries above^:
SELECT COUNT([ussd_clean].[dbo].[unique_codes].[msisdn_pair]) AS tota FROM [ussd_clean].[dbo].[unique_codes]
WHERE [msisdn_pair] != '' AND [used] = '1'
Unfortunatly I can't use INNER JOINS because all these single queries refer to
different databases and tables.
Please help me
Thanks, Morgs
|
|
|
|
|
You can join all the three queries as following.
SELECT COUNT(Cellsmart_ussd.dbo.ussd_log.[msisdn]) AS totentries,
(
SELECT COUNT(ussd_clean.dbo.ster_vouchers.sent) FROM ussd_clean.dbo.ster_vouchers
WHERE [sent] = '1' AND [sent_date] BETWEEN @start AND @end
) AS [totsent],
(
SELECT COUNT([ussd_clean].[dbo].[unique_codes].[msisdn_pair]) FROM [ussd_clean].[dbo].[unique_codes]
WHERE [msisdn_pair] != '' AND [used] = '1'
) AS tota
FROM [Cellsmart_ussd].[dbo].[ussd_log]
WHERE [request] = '*120*789#'
It is in the same manner as you joined the first two query.
Also, please post database related question in General Database[^] section.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
hey thanks Jinal, that code worked and am so impressed now...thanks again
|
|
|
|
|
hello my dear...
what is trace listeners and where we use this, and i know about <trace>
j somasekhar
|
|
|
|
|
|
Here[^]
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
somasekhara777 wrote: hello my dear...
That's a bit creepy
somasekhara777 wrote: what is trace listeners and where we use this, and i know about <trace>
I can't add much to the previous 2 posts but: what are you hoping to achieve essentially? It may be that you need this, it might be that you don't but please post the scenario that you're working with so that we can advise.
|
|
|
|
|
One of the most useful debugging features of .NET Framework is Trace type (or class in C++). Functionally Trace is very similar to Debug type (and they share most of internal implementation), but unlike its Debug sibling that is supposed to be used only during debugging sessions, Trace functions can be compiled into a program and shipped to customers, so in case your users encounter a problem, they can activate trace by simply editing application configuration file.
Trace is easy to use and fully documented in .NET Framework documentation, so I will only briefly go through the basic trace features.
Refer to :
Writing custom .NET trace listeners[^]
http://www.codeguru.com/csharp/.net/net_debugging/tracing/article.php/c5919/NET-Tracing-Tutorial.htm[^]
Regards,
Jamil
|
|
|
|
|
Good Day All
i have a machine that i use as a server, the machine is running Windows 7 and IIS 7. I am using Windows Xp and my browswe is IE8.
In my application i use Infragistics menu controls. The menu freezes, and they dont respond or calloapse. I have tried the Compatibility mode but it still does that.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Good Day All
I have found the Problem was not on Infragistics. I think someone who does the same as i do will have this problem. To Resolve the Problem i went to the IIS Manager -->Collapse the the tree and select the Application Pools-->In the Managed Pipeline Mode, it was Integrated, i changed it to Classic and it worked.
Thanks
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hello my dear...
i have a doubt that in web.config file we can give database connection in
<appsettings> and also give in
<connectionstring>
what is the difference between both of them
please clarify my doubt
thanking you
yours
somasekhar
j somasekhar
modified on Friday, June 4, 2010 7:49 AM
|
|
|
|
|
There is no doubt, you can use either appSettings or connectionStrings. ConnectionStrings has built in support in the ConfigurationManager class where as using the appSettings you have to do yourself. Also, connectionSettings is where other components will look by default for connection information.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
thank you my dear
j somasekhar
|
|
|
|
|
Hi,
I have excel files where the teachers include student marks.
Excel files have these columns:
Id_Student ____libelle_matter1____libelle_matter2
how to import these files to table review(Id_Student,id_matter,marks)
I have the table matter: (id_matter, libelle_matter,coeff)??
Thanks.
|
|
|
|
|
|
Hi,thanks walterhevedeich
I want the teacher clicks on a button to send the files ,import/export wizard is manually, right?
|
|
|
|
|
Here is the C#.NET code...
// Connection String to Excel Workbook
string excelConnectionString = @"Provider=Microsoft .Jet.OLEDB.4.0;Data Source=Book1.xls;Extended Properties=""Excel 8.0;HDR=YES;""";
// Create Connection to Excel Workbook
using (OleDbConnection connection = new OleDbConnection(excelConnectionString))
{
OleDbCommand command = new OleDbCommand ("Select ID,Data FROM [Data$]", connection);
connection.Open();
// Create DbDataReader to Data Worksheet
using (DbDataReader dr = command.ExecuteReader())
{
// SQL Server Connection String
string sqlConnectionString = "Data Source=.; Initial Catalog=Test;Integrated Security=True";
// Bulk Copy to SQL Server
using (SqlBulkCopy bulkCopy = new SqlBulkCopy(sqlConnectionString))
{
bulkCopy.DestinationTableName = "ExcelData";
bulkCopy.WriteToServer(dr);
}
}
}
|
|
|
|