Click here to Skip to main content
15,904,655 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDate selector problem Pin
Rameez Raja25-Aug-08 1:08
Rameez Raja25-Aug-08 1:08 
GeneralRe: Date selector problem Pin
Brij25-Aug-08 1:19
mentorBrij25-Aug-08 1:19 
GeneralRe: Date selector problem Pin
Rameez Raja25-Aug-08 1:27
Rameez Raja25-Aug-08 1:27 
Questionhow to display timer dynamically in a asp.net form? Pin
balaji.t25-Aug-08 0:43
balaji.t25-Aug-08 0:43 
AnswerRe: how to display timer dynamically in a asp.net form? Pin
Manas Bhardwaj25-Aug-08 0:47
professionalManas Bhardwaj25-Aug-08 0:47 
GeneralRe: how to display timer dynamically in a asp.net form? Pin
balaji.t25-Aug-08 1:51
balaji.t25-Aug-08 1:51 
GeneralRe: how to display timer dynamically in a asp.net form? Pin
Manas Bhardwaj25-Aug-08 2:15
professionalManas Bhardwaj25-Aug-08 2:15 
QuestionNhibernate Basic sample code Pin
Member 438787925-Aug-08 0:41
Member 438787925-Aug-08 0:41 
We are new to Nhiberanate concept, We had downloaded the NHibernate sample form CodeProject site using http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx. We had executed this sample it is working fine, but when we are tring add our form in an application it doesn't not display any record. Following is our code.

Table signature

CREATE TABLE [dbo].[TBL_EMPLOYEE](
[EMP_CODE] [int] IDENTITY(1,1) NOT NULL,
[EMP_NAME] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[EMP_DEPTNAME] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EMP_EMAILID] [varchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EMP_PASSWORD] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
CONSTRAINT [PK_TBL_EMPLOYEE_1] PRIMARY KEY CLUSTERED
(
[EMP_CODE] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]


hbm.xml file

<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="BasicSample.Core.Domain.Employee,BasicSample.Core" table="TBL_EMPLOYEE" lazy="false">
<id name="EMP_CODE" column="EMP_CODE" unsaved-value="0">
<generator class="identity"/>
</id>
<property name="EMP_NAME" column="EMP_NAME" type="String"/>
<property name="EMP_DEPTNAME" column="EMP_DEPTNAME" type="String"/>
<property name="EMP_EMAILID" column="EMP_EMAILID" type="String"/>
<property name="EMP_PASSWORD" column="EMP_PASSWORD" type="String"/>
</class>
</hibernate-mapping>


.class file
using System;
using System.Collections.Generic;
using BasicSample.Core.Utils;

namespace BasicSample.Core.Domain
{
public class Employee:DomainObject<string>
{
private Employee()
{ }
public Employee(string EmpName)
{
EMP_NAME = EmpName;
}
//private variable
// private int _Code="";
private string _Name = "";
private string _DeptName = "";
private string _EmailId = "";
private string _Password = "";
//public string EMP_CODE
//{
// get { return _Code; }
// set { _Code = value; }
//}
public string EMP_NAME
{
get { return _Name; }
set { _Name = value; }
}
public string EMP_DEPTNAME
{
get { return _DeptName; }
set { _DeptName = value; }
}
public string EMP_EMAILID
{
get { return _EmailId; }
set { _EmailId = value; }
}
public string EMP_PASSWORD
{
get { return _Password; }
set { _Password = value; }
}

public override int GetHashCode()
{
return (GetType().FullName + "|" + EMP_NAME + "|" + EMP_DEPTNAME).GetHashCode();
//throw new Exception("The method or operation is not implemented.");
}

}
}

aboce are the files we were using but after broswing the apge it show nothing. Where is the problem we are not able to identify?

poonam

AnswerRe: Nhibernate Basic sample code Pin
N a v a n e e t h25-Aug-08 0:47
N a v a n e e t h25-Aug-08 0:47 
QuestionMissing FileUpload Path Pin
slSoftware25-Aug-08 0:01
slSoftware25-Aug-08 0:01 
AnswerRe: Missing FileUpload Path Pin
N a v a n e e t h25-Aug-08 0:24
N a v a n e e t h25-Aug-08 0:24 
AnswerRe: Missing FileUpload Path Pin
Tripathi Swati25-Aug-08 0:42
Tripathi Swati25-Aug-08 0:42 
GeneralRe: Missing FileUpload Path Pin
slSoftware25-Aug-08 4:23
slSoftware25-Aug-08 4:23 
GeneralRe: Missing FileUpload Path Pin
D4ever27-Aug-08 8:52
D4ever27-Aug-08 8:52 
QuestionBind Data by Alphabets Pin
Imran Khan Pathan24-Aug-08 23:46
Imran Khan Pathan24-Aug-08 23:46 
AnswerRe: Bind Data by Alphabets Pin
The Web Developer24-Aug-08 23:51
The Web Developer24-Aug-08 23:51 
GeneralRe: Bind Data by Alphabets Pin
Imran Khan Pathan24-Aug-08 23:57
Imran Khan Pathan24-Aug-08 23:57 
AnswerRe: Bind Data by Alphabets Pin
Blue_Boy25-Aug-08 0:06
Blue_Boy25-Aug-08 0:06 
GeneralRe: Bind Data by Alphabets Pin
Imran Khan Pathan25-Aug-08 0:21
Imran Khan Pathan25-Aug-08 0:21 
GeneralRe: Bind Data by Alphabets Pin
The Web Developer25-Aug-08 0:52
The Web Developer25-Aug-08 0:52 
AnswerRe: Bind Data by Alphabets Pin
Imran Khan Pathan25-Aug-08 1:35
Imran Khan Pathan25-Aug-08 1:35 
GeneralRe: Bind Data by Alphabets Pin
Baran M25-Aug-08 1:49
Baran M25-Aug-08 1:49 
GeneralRe: Bind Data by Alphabets Pin
Imran Khan Pathan25-Aug-08 2:16
Imran Khan Pathan25-Aug-08 2:16 
Questionprogrammatically how to select MasterPage Pin
kvsreedhar24-Aug-08 23:44
kvsreedhar24-Aug-08 23:44 
AnswerRe: programmatically how to select MasterPage Pin
Brij24-Aug-08 23:49
mentorBrij24-Aug-08 23:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.