|
Hi guys
I have a sample Code and misunderestanding with one parameter.however it may seems stpd question for you professional guys.
public DataObjectFieldAttribute(
bool primaryKey,
bool isIdentity)
<br />
primaryKey<br />
Type: System.Boolean<br />
true to indicate that the field is in the primary key of the data row; otherwise, false.<br />
isIdentity<br />
Type: System.Boolean<br />
true to indicate that the field is an identity field that uniquely identifies the data row; otherwise, false.<br />
the question is what is the meaning of isIdentity here?
|
|
|
|
|
Dont repost your question
|
|
|
|
|
Hi,
I am using this connection string to query some .DBF .
Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\Dbfs;
If i don't run the application on IIS it works well. If i run it on IIS (7.5) i get this
OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
How can i make it work?
Thanks.
|
|
|
|
|
Hi,
Do you have ODBC DSN created in your system where you have hosted the site ?
|
|
|
|
|
I do not have DSN. I will google to see what that means.
|
|
|
|
|
Connection string are for database connection. I'm not sure why in IIS 7.5 you get an error. Have you checked www.connectionstrings.com/[^]
|
|
|
|
|
ok problem solved.
IIS Manager -> Application Pools ->Set Application Pools Defaults -> Enable 32-bit Applications = False=>True
|
|
|
|
|
Hi
We are using Office Web component V10.0 in ASP.NET 3.5 website. The rquiremetn is to display xml data in OWC Pivot table component. How can I acheive that?
Thanks
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
Hi,
I am facing a serious issue. I have a web site under development. I am using crystal report for reporting purpose. it was working well without any problem. but two days back i couldn't open the reports. i am getting the error "Failed to open the Document". Failed to create the crystal query engine.
While debugging i got the following error
The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. I hope it is the prob with the crystal report along with the visual studio. Is there any solution for this...
|
|
|
|
|
Have a look at this thread discussion[^]. Sounds like similar issue and they were able to resolve.
|
|
|
|
|
Have you received my mail dude ?
|
|
|
|
|
Check your Inbox...
modified on Saturday, September 18, 2010 6:34 AM
|
|
|
|
|
Replied !!
|
|
|
|
|
Hi there
I'm wondering how to create a special character in design view (inside a label)?
For example I wanted to create a game and underneath the header have the copyright character followed by my name. I went to MS Word and searched under symbols and used Alt+0169 on the num pad.
This all worked while I was in Visual Studio. Although once I tested the website (using Ctrl + F5), the character came up as something different.
Is there maybe a different code I can type in the label that will make the webpage display the same symbol? :-?
|
|
|
|
|
|
|
Check your encoding. What encoding are you using in your pages?
|
|
|
|
|
Thanks guys for the help.
I realized the syntax I needed was '©'.
|
|
|
|
|
hi
i should not allow user to view/edit a file in a folder if that file is viewing/editing by some one at the same time. like check in and check out option in VSS, can any one give me a suggestion that how can i do this.
i have planned to do like, when a user opens a folder i will place a flag in backend and will not allow other to open, but i dont think this is only way.
|
|
|
|
|
Create a "lock table" which your application can access and implement a system that would write entries like:
Resource ID (filename),DateTimeStamp,User,LockMode
You would then check this table before allowing a user access to a given resource. This also provides you with an audit trail and a method of who currently has the resource for exclusive access.
Something to think about ...
|
|
|
|
|
So whenever a user views a file in a folder it locks every other user out of the entire folder even for viewing? That doesn't sound like a very convenient system.
How are the files presented? Are they on the file system? Are they streamed from a database?
Is there some reason you are doing this yourself rather than using the free version of sharepoint that does document check-in/check-out already?
|
|
|
|
|
|
Hi,I am following a sample project. but I don't understand some code of this program.Could you please help me. I put comment in front of lines.
Business Object Layer
[DataObjectFieldAttribute(true, true, false)] why use this line?
public int Id
{
get
{
return id;
}
set
{
id = value;
}
}
public string FirstName
{
get
{
return firstName;
}
set
{
firstName = value;
}
}
public string MiddleName
{
get
{
return middleName;
}
set
{
middleName = value;
}
}
public string LastName
{
get
{
return lastName;
}
set
{
lastName = value;
}
}
public DateTime DateOfBirth
{
get
{
return dateOfBirth;
}
set
{
dateOfBirth = value;
}
}
public PersonType Type
{
get
{
return type;
}
set
{
type = value;
}
}
public string FullName
{
get
{
string tempValue = firstName;
if (!String.IsNullOrEmpty(middleName))
{
tempValue += " " + middleName;
}
tempValue += " " + lastName;
return tempValue;
}
}
public AddressList Addresses
{
get
{
return addresses;
}
set
{
addresses = value;
}
}
public PhoneNumberList PhoneNumbers
{
get
{
return phoneNumbers;
}
set
{
phoneNumbers = value;
}
}
public EmailAddressList EmailAddresses
{
get
{
return emailAddresses;
}
set
{
emailAddresses = value;
}
}
#endregion
}
}
Business Logic Layer
[DataObjectMethod(DataObjectMethodType.Update, true)] why use this line?
public static int Save(ContactPerson myContactPerson)
{
using (TransactionScope myTransactionScope = new TransactionScope())
{
int contactPersonId = ContactPersonDB.Save(myContactPerson); why use this line?
foreach (Address myAddress in myContactPerson.Addresses) why use this line?
{
myAddress.ContactPersonId = contactPersonId; why use this line?
AddressDB.Save(myAddress); why use this line?
}
foreach (EmailAddress myEmailAddress in myContactPerson.EmailAddresses)
{
myEmailAddress.ContactPersonId = contactPersonId;
EmailAddressDB.Save(myEmailAddress);
}
foreach (PhoneNumber myPhoneNumber in myContactPerson.PhoneNumbers)
{
myPhoneNumber.ContactPersonId = contactPersonId;
PhoneNumberDB.Save(myPhoneNumber);
}
myContactPerson.Id = contactPersonId;
myTransactionScope.Complete();
return contactPersonId;
}
}
Data Access Layer
public static int Save(ContactPerson myContactPerson)
{
int result = 0;
using (SqlConnection myConnection = new SqlConnection(AppConfiguration.ConnectionString))
{
SqlCommand myCommand = new SqlCommand("sprocContactPersonInsertUpdateSingleItem", myConnection);
myCommand.CommandType = CommandType.StoredProcedure;
if (myContactPerson.Id == -1)
{
myCommand.Parameters.AddWithValue("@id", DBNull.Value);
}
else
{
myCommand.Parameters.AddWithValue("@id", myContactPerson.Id);
}
myCommand.Parameters.AddWithValue("@firstName", myContactPerson.FirstName);
myCommand.Parameters.AddWithValue("@lastName", myContactPerson.LastName);
if (String.IsNullOrEmpty(myContactPerson.MiddleName))
{
myCommand.Parameters.AddWithValue("@middleName", DBNull.Value);
}
else
{
myCommand.Parameters.AddWithValue("@middleName", myContactPerson.MiddleName);
}
myCommand.Parameters.AddWithValue("@dateOfBirth", myContactPerson.DateOfBirth);
myCommand.Parameters.AddWithValue("@contactpersonType", myContactPerson.Type);
DbParameter returnValue;
returnValue = myCommand.CreateParameter();
returnValue.Direction = ParameterDirection.ReturnValue;
myCommand.Parameters.Add(returnValue);
myConnection.Open();
myCommand.ExecuteNonQuery();
result = Convert.ToInt32(returnValue.Value);
myConnection.Close();
}
return result;
}
|
|
|
|
|
Rule 1: Don't post unnecessary code to ask simple question
Rule 2: Simple Goodgle search could have yielded tonnes of response
Rule 3: RTFD - MSDN Library[^]
|
|
|
|
|
I have seen many utilities and tools which promise to make my website best ranked in search engines...
what do you think? which one I should use for my ASP.NET website?
|
|
|
|