Is there a way to specify where the .classpath file is located in an Eclipse project. By default it is at the top level of the project. Being able to change that location would be helpful.
I have the following entity model
public class Employee
{
public int Employee ID{get;set;}
public string employeename{get;set;}
public datetime employeeDOb{get;set;}
public datetime? employeeDateOfJoin{get;set;}
public string empFamilyname{get;set;}
public datetime empFamilyDob{get;set;}
}
here I have to design a view for collecting employee information and employee family information.
Since I am working on already available data, where in empFamilyDob was not mandatory.
But now it is being made mandatory, the previous data doesn't contain EmpFamilyDob.
So naturally I have added this new property EmpFamilyDob to the Model and made it required through DataAnnotations.
Now there are two set of views to be developed.
1. A view which simply allows to collect the employee information without employee family information. i.e, empFamilyName and EmpFamilyDob.--This view is used by the Hr section to insert empplyee details
Since the empFamilyname and EmpFamilyDob being now made mandatory, some other section will edit the data and update the EmpFamilyName and EmpFamilyDob as and when the information about employee family details are received.
I have action controller for CreateNew and Edit Which is being generated by using the default model.
There are two user actions being performed.
1.When the user clicks the Create new -- he will be able to update only the Employee information
2.As and when the other section receives the employee family details they update the familyname and family date of birth. i.e, EmployeeFamilyname and EmployeFamilyDob.
While creating new record the uses should be able to update employee information only and while editing the information he should be able to update the employeefamily information. Since I have a single view with most of these fields as required and not allowing null , How can I achieve this in a sincle view?
I have recorrected the model like this
public class Employee
{
public int Employee ID{get;set;}
public string employeename{get;set;}
public datetime employeeDOb{get;set;}
public datetime? employeeDateOfJoin{get;set;}
public string empFamilyname{get;set;}
public datetime? empFamilyDob{get;set;}
}
Now by default I hope the createnew action would insert null value for empFamilyname(string datatype) and empFamilyDob . In the Edit action the user should be made to enter empFamilyname and empFamilyDob(mandatory). As there is every chance that the user might edit other information about the employee(like employeeDob) I don't want to go for partial views. Can you help me out with some illustration. Thanks in advance
After writing all the comments inside the code about the javadoc such as
/**
* This method compares the student's answer to the standard answer * @param ans The student's answer
* @return True for correct answer; False for incorrect answer
*/
boolean compareAnswer(int ans);
I guess it starts with :
javadoc [optionss] [packages|files]
I'm not sure what is the regular or default [option] and how can I say to produce it in my current home directory?
I know there are many settings for a language for a table and a database.
I already created the database. I believe when I created it, it was default/LATIN. I want to change everything-I mean...both the table and the database, to UTF-8.
How can I do that? thanks.
I've got an ASP.NET website that I use forms authentication using the default provider you can setup. This works just fine for the site. The question is can I pass the credentials from the web site to a web app on the same server?
I'm looking for some general guidance as to how to return a user back to the original page they were viewing after trying to log-in.
The way I have the site setup now is that if a user visits the Store page, for example, and then clicks the login button in the upper right, the user is returned to the default landing page.
Any help would be greatly appreciated!
why do I get a compiler error in the following code stating: Cannot implicty convert type SpecialNode to T even though T must derive from NodeBase as I defined in the where clause and even though SpecialNode actually derived from NodeBase?
public static T GetNode<T>() where T : NodeBase
{
if (typeof(T) == typeof(SpecialNode))
{
return ThisStaticClass.MySpecialNode; // <-- compiler error
}
if (typeof(T) == typeof(OtherSpecialNode))
{
return ThisStaticClass.MyOtherSpecialNode; // <-- compiler error
}
...
return default(T);
}
I've been trying to clean up my urls with htaccess but I can't seen to get it to work on my localhost.
My website url: localhost/index.html
This is the default htaccess file that's in my www folder.
#------------------------------------------------------------------------------
# To allow execution of cgi scripts in this directory uncomment next two lines.
#------------------------------------------------------------------------------
AddType application/x-httpd-php .html .htm .php
AddHandler cgi-script .pl .cgi
Options +ExecCGI +FollowSymLinks
Hello,
How to set GtkComboBox default selectio?
How to Adjust X, Y location of Drop Down menu of GtkComboBox?
I want to display Drop Down menu at the lower edge of GtkComoBox.
Also I want to set text color of Selected text in combo box to white.
Thank,
PP.
I have Ruby 1.9.1 installed and by default RubyGems is required. As such, my load path has all my gems included. Is there a way to run Ruby 1.9 without having RubyGems required?
Thanks
In PHP, While using a switch case loop, can i use the for loop for iterating the cases?
for example
switch .....
foreach($xyz as $abc)
{
CASE:$abc
}
default;
Is this possible?
hi,
I have a "Search" field in my website and I was wondering if I can assign my View to the search results, instead of using the default list.
Is this feasible ? How ?
thanks
Hi,
I am using Visual C++, and I am trying to include a file that uses BYTE (as well as DOUBLE, LPCONTEXT...) , which by default is not a defined type.
If I include windows.h, it works fine, but windows.h also defines GetClassName wich I don't need. I am looking for an alternative to windows.h include, that would work with VC++ and would define most of the types like BYTE, DOUBLE ...
Thanks
Hi everyone, I have an application that stores some information in a *.conf file, something like this:
[DEFAULT]
somevar = blablabla
othervar = blebleble
Is there a usual place on a linux system where I can put this file when it is being installed or should I put it on a place related to the application?
Thanks.
What is the registry change to tell Visual Studio to always position the current document in the window to the left.
The default implementation is such that if you have 10 documents open and you are editing the 5th one it's tab will be the 5th tab in the group. With the registry change when you click on the tab for the 5th document it becomes the 1st tab.
The command
hg outgoing
compares the local repo to the default push location; it accesses the push location to do it.
I'd like to ask the question "have I checked in changes in my local repo since my last hg push?" without having to access the remote repo.
It seems like there might be enough info in the local repo to figure that out; if so, is there a command to determine that?
$('a').click(function(event){
$('body').html('loading...');
$.post('www.sitename.com/hello',{site:"http//:www.google.com"},function(data) {
alert(data);
});
event.preventDefault();
});
I am using the above script to override the default behaviour of the links .The site reffred here returns the html of the 'site' paraeter.but the page just stops after printing loading...
Hello, do you know any cross-platform gui toolkit like swt for C (using default widgets in each operating system = right pics on eclipse.org/swt) ? There is an implementation of swt for D language called DWT but I need it for C or C++. Thanks.
After reading a question on @private I understand how that works. However, since all variables default to @protected and you cannot really access a variable without defining an accessor, what exactly does @public do? When would you use it?
have to make a PIN protected j2me application, how can a default PIN number be applied to the application so that the user may have to change the PIN on the first run.
Hi,
In default acegi setting, person and authority have many to many relations. Thus, in addtion to people and authorities, there is a table authotiries-people.
To delete a person (a user) I have to delete the related record in authotiries-people first....then come back to delete the record...
the problem is: other people are still using this authority (ROLE)
could some one enlighten me how to delete the user without deleting the authority?
thanks.
I have a web app where I need to change a drop down list dynamically depending on another drop down list.
I have two options:
Get all the data beforehand with PHP and "manage" it later with Javascript.
Or get the data the user wants through AJAX.
The thing is, that the page loads with all the data by default and the user can later select a sub category to narrow the drop downs.
Which of the two options are better (faster, less resource intensive)?