Posts

Advance Web Programming | TYIT | Mumbai University | Practical 1A | Product of 4 Value

Image
Advance Web Programming | TYIT | Mumbai University | Practical 1A | Product of 4 Value ASP.net Design :- csharp Code :- #using System; namespace WebApplicationpractical1 { public partial class WebForm1practical1A : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { int value1, value2, value3, value4, Product; value1 = Convert.ToInt32( TextBoxvalue1.Text); value2 = Convert.ToInt32( TextBoxvalue2.Text); value3 = Convert.ToInt32( TextBoxvalue3.Text); value4 = Convert.ToInt32( TextBoxvalue4.Text); Product = value1 * value2 * value3 * value4; FinalProduct.Text = Product.ToString(); } } }

Code Analysis | IDE0054 In C# Application

Image
Code Analysis | IDE0054 In C# Application #codeanalysis #code #analysis #IDE0054 #compound #assignment #description:- Code Analysis:- IDE0054 Use compound assignment // dotnet_style_prefer_compound_assignment = true x += 5; // dotnet_style_prefer_compound_assignment = false x = x + 5; Reference:-    

Fixing Compiler Error CS0165 In C# Application

Image
Fixing Compiler Error CS0165 In C# Application #fixerror #compiler #error #CS0165 #csharp #application #description :- Compiler Error CS0165 Use of unassigned local variable 'name' The C# compiler doesn't allow the use of uninitialized variables. If the compiler detects the use of a variable that might not have been initialized, it generates compiler error CS0165. For more information, see Fields. This error is generated when the compiler encounters a construct that might result in the use of an unassigned variable, even if your particular code does not. This avoids the necessity of overly complex rules for definite assignment. Reference :- (CS0165) Compiler Error C# Application Playlist :- #playlist #error #application #Subscribe the #Channel #Link :- #bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram :- #bansode_ajay_2102 LinkedIn Profile :- Blogger Link :-

Fixing Compiler Error CS0103 In C# Application

Image
Fixing Compiler Error CS0103 In C# Application #fixerror #compiler #error #CS0103 #csharp #application #description :- Compiler Error CS0103 An attempt was made to use a name that does not exist in the class, namespace, or scope. Check the spelling of the name and check your using directives and assembly references to make sure that the name that you are trying to use is available. Reference :- (CS0103) Compiler Error C# Application Playlist :- #playlist #error #application #Subscribe the #Channel #Link :- #bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram :- #bansode_ajay_2102 LinkedIn Profile :- Blogger Link :-

Fixing Compiler Error CS5001 In C# Application

Image
Fixing Compiler Error CS5001 In C# Application #fixerror #compiler #error #CS5001 #csharp #application #main #exe #winexe #targetType #file #static #description :- Compiler Error CS5001 Program does not contain a static 'Main' method suitable for an entry point This error occurs when no static Main method with a correct signature is found in the code that produces an executable file.It also occurs if the entry point function, Main, is defined with the wrong case, such as lower-case main. For information about the rules that apply to the Main method, see Main() and Command-Line Arguments. If the Main method has an async modifier, make sure that the selected C# language version is 7.1 or higher and to use Task or Task int as the return type. The Main method is only required when compiling an executable file, that is, when the exe or winexe element of the TargetType compiler option is specified. Reference :- (CS1026) Compiler Error C# Application Playlist :- #p...

Fixing Compiler Error CS1513 In C# Application

Image
Fixing Compiler Error CS1513 In C# Application #fixerror #compiler #error #CS1513 #csharp #application #description :- Compiler Error CS1513 } expected The compiler expected a closing curly brace ( } ) that was not found. The following sample generates CS1513: C# // CS1513 namespace y // CS1513, no close curly brace { class x { public static void Main() { } } Reference :- (CS1513) Compiler Error C# Application Playlist :- #playlist #error #application #Subscribe the #Channel #Link :- #bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram :- #bansode_ajay_2102 LinkedIn Profile :- Blogger Link :-

Fixing Compiler Error CS1038 In C# Application

Image
Fixing Compiler Error CS1038 In C# Application #fixerror #compiler #error #CS1038 #csharp #application #description :- Compiler Error CS1038 #endregion directive expected A #region directive did not have a matching #endregion directive. The following sample generates CS1038: C# // CS1038.cs #region testing public class clx { public static void Main() { } } // CS1038 // uncomment the next line to resolve // #endregion Reference :- (CS1026) Compiler Error C# Application Playlist :- #playlist #error #application #Subscribe the #Channel #Link :- #bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram :- #bansode_ajay_2102 LinkedIn Profile :- Blogger Link :-

Fixing Compiler Error CS1026 In C# Application

Image
Fixing Compiler Error CS1026 In C# Application #fixerror #compiler #error #CS1026 #csharp #application #description :- ) Round Close Bracket expected An incomplete statement was found. A common cause of this error is placing a statement, rather than an expression, within an inline expression in an ASP.NET page or any dot net Application Reference :- (CS1026) Compiler Error C# Application Playlist #playlist #error #application #Subscribe the #Channel #Link #bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram #bansode_ajay_2102 LinkedIn Profile Blogger Link

Fixing Compiler Error CS1002 In C# Application

Image
Fixing Compiler Error CS1002 In C# Application #fixerror #compiler #error #cs1002 #csharp #application #description :- The compiler detected a missing #semicolon . A semicolon is required at the end of every statement in C#. A statement may span more than one line. The following sample generates CS1002: // CS1002.cs namespace x { public class y { int i // CS1002, missing semicolon public static int Main() { return 0; } } } Reference :- (CS1002) Compiler Error C# Application Playlist #playlist #error #application #Subscribe the #Channel #Link :- # bansodetechsolution #ajupgrading IF any #Query or #Doubt #DM on #Instagram :- # bansode_ajay_2102 LinkedIn Profile

Lecture 04 :- OOPs INTRODUCTION In OBJECT ORIENTED PROGRAMMING

Image
Lecture 04 :- OOPs INTRODUCTION In OBJECT ORIENTED PROGRAMMING OOPS PARADIGM OOP is a better way than a procedural programming language. OOP uses members(variables) and procedures(functions) classes. OOP uses a modular framework for programming. Programmers can build relationships between objects. For examples, Objects can inherit properties for other objects. A developers may simply create a new objects that inherits many of the existing objects features. Its offers powerful and flexible abstraction mechanism. FEATURES OF OBEJECT ORIENTED PROGRAMING Its puts more emphasis on data than on procedure. The programs are divided into objects so you can work with them easily. The data structures are designed to characterize the objects. It has functions that work on the data of an object are placed together in the data structure. The data is hidden and can not be accessed without permission by external functions. With the help of functions , communication between object...

Lecture 3 :- DIFFERENCE BETWEEN OO AND PO PRADIGMS

Image
Lecture 3 :- DIFFERENCE BETWEEN OO AND PO PRADIGMS OBJECT ORIENTED PARADIGMS 1.Program is divided into small parts called objects. 2. It follows bottom up approach. 3.It have access specifiers like public , private, protected. 4.Adding new data and function is easy. 5.It provides data hiding so it is more secure 6. It is based on real world. 7. Object oriented programming support overloading features. 8. e.g. C++, Java, Python, c# etc. PROCEDURE ORIENTED PARADIGM 1.Program is divided into small parts called Functions. 2. It Follows Top Down Approach. 3. There is no access specifiers in procedural programming 4.Adding new data and function is not easy. 5. It does not have any way for data hiding so it less secure. 6. It is based on unreal world. 7. Procedure oriented programming does not support overloading feature. 8. e.g. C, FORTRAN, Pascal , Basic etc. Object Oriented Programing #PLAYLIST. #Subscribe the Channel Link :- #bansodetechsolution #ajup...

Lecture - 2 OBJECT ORIENTED PRGRAMMING In OBJECT ORIENTED PRGRAMMING

Image
Lecture - 2 OBJECT ORIENTED PRGRAMMING In OBJECT ORIENTED PRGRAMMING WHAT IS OBJECT ORIENTED? -Object oriented programming oop language is used to create objects. -In the development of the program, oop data is treated as a critical element and restricted. -Flow around system. -It more closely ties the data to the function that operates on it and protects it from accidental modification from external functions. -It allows the problem to break into a number of objects and then build data and functions around these object. -However, the function of the one object can access the functions of other objects if necessary. -Example a car is an object which has certain properties such as colour number of door and the like. It also has certain methods such as accelerate brake and so on. WHAT IS OBJECT ORIENTED DEVELOPMENT? -Object oriented development decreases development time and resources required to maintain existing applications, improve code reuse, and provide a competit...

Lecture-1 :- Procedure Oriented Programming in Object Oriented Programing

Image
Lecture-1 :- Procedure Oriented Programming in Object Oriented Programing INTRODUCTION -Procedure-oriented programming (pop) follow the sequence of things to do like reading, calculating and printing. -To calculate these tasks, a number of function are written. -POP focuses on functions. -POP consists of a list of computer instructions to be followed and organized into groups knows as functions. -Most important data items are placed as global in a multi-function program so that all the function can be accessed. -Each function may have local data of its own. -Global data is more vulnerable to an inadvertent change by a function. -It isn’t very good model of real world problem. CHARACTERISTICS OF POP -Data can be transformed form one function to another. -It follow Top-Down approach for writing program. -Large programs are split into smaller components knows as functions. -Most of the function share global data. -Data transfer from function to function openly around t...

Load Data From Excel To Grid View in Asp.net C#

Image
Load Data From Excel To Grid View in Asp.net C# This is very easy to load data from excel sheet to grid view in asp.net web page using c#. In this tutorial you can learn how to Load excel sheet data to Grid View easily using asp.net C# code. This tutorial also covers how to get data from any excel file to Grid View dynamically in c# using file Upload control. Follow this steps 1. Create an asp.net project. 2. design asp.net page with file Upload, button control and a Grid View control. 3. create an excel connection string in the web config file. 4. Write code to load data from excel sheet to Grid View asp.net using C#. code:- using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Collections; using System.Configuration; using System.Data.OleDb; using System.Data; public partial class _Default : System.Web.UI.Page {     protected void Page_Load(...

11.5. Service Load Balancing Architecture

Image
11.5. Service Load Balancing Architecture The service load balancing architecture can be considered a specialized variation of the workload distribution architecture that is geared specifically for scaling cloud service implementations. Redundant deployments of cloud services are created, with a load balancing system added to dynamically distribute workloads. The duplicate cloud service implementations are organized into a resource pool, while the load balancer is positioned as either an external or built-in component to allow the host servers to balance the workloads themselves. Depending on the anticipated workload and processing capacity of host server environments, multiple instances of each cloud service implementation can be generated as part of a resource pool that responds to fluctuating request volumes more efficiently. The load balancer can be positioned either independent of the cloud services and their host servers (Figure 11.10), or built-in as part of the appli...

11.4. Elastic Resource Capacity Architecture

Image
11.4. Elastic Resource Capacity Architecture The elastic resource capacity architecture is primarily related to the dynamic provisioning of virtual servers, using a system that allocates and reclaims CPUs and RAM in immediate response to the fluctuating processing requirements of hosted IT resources (Figures 11.8 and 11.9). Figure 11.8. 1.Cloud service consumers are actively sending requests to a cloud service, 2. which are monitored by an automated scaling listener . 3.An intelligent automation engine script is deployed with workflow logic 4. that is capable of notifying the resource pool using allocation requests Figure 11.9. 5. Cloud service consumer requests increase , 6. causing the automated scaling listener to signal the intelligent automation engine to execute the script . 7. The script runs the workflow logic that signals the hypervisor to allocate more IT resources from the resource pools . 8. The hypervisor allocates additional CPU and RAM to the virtual ...

11.3. Dynamic Scalability Architecture

Image
11.3. Dynamic Scalability Architecture The dynamic scalability architecture is an architectural model based on a system of predefined scaling conditions that trigger the dynamic allocation of IT resources from resource pools. Dynamic allocation enables variable utilization as dictated by usage demand fluctuations, since unnecessary IT resources are efficiently reclaimed without requiring manual interaction. The automated scaling listener is configured with workload thresholds that dictate when new IT resources need to be added to the workload processing. This mechanism can be provided with logic that determines how many additional IT resources can be dynamically provided, based on the terms of a given cloud consumer’s provisioning contract. The following types of dynamic scaling are commonly used: • Dynamic Horizontal Scaling – IT resource instances are scaled out and in to handle fluctuating workloads. The automatic scaling listener monitors requests and signals resource replic...

11.2. Resource Pooling Architecture

Image
11.2. Resource Pooling Architecture A resource pooling architecture is based on the use of one or more resource pools, in which identical IT resources are grouped and maintained by a system that automatically ensures that they remain synchronized. Provided here are common examples of resource pools: Physical server pools are composed of networked servers that have been installed with operating systems and other necessary programs and/or applications and are ready for immediate use. Virtual server pools are usually configured using one of several available templates chosen by the cloud consumer during provisioning. For example, a cloud consumer can set up a pool of mid-tier Windows servers with 4 GB of RAM or a pool of low-tier Ubuntu servers with 2 GB of RAM. Storage pools, or cloud storage device pools, consist of file-based or block-based storage structures that contain empty and/or filled cloud storage devices. Network pools (or interconnect pools) are composed of diffe...

11.1. Workload Distribution Architecture

Image
11.1. Workload Distribution Architecture IT resources can be horizontally scaled via the addition of one or more identical IT resources, and a load balancer that provides runtime logic capable of evenly distributing the workload among the available IT resources (Figure 11.1). The resulting workload distribution architecture reduces both IT resource over-utilization and under-utilization to an extent dependent upon the sophistication of the load balancing algorithms and runtime logic. Figure 11.1. A redundant copy of Cloud Service A is implemented on Virtual Server B. The load balancer intercepts cloud service consumer requests and directs them to both Virtual Servers A and B to ensure even workload distribution. This fundamental architectural model can be applied to any IT resource, with workload distribution commonly carried out in support of distributed virtual servers, cloud storage devices, and cloud services. Load balancing systems applied to specific IT resources usual...

10.8. Hardened Virtual Server Images

Image
10.8. Hardened Virtual Server Images A virtual server is created from a template configuration called a virtual server image (or virtual machine image). Hardening is the process of stripping unnecessary software from a system to limit potential vulnerabilities that can be exploited by attackers. Removing redundant programs, closing unnecessary server ports, and disabling unused services, internal root accounts, and guest access are all examples of hardening. A hardened virtual server image is a template for virtual service instancecreation that has been subjected to a hardening process (Figure 10.13). This generally results in a virtual server template that is significantly more secure than the original standard image. Figure 10.13 . A cloud provider applies its security policies to harden its standard virtual server images. The hardened image template is saved in the VM images repository as part of a resource management system. Hardened virtual server images help count...