1
vote
0answers
6 views
error CS0234: The type or namespace name 'Test' does not exist in the namespace 'SimpleDBAccess.Models'
I'm absolutely new at ASP.NET and MVC and so on. I'm trying to list in a web page the content of a SQL server database. In that way, i've created a simple MVC4 project with the followinf Index.aspx :
...
0
votes
0answers
10 views
Only column header is showing up on report viewer. No data is showing up
This is with reference to my previous question "Report not showing up on report viewer"
I am developing a c# application where I need to generate a report. I am a using a dataset which is filled ...
-1
votes
1answer
17 views
How to create a directory As per variable names? [closed]
I Have Created one stored procedure .. and i am returning as a list of this ... But how to call this method..
public static List<GetEmployeeDocumentsByEmployeeIdResult> ...
0
votes
1answer
15 views
Report not showing up on report viewer
I am developing a c# application where I need to generate a report. I am a using a dataset which is filled with the data coming from a stored procedure which takes one parameter from the C# code. I ...
0
votes
1answer
35 views
c# sql server procedure return object not set to an instance of an object
I have a stored procedure
create proc GetCodes
@Code varchar(10),
@Page int = 1,
@Rows int = 10,
@output int output
as
select * from(
Select *, row_number() over(order by code) as RowNum
from ...
-4
votes
1answer
25 views
SQL Data Reader value accessing [closed]
I am working in asp.net and have following code. line 10 getting error
while (dr.Read())
{
for (int i = 1947; i < 2013; i++)
{
if (dr["Y" + i] != null)
{
myRow = ...
-5
votes
1answer
29 views
How to assign global path of database in sqlconnection c# website
SqlConnection cn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\Users\\MANTHAN\\Documents\\Visual Studio 2010\\WebSites\\sample\\App_Data\\Database.mdf;Integrated ...
0
votes
1answer
18 views
SQL Server Update from CheckBoxList VB.Net
I'm running a Survey-like website.
On the admin area of the website, I have the following layout:
The GridView gets the information from tableSurveryQuestion. Each one of the possible answer ...
0
votes
1answer
24 views
Visual Studio , SQL Server can't connect properly
I am new to visual studio (2010) environment. I want to make an application in asp.net which requires database connection with MS SQL SERVER 2012( SQL Server Management Studio).
In "Add Connection" ...
2
votes
1answer
23 views
Is there an ASP.NET data type equivalent to the XML data type in SQL Server?
I need to create an app where a user uploads an xml document and that document gets stored in a database column of type "xml". Does anyone know a class equivalent to it?
-1
votes
1answer
62 views
Display data in a GridView [closed]
I have sales table with data about itemName, numberofsales and date.
For example :
itemName Numberofsales date
pencil 20 2013-01-12
pen 34 2013-01-13
pencil ...
-1
votes
5answers
74 views
How change format date in SQL Server or how true insert datetime in SQL Server by c#
I have string date="20130613070000+1000" I convert to datatime by using:
date_dt = DateTime.ParseExact(date, "yyyyMMddHHmmsszzz", null, DateTimeStyles.None);
results its date_dt=13/06/2013 12:00:00 ...
0
votes
2answers
32 views
can't get output parameters from a SqlParameter inside a query
I'm doing a simple INSERT query into my database. The column id have auto-generated ID and i need it for another query. I read i can get the generated id using a parameter in output direction, so i ...
1
vote
4answers
57 views
Having issue in connection string of already an open DataReader
There is already an open DataReader associated with this Command which
must be closed first.
I m facing this issue when same person open the same page at same time on different system.
I have ...
0
votes
0answers
21 views
Community list page view issue of display in asp.net
hello How are you ever one!
I have a issue please see the last community and fist to community. i have a words more then 1000 in ever community but when i want to show all community like fist 2 ...