|
Well, you can use the Calculator that comes with Windows, or you can read up[^] here.
You can find the conversion-routines (like this[^] one) on Google
I are troll
|
|
|
|
|
Hi All,
I have a requirement, wherein there are expand and collapse gridrow (gridview asp.net 2.0).
Has anyone worked on it or provide a sample code for this asap.
For eg: I have a Author Table with Author ID and Author Name.
If I click on a expand/collapse button before Author ID, it should list out all the books written by him. Something like this?
-----------------------------
+/- Author ID | Author Name
-----------------------------
Book ID | Book Name
-----------------------------
Book 1 | Book 1 Name
Book 2 | Book 2 Name
-----------------------------
Anyhelp will be highly appreciated. I googled through lots of sites, but most of them are using third party controls, which I have a restriction to use it.
|
|
|
|
|
I think you want to investigate using the 'RowCommand' functioanlity of the GridView. For instance; I have a grid that I have placed a button in as follows;
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="btnViewApp" CommandName="ViewApplication" Text ="View" ToolTip ="View Application" runat ="server" CssClass ="Button" />
</ItemTemplate>
</asp:TemplateField>
The CommandName attribute is used in the code behind;
Protected Sub gridview_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles gridview.RowCommand
If e.CommandName = "ViewApplication" Then
{code to hide the row here.}
End If
End Sub
I can't find a snippet of code quickly for the actual hiding of the row. It isn't very straight forward. But perhaps this will get you close enough. I will reply again if I come across it. Code I have infront of me pulls values out of the selected row. Perhaps you can massage it a bit.
Dim btn As Control = DirectCast(e.CommandSource, Control)
Dim grw As GridViewRow = DirectCast(btn.NamingContainer, GridViewRow)
Session("celltext") = grw.Cells(0).Text
|
|
|
|
|
hi tech freaks...
i just want to make a social network using .net .
in this social network, we have friends list to be built and if i click on friends list then i should get all members in the list in columns. two people icons per column. i should also get the list of mutual friends if i click a button below each friend. if i hover mouse on the friend's icon then the icon should get lifted up and 4 or 5 sub icons should come around the icon like a spider web kind of thing . each icon should have profile picture of that person's friends. and if i bring down mouse, it should go back to normal state. i should have a link below the each icon which can give list of all friends of my friend.
please somebody help with required code
|
|
|
|
|
I don't know how to break this to you, but I don't think anyone on CodeProject will give that code to you. If you build it and get stuck with a programming problem or maybe even a design problem, then lots of people will jump at the chance to give you some help. But, no one, here, will build this for you for free.
If you want someone to build this for you, try Rent-A-Coder[^].
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
hello ,
i developed a .NET software which i want people to download from the net.
i know that if they never used a .NET product they probably dont have the right framework installed on their PC
is there a way in ASP to know if remote computer has right framework or not ?
coz by this i will be able to send him either a small sized file or a big sized one which includes the framework installation
thanks in advance
avi
|
|
|
|
|
If they're using IE, then the USER_AGENT of the browser contains the .NET Framework version that they have installed on their system.
Sometimes Firefox/Mozilla will also have the information in its USER_AGENT.
Basically, unless you put something on their computer like an Applet or Silverlight doo-hickey, then you're just going to be shooting in the dark.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
tnx,
and what will happen if a prog will run without the framework installed?
will it be friendly or just crash ?
|
|
|
|
|
Crash. It may display a "Cannot find mscorlib.dll" or it may show "You need the .NET runtime." It's been a long time since I've seen a Windows computer without .NET on it.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi Guys,
I've got a problem rounding floats, when adding a small value repeatedly to another, eventually small errors creep in.
float test = 0;
float increment = 0.2f;
for (int i = 0; i < 100; i++)
{
test += increment;
}
if (test != increment * 100)
throw new ApplicationException("Rounding Error!");
What are the available options to get around this?
regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
The Ethically Correct Answer: Floating point arithmetic usually comes with errors because of the representation of the significand. A good understanding of floating-point number representations can assist you in finding a good solution for your problem. Try reading What Every Computer Scientist Should Know About Floating-Point Arithmetic[^].
The Unethical Answer: If you would rather take the myopic path and just get a solution, change your float s to decimal s.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Awesome, cheers.
Have no fear, no WTF's from me, i need to understand how stuff works, so i'm going to go with option A.
Cheers for the pointer
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Most computer floating-point types can only precisely store integer multiples of powers of two; the size of the integer varies with the floating-point type. For example, even a single-precision float can precisely store the value 1/2, 5/16, or even 16,777,215/633,825,300,114,114,700,748,351,602,688 (that's (2^24-1)/2^99). Unfortunately, just as a decimal representation of numbers that do not factor into a power of ten will be an approximation (1/3, for example, may be written as 0.33, or 0.3333333, but neither is entirely precise) so too with binary representations of factions other than powers of two.
Depending upon what exactly you are doing with your data, it may be useful to re-scale values. For example, if everything will be a multiple of 0.01, you should scale your numbers up by a factor of 100. A single can store precisely any integer up to 2^24, and a double can store any integer up to 2^48.
|
|
|
|
|
I've just run NGen on an .exe assembly, to install, and it says all is up to date, but there is no Native Assembly folder in the GAC, nor is there any Native Assembly service. What's up?
|
|
|
|
|
I installed the same provider and oracle client at my local machine and production server. I am able to connect to oracle database through my machine but I get this error when I execute the same code on server.
Oracle.DataAccess.Client.OracleException . The provider is not compatible with the version of oracle client.
The production server is Window server 2003
I need to sort this out ASAP.
Can anybody help me.
|
|
|
|
|
Hello,
I am looking for the methodology to develop the program (preferably webservice) to allow the multiple users on the LAN , to have the certain permission based access on the storage media (like westren digital mybook that connects to the usb port of the computer) ,
so that every user has a purticular quota on the storage media and no body else can access
their folder as well.
need some guidence in this regard.
|
|
|
|
|
hello friends,
i am developing an application which read all the bounce emails in the ms-outlook.
1) i configured my ms-outlook with rediffmailpro.com and sent a email with invalid email-id i got bounce/failured mail back in response of it.
but my original message comes into .msg file. why?
2) i configured my ms-outlook with gmail.com and sent a email with invalid email-id i got bounce/failured mail back in response of it. but my original message doesn't came into .msg file. why?
why these 2 configureation are differnet? please help.?
Regards,
Shakil.
Shakil.
Softwared Developer Team,
Mumbai-INDIA
|
|
|
|
|
It has to do with the way the mail server handles the bounce. Sometimes they include the message inline and sometimes they add it as an attachment. Sometimes the attachment has an .msg extension, sometimes it has a different attachment. Unfortunately, if you don't control the mail server, you can't control the way that they will return to you.
Curtis.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
hi all
what does Increment method of the performancecounter class
do ???
what does it increment ?? time step ??
|
|
|
|
|
"Increments the associated performance counter by one through an efficient atomic operation."
Source[^]
I are troll
|
|
|
|
|
Hi all, What are all the content involved in Content Management system? For ex, .Net contains Xml, linq, sliverlight, ado.net etc.. like that.
Thanks in advance.
|
|
|
|
|
A content management system manages content, not source code. From a dictionary Web site, one of the meanings of "content," the most applicable here, methinks, is "The material, including text and images, that constitutes a publication or document."
Now, if content consists of text and images, things like XML, LINQ, Silverlight, and ADO.NET don't really fit into this. You can build a content management system with any and all of those technologies, but they are not the content.
If you'd like to learn about content management systems in the .NET world, you can refer to MojoPortal[^] or DotNetNuke[^]. Those are relatively mature content management systems in the open source space. Ostensibly, that means that you can dig through the source and figure out how a content management system works, why it works the way it does, and (most importantly) WHAT comprises a content management system.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Start out with a Definition Study
I are troll
|
|
|
|
|
Exactly what I wrote but so much more concise!
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
modified on Friday, February 27, 2009 10:49 AM
|
|
|
|
|