I am new to asp.net. what is the difference between the Gridview and Datagrid in Asp.net  Thanks sivakumar
I've been doing ASP.NET development for a little while now, and I've used both the GridView and the DataGrid controls before for various things, but I never could find a really good reason to use one or the other. I'd like to know:  What is the difference between these 2 ASP.NET controls? What are the advantages or disadvantages of both? Is one any faster? Newer? Easier to maintain?  The intellisense summary for the controls doesn't seem to describe any difference between the two. They both can view, edit, and sort data and automatically generate columns at runtime.  Edit: Visual Studio 2008 no longer lists DataGrid as an available control in the toolbox. It is still available (for legacy support I assume) if you type it in by hand though.
I know that $S_n$ is generated by a number of things, like all transpositions, all transpositions of the form $(1\,a)$, the transpositions $(1\,2),(2\,3),\dots,(n-1\, n)$, and  just the two elements $(123\dots n),(1\,2)$.      Suppose $n$ is prime. If you just have $(123\dots n)$ and some arbitrary transposition $(a\, b)$, how does this also generate $S_n$?    Can you somehow get to $(1\,2)$ or reduce it to some other previous case? Is there a continuous function such that $\int_0^{\infty} f(x)dx$ converges, yet $\lim_{x\rightarrow \infty}f(x) \ne 0$? Is there a continuous function such that $\int_0^{\infty} f(x)dx$ converges, yet $\lim_{x\rightarrow \infty}f(x) \ne 0$?  I know there are such functions, but I just can't think of any example. How to move a database from SQL Server 2012 to SQL Server 2005 What are my options if I need to move a database from SQL Server 2012(32bit) to SQL Server 2005(64bit)?  I know I cannot:   restore a backup of the database on SQL Server 2005 detach &amp; attach   I know I can:   use import data wizard, and I tried it on one database, but it only moves data, and even that was troublesome as I needed to do a lot of work creating temp tables to maintain identity columns, recreating all FKs, indexes etc.    Is there an easier option? php SimpleXML check if a child exists How do I add SSL to a .net application that uses httplistener - it will *not* be running on IIS Most recent edits in bold I am using the .net HttpListener class, but I won't be running this application on IIS and am not using ASP.net.  This  describes what code to actually use to implement SSL with asp.net and  describes how to set up the certificates (although I'm not sure if it works only for IIS or not).    The class documentation describes various types of authentication (basic, digest, Windows, etc.) --- none of them refer to SSL.  It does say that if .  Is this going to be a one line property setting and HttpListener figures out the rest?    In short, I need to know how to set up the certificates and how to modify the code to implement SSL.  Although it doesn't occur when I'm trying to access HTTPS, I did notice an error in my System Event log - the source is "Schannel" and the content of the message is:     A fatal error occurred when attempting   to access the SSL server credential   private key. The error code returned   from the cryptographic module is   0x80090016.   Edit: Steps taken so far   Created a working HTTPListener in C# that works for HTTP connections (e.g. "" Created a certificate using makecert.exe Added the certificate to be trusted using certmgr.exe Used Httpcfg.exe to listen for SSL connections on a test port (e.g. 8090) Added port 8080 to the HTTPListener via listener.Prefixes.Add("); tested an HTTP client connection, e.g. (") in a browser and receive correct return tested an HTTPS client connection, e.g. (") in a browser and receive "Data Transfer Interrupted" (in Firefox) debugging in visual studio shows that the listener callback that receives the requests never gets hit when the HTTPS connection starts - I don't see any place that I could set a breakpoint to catch anything else earlier. netstat shows that listening ports are open for both HTTPS and HTTP.  the HTTPS port does go to TIME_WAIT after a connection is attempted.  and  don't catch any of the traffic, I guess it doesn't get far enough in the process to show up in those HTTP analysis tools   Questions   What could the problem be?  Is there a piece of .Net code I am missing (meaning I have to do more in C# other than simply add a prefix to the listener that points to HTTPS, which is what i have done) Have a missed a configuration step somewhere?  What else might I do to analyze the problem? Is the error message in the System Event log a sign of the problem?  If so how would it be fixed? Why is Buoyant Force $V\rho g$? For a submerged object, buoyant force ($F_b$) is defined as:  $$F_b = V_{\text{submerged}} \times \rho \text{ (density)} \times g \text{ (gravitational constant)}$$   Conceptually, the buoyant force equation says that buoyant force exerted is equal to the weight of the volume of water a given object displaced. Why? I went online to   and found the following explanation, but it seems like non-sequitur to me:      Explanation: When an object is removed, the volume that the object occupied will fill with fluid. This volume of fluid must be supported by the pressure of the surrounding liquid since a fluid can not support itself. When no object is present, the net upward force on this volume of fluid must equal to its weight, i.e. the weight of the fluid displaced. When the object is present, this same upward force will act on the object. How to send and receive data from Salesforce to a FTP server My question is how I can intergrate Salesforce with different FTP servers in real time. I have read some articles about it, but to be absolutely sure I thought it would be a good idea to post a question here.  I want to be able to send and receive data from Salesforce as a csv file to a ftp server. How I'm thinking about doing this is listed below.  Send the data:  Create a apex class which query the necessary data in Salesforce and create a csv file. I guess this is trivial? Then send the file to a web service created in Salesforce, just by calling it in the apex code. Create a web service in Salesforce which receives the data from the apex code. This web service should in some way send the data to the appropriate ftp server. I guess I can simply modify some of the code provided by Salesforce to make this work? The file is sent. Receive the data  This one is a bit trickier. I guess I have to pull the data from the FTP server by using my web service, which then send the file collected to the appropriate apex class. Or, the FTP server could send the data to the SFDC web service, I don't know if this is possible? The web services on the other side that sends the data to the ftp server, could send it directly to the SFDC web service, which then again forward it to the apex class. I guess the web service will use the remote site url to connect to the SFDC web service? How to revert to factory settings? Java equivalent of unsigned long long? In C++, I enjoyed having access to a 64 bit unsigned integer, via unsigned long long int, or via uint64_t. Now, in Java longs are 64 bits, I know. However, they are signed.  Is there an unsigned long (long) available as a Java primitive? How do I use it? Direct observations of a black hole? Clear up confusion about the meaning of entropy So I though, and was told, that entropy is the amount of disorder in a system. Specifically the example of heat flow and it flows to maximize entropy. To me this seemed odd. This seemed more ordered to me, from two things (hot and cold) to one thing (lukewarm).   So as I have read today on wikipedia        In recent years the long-standing use of term "disorder" to discuss   entropy has met with some criticism.[20][21][22]      When considered at a microscopic level, the term disorder may quite   correctly suggest an increased range of accessible possibilities; but   this may result in confusion because, at the macroscopic level of   everyday perception, a higher entropy state may appear more homogenous   (more even, or more smoothly mixed) apparently in diametric opposition   to its description as being "more disordered". Thus for example there   may be dissonance at equilibrium being equated with "perfect internal   disorder"; or the mixing of milk in coffee being described as a   transition from an ordered state to a disordered state.      It has to be stressed, therefore, that "disorder", as used in a   thermodynamic sense, relates to a full microscopic description of the   system, rather than its apparent macroscopic properties. Many popular   chemistry textbooks in recent editions increasingly have tended to   instead present entropy through the idea of energy dispersal, which is   a dominant contribution to entropy in most everyday situations.    So what this is saying basically many people mistake the macroscopic outcome of entropy in the same manner as I have above. Seemingly two dissimilar things combining and becoming one.   They say to understand it microscopically. But this still is odd to me, take for example the particles in a box, when they come to thermal equilibrium they are said to have the most entropy they can within their system (from wiki again)     Entropy – in thermodynamics, a parameter representing the state of   disorder of a system at the atomic, ionic, or molecular level; the   greater the disorder the higher the entropy.[7]   What is disorder in the molecular sense I guess is my question. When the particles all come to thermal equilibrium they all seem to be uniform, which I equate with ordering.  I feel disorder in the molecular sense would be fast moving particles, making a mind boggling amount of interactions with each other. Such as in a hot gas, hot gas seems super disordered, but put cold gas in thermal contact with it, let them come to thermal equilibrium, and now they are more ordered!? Line-breaking widget layout for Android I'm trying to create an activity that presents some data to the user. The data is such that it can be divided into 'words', each being a widget, and sequence of 'words' would form the data ('sentence'?), the ViewGroup widget containing the words. As space required for all 'words' in a 'sentence' would exceed the available horizontal space on the display, I would like to wrap these 'sentences' as you would a normal piece of text.  The following code:  public class WrapTest extends Activity {     /** Called when the activity is first created. */     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         LinearLayout l = new LinearLayout(this);         LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(                 LinearLayout.LayoutParams.FILL_PARENT,                 LinearLayout.LayoutParams.WRAP_CONTENT);         LinearLayout.LayoutParams mlp = new LinearLayout.LayoutParams(                 new ViewGroup.MarginLayoutParams(                         LinearLayout.LayoutParams.WRAP_CONTENT,                         LinearLayout.LayoutParams.WRAP_CONTENT));         mlp.setMargins(0, 0, 2, 0);          for (int i = 0; i &lt; 10; i++) {             TextView t = new TextView(this);             t.setText("Hello");             t.setBackgroundColor(Color.RED);             t.setSingleLine(true);             l.addView(t, mlp);         }          setContentView(l, lp);     } }   yields something like the left picture, but I would want a layout presenting the same widgets like in the right one.        Is there such a layout or combination of layouts and parameters, or do I have to implement my own ViewGroup for this? Why are SO participants so unfriendly? Run script as root at login (no sudoer user, shell session) Much like /etc/profile and ~/.profile but ran by root instead of the user is doing login. /etc/rc.local runs after boot but I need running the script before login. The user is not a sudoer one.   Thanks! Duplicate questions in feed, and questions incorrectly marked as unanswered I see duplicate questions in the feed (Why is the book still wanted if Aida has memorized it?) and the question is marked as "unanswered" even though it has an upvoted answer.  I would expect unique questions in the feed, as well as questions with answers to not be marked as unanswered.   App Version: 1.6.3.4 Device: iPhone 6 OS Version: Version 10.2 (Build 14C92) Assignment statement used in conditional operators I'd like to do something like this:  &gt;&gt; foo = @() functionCall1() functionCall2()   So that when I said:  &gt;&gt; foo()   It would execute functionCall1() and then execute functionCall2().  (I feel that I need something like the )  EDIT:  functionCall1 and functionCall2 are not necessarily functions that return values. Which registry keys are impacted with Xerox Printer driver installation? I am implementing a driver deployment with Samba.  Every possible model of printer found an easy solution, except for Xerox Workcenter.    After browsing the Internet, I found that Xerox printer driver has to change some registry keys in order to work, keys which are changed by the executable downloadable on the manufacturer website.  Do you know which key are impacted by the Xerox Workcenter GPD driver?  This corresponds to the error message I get while uploading to Samba, which asks the position of a file named as a registry key.  I browse Samba bug tracker and they did not specify which registry key are impacted.  I contacted Xerox itself, but despite that fact that we have a support contract and really a huge number of workstations, it seems that Xerox is not willing to help us. Does existence of $\gcd$ implies PID? We know that if $A$ is a PID, then we can guarantee the existence of a $\gcd$ between two elements. My question is, does the converse hold? If I know that every two elements have a $\gcd$, do I know that the ring is a PID? My intuition says no, in that case I would like a counter-example.  Thanks. Can bug reports and feature requests requiring SE Dev attention be reported on per-site metas, or do they need to all go here?