15,916,941 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 9961335 (Top 33 by date)
Member 9961335
4-Sep-13 9:57am
View
From the db . it has value such 0 1 2 .it has show pending delayed recieved in the table
Member 9961335
4-Sep-13 5:46am
View
from the database where it is intialized as int
Member 9961335
4-Sep-13 1:35am
View
what if i want to have name for some other field like statusofproduct which has 0,1,2 and i want display pending,delayed,received for it
Member 9961335
3-Sep-13 16:25pm
View
Still searching !
Member 9961335
3-Sep-13 16:09pm
View
public ActionResult Index()
{
var leave_management_leave_taken = db.Leave_Management_Leave_Taken.Include(l => l.Innovation_Management_User).Include(l => l.Innovation_Management_User1).Include(l => l.Leave_Management_Leave_Type);
return View(leave_management_leave_taken.ToList());
}
Member 9961335
3-Sep-13 16:08pm
View
@model IEnumerable<mytecbits_knockout_bootstrap_mvc_sample.models.leave_management_leave_taken>
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
Index
<p>
@Html.ActionLink("Create New", "Create")
</p>
<table class="table table-bordered">
<tr>
<th>
#
</th>
<th>
First Name
</th>
<th>
Leave Type
</th>
<th>
Leave Date
</th>
<th>
Status
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Innovation_Management_User.pk_user_id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Innovation_Management_User.user_firstname)
</td>
<td>
@Html.DisplayFor(modelItem => item.Leave_Management_Leave_Type.leave_type)
</td>
<td>
@Html.DisplayFor(modelItem => item.leave_days)
</td>
<td>
@Html.DisplayFor(modelItem => item.leave_status)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new {id=item.pk_leave_taken_id /* id=item.PrimaryKey */ }) |
</td>
</tr>
}
</table>
Member 9961335
3-Sep-13 15:55pm
View
yeah
Member 9961335
3-Sep-13 15:49pm
View
just simple html table using enity framework
Member 9961335
3-Sep-13 15:47pm
View
i am using entityframework only
Member 9961335
3-Sep-13 15:43pm
View
no !leave_status value in my database are 0 1 2
but when i display it on table i want to show it as a b c instead of 0 1 2
Member 9961335
3-Sep-13 15:43pm
View
no !leave_status value in my database are 0 1 2
but when i display it on table i want to show it as a b c instead of 0 1 2
Member 9961335
3-Sep-13 15:04pm
View
i am not i am actually asking a way to implement those the function of rowbound
Member 9961335
3-Sep-13 13:01pm
View
Works Fine Man :D :D...
bur when i update the page i get
Store update, insert, or delete statement affected an unexpected number of rows (0)
error
because in database the variable is defined as int but this process returns me string
Member 9961335
3-Sep-13 12:48pm
View
Works Fine Man :D :D...
bur when i update the page i get
Store update, insert, or delete statement affected an unexpected number of rows (0)
error
Member 9961335
3-Sep-13 12:14pm
View
I need to create a Dropdown list for Leave_status where i can select text values instead of integer in view
Member 9961335
31-Aug-13 1:07am
View
Finally :D made it work mate! I should reinstall sql server and create a new server instance.Thanks Mate :D
Member 9961335
30-Aug-13 11:57am
View
but i dont have one :/
Member 9961335
30-Aug-13 11:54am
View
can u post me ur connection string for reference ?
Member 9961335
30-Aug-13 11:49am
View
Can i know what version of sql server u used ? i used sql server express 2012
Member 9961335
30-Aug-13 11:47am
View
add name="InnovationManagement_ConnString"
connectionString="Data Source=(localdb)\test
Initial Catalog=CSPproject-v2
providerName="System.Data.SqlClient"
Member 9961335
30-Aug-13 11:30am
View
i am not able to add connection string :/ and i really must thank u for ur efforts so far
Member 9961335
30-Aug-13 11:29am
View
<connectionstrings>
<add name="ConnString" connectionstring="data source = david-pc; initial catalog=database; user=typeyourusername; password=typeyourpassword;">
Member 9961335
30-Aug-13 11:28am
View
ssms:server name :(localdb)\test ,username =WINCTRL-G28QT7G\Ash
<pre lang="xml">
<connectionstrings>
<add name="InnovationManagement_ConnString" connectionstring="Data Source=(localdb)\test;Initial Catalog=CSPproject-v2;" providername="System.Data.SqlClient">
</pre>
Member 9961335
30-Aug-13 11:03am
View
yeah
Member 9961335
30-Aug-13 10:44am
View
Error: 26 – Error Locating Server/Instance
Member 9961335
30-Aug-13 10:37am
View
no :(
Member 9961335
30-Aug-13 9:56am
View
DB.Innovation_Management_UserDataTable UTbl = UTA.GetDataByLogin(TextBox_email.Text, TextBox_password.Text); i get an error in this line
Member 9961335
30-Aug-13 9:51am
View
I would be great help if u check whether i project is working
http://sourceforge.net/projects/lms-dml/
Member 9961335
30-Aug-13 9:50am
View
Actually i don't have password and when i hit run i get
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Member 9961335
30-Aug-13 9:44am
View
Before
<pre lang="xml"><connectionStrings>
<add name="InnovationManagement_ConnString" connectionString="Data Source=(local);Initial Catalog=LMS;User ID=sa;Password=Password1" providerName="System.Data.SqlClient"/>
</connectionStrings></pre>
After i created a database named CSPproject-v2 using server (localdb)\test so i changed the string into
<pre lang="xml"><connectionStrings>
<add name="InnovationManagement_ConnString" connectionString="Data Source=(localdb)\test;Initial Catalog=CSPproject-v2;" providerName="System.Data.SqlClient"/>
</connectionStrings></pre>
Member 9961335
30-Aug-13 9:34am
View
Deleted
Before
<connectionstrings>
<add name="InnovationManagement_ConnString" connectionstring="Data Source=(local);Initial Catalog=LMS;" providername="System.Data.SqlClient">
I changed it into
<connectionstrings>
<add name="InnovationManagement_ConnString" connectionstring="Data Source=(localdb)\test;Initial Catalog=CSPproject-v2;" providername="System.Data.SqlClient">
Member 9961335
30-Aug-13 9:28am
View
Can't get you..i am very new to programming..
Member 9961335
30-Aug-13 9:26am
View
problem is that i cannot connect to updated database..
The source provided me an sql script which i ran using sql server management studio which created a database.
now all i need is to connect the update database to the asp.net project..
Show More