answersLogoWhite

0


Best Answer

you must have forgotten to add parameters , in sql and asp.net when u want some queries u must add parameter to your query like cmd.Parameters.AddWithValue("@student_name", txtName.Text); if u dont add @student_name it will show u a error needing to declare sclar variable

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to declare scalar variable in ASP .Net?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you debug a web service?

Debugging XML Web Service created with ASP .Net is similar to debugging an ASP .Net web Application.


Describe the intrinsic controls of asp net?

In ASP.NET there are two types of controls - HTML server controls and ASP.NET server controls. The HTML ones are known as Intrinsic controls.A HTML Server Control has similar abstraction with its corresponding HTML tag and offers no abstraction.ASP .NET Server Controls have higher level of abstraction. An output of an ASP .NET server control can be the result of many HTML tags that combine together to produce that control and its events.The HTML Server Controls follow the HTML-centric object model.ASP .NET Server Controls have an object model different from the traditional HTML and even provide a set of properties and methods that can change the outlook and behavior of the controls.The HTML Server Controls have no mechanism of identifying the capabilities of the client browser accessing the current page.ASP .NET Server Controls can however detect the target browser's capabilities and render themselves accordingly.For moreInfo refer to related links.


Difference between asp net and java?

ASP.Net and Java do not have any real comparison. Java is a computer language, where as ASP.Net is a web technology for generating web content. You could use any CLR (Common Language Runtime) targeted language to create an ASP.Net website, such as VB.Net, C#, or IronPython.


What is the difference between net contribution to net profit?

net contribution is contribution from customers while net profit is from all expenses deducted


What is dotnet 35sp1?

Hi In order to run .Net programmed applications, you have to have .Net Framework installed in your computer. It depends that the programmer programmed with which version of .Net? .Net Framework's versions are: .Net Framework 1.0 .Net Framework 2.0 .Net Framework 3.0 .Net Framework 3.5 .Net Framework 3.5 Service Pack 1 (SP1) .Net Framework 4.0 Usually, a .Net programmer has all of these .Net versions installed in his computer. But, as a client you have to have the .Net version that your programmed is coded by. Usually, the programmer makes the application installation file equipped with.Net Framework, so it installs on your computer and you don't have to do anything more.

Related questions

When do you use net?

we use .net for providing plateform for asp, asp is scripting language


What are the types of Dot-net?

totally there are 3 types C # Asp dot net Vb dot net


Where can asp net training be obtained?

Asp net training can be obtained through educational websites online for little to no charge. In addition, asp net training can be obtained from school or other educational and learning institutions.


How do you debug a web service?

Debugging XML Web Service created with ASP .Net is similar to debugging an ASP .Net web Application.


Is there a charge for using asp net hosting?

The asp net hosting is absolutely free. In fact there are several that have multiple email addresses at no additional cost.


May you install visual studio net and ASP net?

Yes, you may.


How do you declare global variable in dot net?

I use the session .... Session["var"] = some value or object. Then you can call that variable any time for the users Session. EDIT: Make a public static variable outside of a method and just in the Class.


Definitions of aspnet projects?

ASP NET is a specific type of web development. Part of Microsoft, ASP NET has programs like Visual Studio and Visual Web Developer.


How do you use flash videos in asp net?

control in asp.net


What are some of the best ASP NET CMS options?

Some of the best ASP NET CMS options are DotNetNuke, Orchard and Sitefinity. You can learn more about these options online at their respective websites.


What are aspnet controls exactly?

ASP NET web server controls are executed when a page containing ASP NET is requested. They are a very usual piece of programming code which is used in web development.


Does ASP Net Hosting have a good reputation?

ASP Net Hosting has a bad reputation for having problems, people also cannot seem to get any help with getting them fixed from the customer support.