Posts

Showing posts from 2011

Opportunities available for ECE freshers in government sector?

Opportunities available for ECE freshers in government sector? Ece students have more oppurtunities in all fields.Currently the available jobs for ece students are 1.BHEL JOBS. 2.BEL JOBS. 3.RRB JOBS. 4.NTPC JOBS. 5.ISRO JOBS. not only for above jobs you can also apply for bank jobs.For all above jobs you should maintain minimum aggregate 60% throughout the degree,10th and in 12th.The relaxation is available for sc and st candidates. In case if you did M.Tech the have more preference in government jobs. -------------------------------------------------------------------------------- Source: Opportunities available for ECE freshers in government sector? Government Jobs http://governmentjobsalerts.com/opportunities-available-ece-freshers-government-sector-1405.html#ixzz1ctM8QHix

Shortcut keys to format document in visual studio

To format any document (.cs,XML,aspx,HTML etc) in visual studio 2008 use the following key combinations: To format whole document : ctrl +k ,(followed by) ctrl + d, To format the selection : ctrl +k, (followed by) ctrl +f, To format whole document of .aspx :ctrl+e, d CTRL+M CTRL+O - Collapse all regions not recursively CTRL+M CTRL+M (that's two key presses!) - collapse/open the current parent regionCTRL+M CTRL+L - Collapse/Open all regions in document recursively (meaning you might get only one line in the document - one big namespace region which is collapsed or you'll see the entire page code uncollapsed

Ajax ScriptManager

The ASP .NET ScriptManager manages ASP.NET Ajax script libraries and script files, partial-page rendering, and client proxy class generation for Web and application services. Here are some tips for the ScriptManager that I have found useful. Please note that many of these topics apply to ASP .NET 4.0. Access ScriptManager From Child You can only have one instance of the ScriptManager per page, so a common practice for a web form application that uses Master Pages is to put that reference in the master page. To access this instance from the child page, you must call the GetCurrent static method and pass in a reference to the page. ScriptManager sm = ScriptManager.GetCurrent(this); Access ScriptManager From UserControl From a user control, you do the same thing, but this time the page reference comes from the Control.Page property. ScriptManager sm = ScriptManager.GetCurrent(this.Page); Register Async PostBack Control To register a control as a trigger for asynchronous postbacks from
When you work with master pages and content pages, both can use the same events (such as Page_Load).Be sure you know which events come before others. You are bringing two classes together to create a singlepage class, and a specific order is required. When an end user requests a content page in the browser, the event ordering is as follows: Master page child controls initialization: All server controls contained within the master page are first initialized. Content page child controls initialization: All server controls contained in the content page are initialized. Master page initialization: The master page itself is initialized. Content page initialization: The content page is initialized. Content page load: The content page is loaded (this is the Page_Load event followed by the Page_LoadComplete event). Master page load: The master page is loaded (this is also the Page_Load event). Master page child controls load: The server controls on the master page are loaded onto the pa

sql server faq link

http://dotnetguts.blogspot.com/2007/08/faq-on-view-in-sql-server.html

How to call Server Side function from Client Side Code using PageMethods in ASP.NET AJAX

You cannot call server-side code ‘directly’ from client-side code. That is because by design, the server side code executes at server side and client side code at the client. However there are some workarounds. To call serverside code from javascript, you will need to use AJAX, and the easiest way out, is to use the ASP.NET AJAX Extensions. One option while using Microsoft ASP.NET AJAX is to call ASP.NET Web services (.asmx files) from the browser by using client script. The script can call a webservice containing server-based methods (Web methods) and invoke these methods without a postback and without refreshing the whole page. However this approach could be overkill sometimes, to perform the simplest of tasks. Moreover the logic needs to be kept in a separate .asmx file. We need something that is more ‘integrated’ with our solution. The option we are going to use in this article involves PageMethods. A PageMethod is basically a public static method that is exposed in the code-behi

TRY…CATCH and ERROR Handling-Sql Server 2005

Syntax: BEGIN TRY { sql_statement | statement_block } END TRY BEGIN CATCH { sql_statement | statement_block } END CATCH The TRY or CATCH block can contain a single T-SQL statement or a series of statements. The CATCH block must follow immediately after the TRY block. The TRY/CATCH block cannot span more than a single batch. In addition, TRY/CATCH block cannot span an IF/ELSE statement. Example of TRY…CATCH: BEGIN TRY DECLARE @X INT ---- Divide by zero to generate Error SET @X = 1 / 0 PRINT 'Command after error in TRY block' END TRY BEGIN CATCH PRINT 'Error Detected' END CATCH PRINT 'Command after TRY/CATCH blocks' Above code will return following result: Error Detected Command after TRY/CATCH blocks If all the statements within the TRY block are executed successfully, then processing does not enter the CATCH block, but instead skips over the CATCH block and executes the first statement following the END CATCH statement. Removing SET statement in above cod

Table Variables

Q1: Why were table variables introduced when temporary tables were already available? A1: Table variables have the following advantages over temporary tables: As mentioned in the SQL Server Books Online "Tables" article, table variables, such as local variables, have a well defined scope at the end of which they are automatically cleared. Table variables result in fewer recompilations of a stored procedure as compared to temporary tables. Transactions that involve table variables last only for the duration of an update on the table variable. Therefore, table variables require less locking and logging resources. Because table variables have limited scope and are not part of the persistent database, transaction rollbacks do not affect them. Q2: What does it mean by saying that table variables result in fewer recompilations of a stored procedure than when temporary tables are used? A2: The following article discusses some reasons when store

C# FAQ 2

1. Does C# support multiple-inheritance? Ans. No! It may be achieved however, using interfaces. 2. Who is a protected class-level variable available to? Ans. It is available to any sub-class (a class inheriting this class). 3. Are private class-level variables inherited? Ans. Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited. 4. Describe the accessibility modifier "protected internal". Ans. It is available to classes that are within the same assembly and derived from the specified base class. 5. What’s the top .NET class that everything is derived from? Ans. System.Object. 6. What does the term immutable mean? Ans. The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory. 7. What’s the difference between System.String and System.Text.StringBuilder classes? Ans. System.String i

C# FAQ #1

Image
C#FAQ #1 Collected from the Internet: What does the modifier protected internal in C# mean? The Protected Internal can be accessed by Members of the Assembly or the inheriting class, and of course, within the class itself. In VB.NET, the equivalent of protected internal is protected friend . The access of this modifier is limited to the current assembly or the types derived from the defining class in the current assembly. Can multiple data types be stored in System.Array? So whats an array all about? An array is a collection of items of the same type, that is grouped together and encompassed within an array object. The array object, or the System.Array object to be precise, is derived from the System.Object class. It is thus, stored in the form of a heap in the memory. An array may be of single dimensional, multi-dimensional or jagged (a jagged array means an array within an array). A group of items when assigned values within braces impli