|
Thank you for your reply. I have found the problem.
The problem was caused by the web server, because it didn't accept ASP.NET version for my project. So I have to choose another provider.
|
|
|
|
|
without c# coding i want gridview for only UI if any possible plz send me the UI
|
|
|
|
|
We don't do homework
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
While checking a multi-language implementation of a small site in MVC with a Windows10 client the results had me puzzeled.
Switching the prefered language around didn't result in any changes in the website when using Edge & IE, when using Chrome and Firefox everything worked fine.
When checking the Http Request Headers Accept-Language values I found that the language change was ignored by IE & Edge. Only when I changed the 'Fromat Settings' in "Control Panel-Language - Change date.. - Formats" did the Accept-Language Header change.
Can anybody replicate this?
modified 14-Aug-15 7:59am.
|
|
|
|
|
In short i would like to develop a weighbridge system. All i want is the code in C-sharp for reading the weight from the scale, it must be real-time.
|
|
|
|
|
|
I am coding with C#.NET
I created an meeting request and attached to the mail. users able to open it and accept the same.
On another scenario, i want to decline the request. so i send an FRESH meeting request attached to the mail with same date & time. this time meeting request is not getting cancelled.
So my question is, do the UID need to be unique to cancel the meeting request?
|
|
|
|
|
We don't know how you are implementing "meetings" so how can we possibly know?
|
|
|
|
|
This is my code :
DateTime schBeginDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 12:00 AM"));
DateTime schEndDate = TimeZoneInfo.ConvertTimeToUtc(Convert.ToDateTime(Convert.ToDateTime("21/08/2015").ToString("dd-MMM-yyyy") + " 11:59 PM"));
String[] contents = { "BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//TEST","METHOD:REQUEST",
"BEGIN:VEVENT",
string.Format("DTSTART:{0:yyyyMMddTHHmmssZ}", schBeginDate),
string.Format("DTSTAMP:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow),
string.Format("DTEND:{0:yyyyMMddTHHmmssZ}", schEndDate),
"LOCATION:NA", "UID : " + Guid.NewGuid(),
"DESCRIPTION:Out Of Office",
"X-ALT-DESC;FMTTYPE=text/html:Out Of Office",
"SUMMARY:Out Of Office", "STATUS:CONFIRMED","ORGANIZER:MAILTO:" + "test@test.com",
string.Format("ATTENDEE;CN=\"{0}\";RSVP=TRUE:mailto:{1}", "test", "test@test.com"),
"BEGIN:VALARM","TRIGGER:-PT15M",
"ACTION:DISPLAY","DESCRIPTION:Reminder","X-MICROSOFT-CDO-BUSYSTATUS:OOF","END:VALARM",
"END:VEVENT", "END:VCALENDAR" };
|
|
|
|
|
I did not try it myself but what I have read before, to able to cancel a meeting request the Method attribute must be Cancel and the UID must be the same as the original request.
|
|
|
|
|
Thanks a lot for your reply. So i conclude that UID should be same to cancel meeting request. If any deviation, please give me an reply.
Once again thanks.
|
|
|
|
|
The differences between Virtual method and Abstract method are as follows:
- In class, Abstract method has no body but Virtual method has body.
- Abstract method can be declared in Abstract class only but there is no need of Abstract class for Virtual method.
- Abstract method must be override in Derived class but Virtual method may be override or not.
- Abstract method is also called Pure Virtual Method
- Abstract method must be declared in Abstract class, we did not create an object of Abstract class.
Demo:-
using System;
namespace LearnProject
{
abstract class TestClassA
{
public void Method1()
{
Console.WriteLine("I am in Method1() of TestClassA ");
}
public virtual void Method2()
{
Console.WriteLine("I am in Method2() of TestClassA ");
}
public abstract void Method3();
}
class TestClassB : TestClassA
{
public override void Method2()
{
Console.WriteLine("I am in Method2() of TestClassB ");
}
public override void Method3()
{
Console.WriteLine("I am in Method3() of TestClassB ");
}
}
class Abstract_and_Virtual_methods
{
public static void Main()
{
TestClassB testClassB = new TestClassB();
testClassB.Method1();
testClassB.Method2();
testClassB.Method3();
TestClassA testClassA = new TestClassB();
testClassB.Method1();
testClassA.Method2();
testClassA.Method3();
TestClassB b = new TestClassB();
b = testClassB;
b = testClassA as TestClassB;
Console.Read();
}
}
}
In the above program, we create three methods in the TestclassA, We override virtual method Method2() and abstract method Method3() in the derived class TestClassB.
Output :-
I am in Method1() of TestClassA
I am in Method2() of TestClassB
I am in Method3() of TestClassB
I am in Method1() of TestClassA
I am in Method2() of TestClassB
I am in Method3() of TestClassB
Note:- If we did not override the virtual method - Method2() of TestClassA in the derived class TestClassB, then output would be as follows :
I am in Method1() of TestClassA
I am in Method2() of TestClassB
I am in Method3() of TestClassB
I am in Method1() of TestClassA
I am in Method2() of TestClassA
I am in Method3() of TestClassB
|
|
|
|
|
Did you have a question? Or were you trying to write a Tip?
|
|
|
|
|
I do lot fo work by javascript on web page (like validation , enable and disable textbox ,changes the value of label) and when we do a postback by buttonclick all work done by java script is lost , pls suggest how to do this asap.
Thanks
|
|
|
|
|
|
Write a program to create ‘Employee’ class with id, name non-static members and employeeCounter as Static data member. Accept id, name values from user (using Console.ReadLine() method) and assign them to Employee data members. Count how many objects created for Employee class, display the content using Console application.
|
|
|
|
|
|
This looks like homework
modified 20-Sep-20 21:01pm.
|
|
|
|
|
I am working on a website that is built in C# MVC. The page i am working on has a datatable and sorting and pagination. The bug is when i click on the Next button on the page, it displays an error asking me to select a value, although there are values selected in subsequent pages. It wont go to the next page until a value has been selected on the first page. I need help on getting away with this bug.
|
|
|
|
|
I think you would remove <required> in the model
|
|
|
|
|
Remove what in the model? Do you want me to post the code? I am posing this question as I am new to MVC.
|
|
|
|
|
Look in the database DAL, there are private and public members in it.
Most MVC Apps use a database model to describe the database and fields when using Entity Framework. You can say this column is required to write a record.
Also, I think in the Models folder, you can say a field is required for validation, so check there as well. The model tells the view that these fields are required for validation.
Technically, makes no sense to me why you would want the user to leave the page without filling in the form first, unless it's a search box or something, and the user has no interest in searching, and the form submit triggers the validation and postback event, and validation fails.
I'm leaving now so I won't back back till tomorrow, but take a peek around in your app.
Database in VB
<Required>
<StringLength(80)>
<MaxLength(80)>
Public Property LoginID As String
Get
Return mLoginID
End Get
Set(value As String)
mLoginID = value
End Set
End Property
Model in C#
public class RegisterExternalLoginModel
{
[Required]
[Display(Name = "User name")]
public string UserName { get; set; }
public string ExternalLoginData { get; set; }
}
|
|
|
|
|
Remove the required or validation tag
[Required] or <required>
|
|
|
|
|
I looked into the code but was unable to find the appropriate [Required] or validation tag. The code uses Datatables and the validation is related to that.I am not able to find the connection between the Next button and the validation.
|
|
|
|
|
Show some code in the view for the page.
|
|
|
|