Posts

asp.net - How do I show a modal dialog while the databind occurs? -

मेरे पास एक ग्रिडव्यू के साथ एक फ़ॉर्म है जो जटिल संग्रहीत कार्यविधि (वित्तीय डेटा) के लिए बाध्य है। इस क्वेरी को चलाने और ग्रिडव्यू लोड करने में लगभग 3 मिनट लगते हैं। उपयोगकर्ता अधीर हो जाते हैं और बार-बार "खोज" पर क्लिक करते हैं, जो सिर्फ चीजों को बदतर बना देता है। एक अंतरिम समाधान के रूप में, मैं एक प्रगति पट्टी दिखाना चाहूंगा, और मुझे एएसपी.नेट AJAX ModalPopupExtender। यह पृष्ठ में विस्तारक जोड़ने के लिए मेरे पास कोड है: & lt; ajaxToolkit: ModalPopupExtender आईडी = "mdlPopup" runat = "server" TargetControlID = "बटन 1" पॉपअप कंट्रोलआईडी = "पीएनएल पॉपअप" पृष्ठभूमि क्रास क्लास = "मोडल बैकग्राउंड" / & gt; & Lt; asp: पैनल आईडी = "pnlPopup" runat = "server" CssClass = "updateprogress" शैली = "प्रदर्शन: कोई नहीं" & gt; & Lt; div संरेखण = "केंद्र" शैली = "मार्जिन-शीर्ष: 13 पीएक्स;" & gt; & Lt; img src = "../ छवियाँ / प्रगति.gif...

What is a good easy to use profiler for C++ on Linux? -

I need some profiles to run a C + code on Linux. Can you recommend some professions? Use the GPRF. Just -pg flag (I guess (but I'm not sure) you have to turn on optimization though.) And gpr.out file to analyze gpr. Use out which will be your executable. Example: GCC-GP-O whatever. / GETF Whatever Gmon.out The same thing with G ++ and CPP.

tomcat - Understanding JSP errorPage attribute -

I set up to see a simple test how & lt;% @ page errorPage = "error.jsp" %> Behaves it seems that when I threw an exception, "error.jsp" was executed on that page, but if I do test syntax errors such as ";", then still me I'm getting the Tomcat error page. Do I have something missing or error page on any type of error? Is not executed? The JSP error page is only for timely errors (when the page is full), Tomcat Errors collect errors when servlet container tries to compile your JSP.

c# - Find the most frequent numbers in an array using LINQ -

इस सवाल का पहले से ही एक उत्तर है: 5 जवाब सूची & gt; int & gt; ; ए = नई सूची & lt; int & gt; {1,1,2,2,3,4,5}; मैं LINQ के लिए नया हूँ यहां की कुंजी और एकत्रीकरण विधि है: सूची & lt; int & gt; सूची = नई सूची & lt; int & gt; () {1,1,2,2,3,4,5}; // समूह मूल्य और गिनती वारंवारता var क्वेरी = मैं सूची ग्रुप में i से i जी में नया चुनें {g.Key, Count = g.Count ()}; // अधिकतम आवृत्ति int whatsTheFrequencyKenneth = query.Max (जी = & gt; जी। गणना); // उस आवृत्ति के साथ मानों को खोजता है Inumerable & lt; int & gt; मोड = क्वेरी। जहां (जी = & gt; जी। संख्या == whatsTheFrequencyKenneth)। चयन (जी = & gt; जी। के); // डंप फॉर कंसोल फॉरच (मोड में मोड) {Console.WriteLine (मोड); }

java Generics legacy compitability problem -

This code is compiled properly and when "004b" is executed, then how does it happen? Does a classcastException Public static zero enclosed (list list) {list.add ("004b"); } Public static zero main (string [] args) {List & lt; Integer & gt; IntList = New Arrestist & lt; Integer & gt; (); IntList; Println (intList.get (0)); } Tip: Do not mix crude And general typing Turn on the usual type of warnings of your Java compiler, it will tell you about your useless code. If you use the "checked archive" type (for example created using the archive. Checked List (...)) Exception if you type incorrectly Find the object in the collection.

c# - Windows Forms class partial public issue -

I am using VSTS 2008 + C # + .NET 2.0 to develop the Windows Forms application. I found by default, the new form we created will be marked as partially public. My concern is whether to expose the public as a security risk? Should we mark it as private? Any effect for efficiency if we mark it as private? BTW: I personally got the compilation error when marking the class partially in the class here, the compilation error message, any ideas are wrong? Error 1 elements can be defined in a namespace, which can not be explicitly declared as private, protected or protected internal C: \ FooTest \ Form1.Designer. C If you define it personal, then what is the purpose of being a class? Nobody will use it outside of that file, even your main program (probably running on program.cs) partly means that your class was divided, so your form class will be in your Forms file contains more than one component. VS has put the generated code in its own file and the other in its code. You c...

php - How do you install simplehtmldom in ubuntu -

I am trying to write a screen scrapper in php. I know how to make regular expressions. However, I have found a library that seems to remove the need to use regular expressions while screen scrapping. This is called SimpleMaldom. Although I do not even know how to install it, I downloaded it from the source phone but did not explain how to install it manually. I am using Ubuntu 9.04. Any help would be appreciated. Thank you, Glenn. For PHP, you will usually package PHP code elsewhere with your code. Requires to be included in PHP. Then enter simple_html_dom.php elsewhere in your application directory: is required ('simple_html_dom.php'); Installing the file in the OS does not really get anywhere because it needs to be accessible on your server. However, you can place the PHP file anywhere on your application in your web root and then in the context of the requirement of this file.