|
Hi,
When i am getting value from data base is 200.00,
but when i am displaying it in label then it looks like 200.
but i want 200.00
'ItemTemplate
amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text)
'Footer
CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt)
-- modified at 1:44 Saturday 6th October, 2007
kiran banker
|
|
|
|
|
post your code
please don't forget to vote on the post that helped you.
|
|
|
|
|
banker_kiran wrote: CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt)
try this
CType(e.Row.FindControl("lblTotal"),Label).Text=String.Format("{0:#.##}",amnt);
please don't forget to vote on the post that helped you.
|
|
|
|
|
i was writing the stored procedure.there i wrote begin and end.Does it mean begin transcaction and end transaction?
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
No It does not mean begin transaction and end transaction.
It is just like
fun()
{
}
in C#
Naresh Patel
|
|
|
|
|
I recommend you buy a book on SQL. Guessing isn't a good way to learn.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Begin and End just specifies the Begning and End of a block not transaction
Shujaat
|
|
|
|
|
Hi All,
I have to write a macro in C# but not getting how at start. I did soem search on google but came to know that C# doesnt support macros. Is there any other way?
Thanks in advance...
|
|
|
|
|
What do you mean by macro ? Do you mean #define in C++ ? No, C# doesn't support it, and good thing, too. why do you need it ?
BTW, this is not an ASP.NET question.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for the reply. Sorry I put my question in wrong way. I want the.NET macro to record some lines of code so that I can use it in later whenever needed.
It works fine in 2003 but not working in 2005. Do I have make some settings so that it works fine.
Thanks again...
|
|
|
|
|
OK, I see. I've never used those macros, sorry. I assume there's a setting. Do you mean autocomplete, where you type in a part of the code and hit tab twice to see it filled ? I'm sure it's still there, but again, I never use it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks for reply. When u open a project press Alt+F8 u get Macro Explorer. There are some default macros written there but I right click and say run it doesnt work i dont know why
If u get anything on this then please let me know.
Thanks agian...
|
|
|
|
|
You're right, I'd both never seen that before, and couldn't make it do anything useful just now.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
Do your really mean a macro. Wouldn't a code snipped be better for that?
With macros, you can for example record some actions you do in your editor (Tools/Macros/Record) and replay them afterwards (Tools/Macros/Run). Of course you can program them, too.
With snippets, you can define code blocks with parameters (for types, names, ...) and use a shortcut to add them to your code. En example is the prop snippet that inserts a property.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
I have a gridview created with imagefields in one column. I want to remove all padding, etc. so that the images will touch (top to bottom).
I have set all spacing, borders, etc to zero but there is still space between the images. Does anyone know how to remove the spacing in the top and bottom of the cells?
|
|
|
|
|
Use CSS to control the layout
only two letters away from being an asset
|
|
|
|
|
What CSS code would control the spacing in the cell?
|
|
|
|
|
|
Thank you for your reply. You obviously think that I am stupid for asking that question as I read the condescension in your note. In my original message, I said that I had set all borders and spacing to zero.
Just to clarify, I had also set all cell spacing and padding to zero (-1) but I still have spaaces between the images in the cells.
Thanks for the assistance.
|
|
|
|
|
Then you're reading too much into a simple reply. Get a thicker skin, unless it's true.
only two letters away from being an asset
|
|
|
|
|
...which confirms my initial assessment
|
|
|
|
|
Have you tried setting the row height for each table row? I'm not for sure but you might be able to force the table to render the rows at a specific height (say the height of the image) by setting the row height either in your HTML or in the code-behind. Other than that you might need to use FireFox and FireBug (add-on for FireFox) to play with the values of spacing, padding, etc of the rendered page until you get it just right.
Smile and the world smiles with you. Laugh and the world thinks your insane.
|
|
|
|
|
Actually, I have set the row height for each. I was surprised to find that it shrunk the image and still left the space in between.
Thanks for the reply. Please let me know if you have any other ideas.
|
|
|
|
|
I'm having problem getting the method ConfigurationManager in the System.Configuration.
"it only finds (System.Configuration.ConfigurationSettings.AppSettings)"
ConfigurationManager is a new function in the .Net 2.0, and I want to use it.
But my Visual Studio 2005 tells me that it don't exisit in the current context.
I have both VS2003 ant VS2005 installed on my computer.
I have both .net Framework 1.1 and 2.0 installed on my computer.
When I look on the System.Configuration that is referenced in my project it referce
to the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll
I have added the using System.Configuration; in my .cs file.
So why don't I find it?
Thanks
Thomas
|
|
|
|