|
hi,
trying the delete the row in the gridview. delete is handled in the Row_Command event.
protected void grdLabBill_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
int iIndex, iCount;
if (e.CommandName == "Delete")
{
}
}
}
i got the following exception
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The GridView 'grdLabBill' fired event RowDeleting which wasn't handled.
Need help to solve this problem.
Thanks in Advance!
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
Hi!
I wanna get caller Id via Rs232 ( i have central Panasonic PBX) .
I have get info in offline mode but i wanna Caller Id.
|
|
|
|
|
jojoba2011 wrote: but i wanna Caller Id.
Then you need to check the documentation for your device to see how to request that information. This is not a C# issue, but one of the protocol to your device.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
But It's different from its documents . i wanna to get caller id via C# from <big>PBX Panasonic central (KX-TES824)</big>
. So Plz Help.
modified 5-Mar-12 1:51am.
|
|
|
|
|
hi, i'm new in c#. Is there free or commercial C# template framework available ? I used to using Visual Foxpro and my company using www.Promatrix.com framework for VFP. Master form, master detail form and others are created in this template base clasess so we do not concern for CRUD etc etc we only need to write little code to modify.
I know microsoft have entity framework and several 3rd party but its only for data access layer, what i'm looking for is a framewrok/template from data access layer and interface layer please forgive me if i compare c# with VFP
so could someone help please
Thanks
Sen
|
|
|
|
|
The framework for .Net is free e.g. 4.0 available here[^].
You need to purchase the development environment i.e. Visual Studio (unless you want to use one of the express editions).
|
|
|
|
|
Abhinav S, thank for your help.
I'm sorry if I made my self unclear between .net framework and 3rd party framework, what I'm looking for is as Rob suggest is a 3rd party to help generate or has a based class to create an application.
|
|
|
|
|
.netTiers[^] maybe what your looking for
"You get that on the big jobs."
|
|
|
|
|
RobCroll, thanks for your help.
This is exactly what I'm looking for. But is there other option beside .netTiers. I did try to google but no luck so for
|
|
|
|
|
Rockford Lhotka's CLSA[^] is the only other one I know of but it doesn't include Presentation.
CodeSmith would have others, .netTiers is just the daddy.
"You get that on the big jobs."
|
|
|
|
|
RobCroll, Thank you very much. Any other information beside these two are welcome
|
|
|
|
|
Hi,
Iam using the following query to select the distinct field1 having more counts...
I mean, the following SQL Query
<pre>select employee_position from company_labors group by employee_position having COUNT(*)>1
Suppose the data's like the following
Field1 Field2
Programmer name1
Accountant name2
Accountant name3
store keeper name4
Programmer name5
then the following will be the output.
Programmer
Accountant
Hence is it possible to convert that SQL Query to linq?
THANKS
|
|
|
|
|
var d = from r in dbc.tbl_accountant
group r.Field1 by r.Field1 into Field
where Field1.Count() > 1
select new
{
Fieldname = Field.Key
};
string strField;
foreach (var f in d)
{
strField = f.Fieldname;
}
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
|
Constructor gets called automatically but why do we need base() to call constructor in the derived class? Does it have to do something with constructor overloading and then calling one of it?
|
|
|
|
|
The base keyword can be used to choose the constructor you would call in the base class.
This example (taken from here[^]), explains this concept. If not for base , the default constructor would be called.
using System;
public class MyBase
{
int num;
public MyBase()
{
Console.WriteLine("in MyBase()");
}
public MyBase(int i )
{
num = i;
Console.WriteLine("in MyBase(int i)");
}
public int GetNum()
{
return num;
}
}
public class MyDerived: MyBase
{
public MyDerived() : base()
{
}
public MyDerived(int i) : base(i)
{
}
public static void Main()
{
MyDerived md = new MyDerived();
MyDerived md1 = new MyDerived(1);
}
}
Output
in MyBase()
in MyBase(int i)
|
|
|
|
|
+5 Excellent answer. One small suggestion: I think it would be good to emphasize ... to new learners ... that it is the parameter list that follows the derived classes constructors that matches up with the constructor in the class derived from that has that exact matching parameter list.
best, Bill
"Every two days we create as much information as we did from the dawn of civilization up until 2003". Eric Schmidt of Google.
|
|
|
|
|
Yes that is a good point - I will remember to put this into my answers from next time onwards.
Thank you.
|
|
|
|
|
But some times we may handle some parameters in the derived classes eg.
void Main()
{
Person person = new Person("Person1","Address1");
Manager manager = new Manager("Manager","Address2","North city");
Console.WriteLine (person.ToString());
Console.WriteLine (manager.ToString());
}
class Person {
public string Name {get; private set;}
public string Address {get; private set;}
public Person (string name, string address){
Name = name;
Address=address;
}
public override string ToString(){
return Name + ", " + Address;
}
}
class Manager : Person {
public string AreaManaged {get; private set;}
public Manager(string name, string address, string areaManaged) :
base(name,address){
AreaManaged = areaManaged;
}
public override string ToString(){
return base.ToString() + ", " + AreaManaged;
}
}
|
|
|
|
|
Abhinav's answer is good. Just to expand a little...
The base class's parameterless constructor, if it has one, will automatically be called if you don't specify a different base constructor, i.e. one that has parameters, explicitly.
If the base class doesn't have a parameterless constructor then you must specify which base constructor you want to call, even if there is only one.
public class Base
{
protected int id;
public Base(int id)
{
this.id = id;
}
public int ID
{
get { return id; }
}
}
public class Derived : Base
{
private string text;
public Derived(string text)
: base(1)
{
this.text = text;
}
public string Text
{
get { return text; }
set
{
text = value;
}
}
}
|
|
|
|
|
crystal reports does not work when it retrive data from database on webserver.it works fine when run on any desktop application.
this is not login problem.
my question is that is there any way to show data into
crystal report from database on webserver
i have done lots of googling but not found any answer
|
|
|
|
|
"does not work" does not describe what the problem is. Is it a Web app or a windows app? What is the error message (if any) you are getting? Show relevant code.
|
|
|
|
|
unable to open crystal report
its a window application . its ok when the database is on local area network.
but with wAN it throws error
|
|
|
|
|
monu_khan wrote: unable to open crystal report
Who is unable to open it? You or the Crystal Report viewer?
monu_khan wrote: error
What error?
|
|
|
|
|