|
My email address is teddy.batarao.ctr@hurlburt.af.mil
Thanks for all the help!
TECABA
SYSTEM ADMINISTRATOR
NORTHROP GRUMMAN
SUNNY FLORIDA
|
|
|
|
|
I am using this ->
value='<%# DataBinder.Eval(Container,"DataItem.total")%>'
its working if there is already digits after decimal but if no digit is there it displays number as a simple integer I wish to display .00 with the number that doesn't have digits after decimal.
How to do it?
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
<%# DataBinder.Eval(Container,"DataItem.total", ".00")%>
|
|
|
|
|
Eval("MyFieldName", "{0:f2}")
will use a format string to force two decimal points, even if there are more or less than that in the actual number.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
I m doing a windows application using vb.net 2005 and Microsoft Access Database.I have created a datagrid and load it by records from database.But I can't update my database when I am changing the value of a cell in the datagrid.Can anyone plz help me so that I can update my database with the changed value of the cells in datagrid?
Sukanya
|
|
|
|
|
try <datagridid_updatecmd> procedure to implement it
With Thanks & Regards
Amit Sk Sharma
|
|
|
|
|
hi any one can tell how to use menu bars in asp.net,
using html menubars i did it in asp.net,
But i am not satisfy with that,
anyone can tell,easy way for that,
Magesh
|
|
|
|
|
can go to www.millionic.com
Jwalant Soneji (BE IT)
Mobile: +91 9969059127
http://jnsoneji.spaces.live.com
http://jnsoneji.blogspot.com
|
|
|
|
|
Hi i am new member of this code project,plz explain me how to submit my articles and codes.........,
Magesh
|
|
|
|
|
Simply go over the articles menu at www.codeproject.com and the select submmit an article.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Tha nk u.........,
Magesh
|
|
|
|
|
i have 4 radio button, for example,
radiobutton 1 is A1
radiobutton 2 is A2
radiobutton 3 is B1
radiobutton 4 is B2
While i run the application, by default, it only allow me to checked either one of four radiobutton.
i want my application group it into two group, A1 and A2 in one group and B1 and B2 in another group. So, while i Click A1, A2 will be unchecked and while i click A2, A1 will be unchecked as well, and B1 and B2 is remain the same. So , this criteria also same as B1 and B2, while i click either B1 and B2, it is no effect A1 and A2, how to gorup it ar? without put it into group box, anybody can help me ?
Best regards,
Chee ken
|
|
|
|
|
cheeken2u wrote: without put it into group box
Why not??
|
|
|
|
|
You suppose to use group box to group radio buttons. If you don't want to that you can still imitate the radiobuttons as grouped in your code. Please see the example below. I have controled two radio buttons out of a group box. If one's state changes, I change the other radio button's states also.
<br />
Private Sub RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged<br />
Select Case RadioButton1.Checked<br />
Case True<br />
RadioButton2.Checked = False<br />
Case False<br />
RadioButton2.Checked = True<br />
End Select<br />
End Sub<br />
<br />
<br />
Private Sub RadioButton2_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged<br />
Select Case RadioButton2.Checked<br />
Case True<br />
RadioButton1.Checked = False<br />
Case False<br />
RadioButton1.Checked = True<br />
End Select<br />
End Sub<br />
<br />
<br />
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Hi Chee Ken,
If you don't want to use GroupBox controls to group your radio buttons, because you don't want the border and title of that control, you can use Panel controls, which are practically the same, but have no visible borders and no title text. Otherwise they work pretty much the same way.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
anyone can help me how to get number of weeks in a month... using vb.net, and what week did i select an specific date?....
ex : sample pickdate "
02/14/2007 (using a datetimepicker)
output: 2nd week of Febuary...
pls help thanks
start a new beginning in every ending; thats what life for......
|
|
|
|
|
moomoooomoo wrote: anyone can help me how to get number of weeks in a month
Number of days in a month divided by seven.
moomoooomoo wrote: and what week did i select an specific date?....
Day of the month minus one divided* by seven plus one.
* Assuming an integer division
|
|
|
|
|
Colin Angus Mackay wrote: Surely that's easy
Little Bit of constructive criticism. not everybody has developed thes logical thinking patterns that come withd programming experience. This could be percieved as condescending.
Posted by The ANZAC
|
|
|
|
|
The ANZAC wrote: not everybody has developed thes logical thinking patterns that come withd programming experience.
Really? I thought this was primary school stuff. Oh, well... Maybe you're right.
|
|
|
|
|
Well...not everyone thinks the same, some are more naturally left or right brain sided which tends to different frames of thought. The most unbias way to write is to assume they know nothing. Without the implications of an obvious answer, and without writing in a manner that seems to belittle. This way you cover all your bases without any chance of offense.
Posted by The ANZAC
|
|
|
|
|
Would you consider that the 5th of March 2007 is the first week of March then?
|
|
|
|
|
It is indeed the 1st week of March.
Looking at weeks on a calendar, or the number of weeks in the year, is different.
March 5th is in the 2nd workweek of March, or the 10th week of the year. Different context.
He was a snowflake, like other "unique" snowflakes, falling down, getting stepped on, and pushed aside to disappear.
|
|
|
|
|
ChandraRam wrote: Would you consider that the 5th of March 2007 is the first week of March then?
Yes (5-1)/7+1 = 1
|
|
|
|
|
That depends on if you consider a week to belong to a certain month, or if you consider a week to be able to belong to two months.
If the first of a month is a sunday, do you consider that single day to be the first week of the month, or does the week belong to the previous month?
---
single minded; short sighted; long gone;
|
|
|
|
|
Anyone have any idea where I can find information on updating MS Outlook records from a VB .NET application? I've been asked if my application can post scheduling information to Outlook's Calendar. I'm trying to find out if that is even feasible.
|
|
|
|