|
yes i've done that serial thing before thats a cool one
ok what about if the user is running the program several times a day the counter will deduct more,
listen i thought of something, give me your idea about it,
i set a counter yes, and a save the installation date, and then by every application start, i get the date, and compare by the date i have, the my date is smaller i update it by his date, and reduce the counter, but if the my date is bigger i just lock the application, so i think by this way i am double checking one by counter, two by the date,
please give me your idea
|
|
|
|
|
Yes, this is good idea, or you can store a date with the counter. if the stored date and current date is same then do not deduct the counter, other wise deduct the counter and update the stored date with current date. in this case the application will run for the expected number of days, regardless of current date. but again its up to you. because I cant predict the mentality of your client base. sometimes clients get to annoyed by very small things...
|
|
|
|
|
thanks a lot for help
cheers
|
|
|
|
|
Hi
I ran into a strange issue. I am able to put gridview inside asp:panel and scrolling works too. But the moment I down, the header of gridView scrolls above inside the panel and gets hidden.
I just want to scroll rows, not the header. How can I do that? Please advise. Following is what I am using.
On a side note, I have tried to wrap gridView in DIV but div doesn’t show the scroll bars in the first load for some reason.
Thanks
<asp:Panel ID="Panel1" runat="server" ScrollBars="Both" Height="200" Width="60%">
<asp:GridView ID="GvBidLists" AllowSorting="true" AllowPaging="false" runat="server"
AutoGenerateEditButton="true" DataKeyNames="ListId" EmptyDataText="No data available."
AutoGenerateColumns="False" >
<EditRowStyle BackColor="skyblue" />
<HeaderStyle BackColor="LightSteelBlue" ForeColor="#0000C0" Height="20px" HorizontalAlign="Center" />
<RowStyle Height="20px" VerticalAlign="Middle" />
<FooterStyle BorderColor="White" Height="20px" HorizontalAlign="Center" />
<Columns>
<asp:BoundField HeaderText="ListId" DataField="ListId" SortExpression="ListId" />
<asp:BoundField HeaderText="ListName" DataField="ListName" SortExpression="ListName" />
<asp:BoundField HeaderText="ProductTypeName" DataField="ProductTypeName" SortExpression="ProductTypeName" />
<asp:BoundField HeaderText="Size" DataField="Size" SortExpression="Size" />
</Columns>
</asp:GridView>
</asp:Panel>
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
have you seen this?[^]. There are many more examples at here[^]
|
|
|
|
|
Yusuf wrote: have you seen this?[^].
Have you seen the solution given there? There is nothing that would freeze a grid header in that css.
|
|
|
|
|
No I did not try that example. Nor did I made any claim as far as it working. If you see the second link it was to LMGTFY.
|
|
|
|
|
Yep... got that... was sort of a FYI to you!
|
|
|
|
|
Try:
Step 1 : Create a CSS class as following
.HeaderFreez
{
position:relative ;
top:expression(this.offsetParent.scrollTop);
z-index: 10;
}
Step 2 Set Gridview’s HeaderStyle CssClass as CssClass="HeaderFreez"
|
|
|
|
|
Hello,
I have some controls created at ItemDatabound. (created at itemdatabound because at item databound , i know which type of control to create).
In these controls, i have a button which increases size according to its Text. i want to fix the size for all other controls based on size of this button but when i get the width of button, it gives me 0 pixels.
Can anybody provide an idea on how to set the width for the rest of the controls.
i have tried grid's pre render method but somehow i cant find any of the controls created in itemdatabound .
Thanks
Mark
|
|
|
|
|
You need to do one thing.
Just change size of every dependent controls when the size of your button
changed. Not on ItemDataBound event.
You can use load event for the same.
HTH
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
what is photosynthesis example like bingmaps site
j somasekhar
|
|
|
|
|
If you look at a photosynth on Bing there are links under More Information that tell you how it works, and how to create your own. What the application does is take a large number of photographs and combine them to create a panoramic image. When you move your mouse over it the white polygons represent the individual photos that were used.
|
|
|
|
|
Is there a way to add source-structured inputs dynamically to html through c#?
I'm adding inputs (HtmlGenericControls) dynamically to an ASP.NET.
If I have 10 inputs I'd like to "view source" and see them neatly stacked on top of each other instead of rendered back-to-back in a big block.
I've tried adding the following literal controls after each input in the loop but it doesn't seem to do anything:
LiteralControl newLine = (new LiteralControl(((char)10).ToString()));
LiteralControl carriageReturn = (new LiteralControl(((char)13).ToString()));
Do you know if there's a way to do what I'm trying to do?
|
|
|
|
|
What does it matter what the "view source" view looks like? How it is rendered is what is important.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Well first of all i have to agree with Mark Nischalke, really how the HTML is formatted is irrelevant it only matters how the browser is rendering it.
Having said that, I noticed in your code sample that you are creating the controls but not actually adding it to a place holder (which is how you should be dynamically adding controls to a web form) so maybe try adding your controls to a place holder and the HTML should render based on the order they were added to the place holder.
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
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
|
|
|
|