|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible. Can you help us to make these functions are visible.
Thanks,
Kumar Prabhakar
abc
|
|
|
|
|
Then reference it as a type test1 . Type test does not have a function2() method, therefore, if you have a reference of type test , even althought the actual object is of type test1 , you cannot access function2() .
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible. Can you help us to make these functions are visible.
Thanks,
Kumar Prabhakar
abc
|
|
|
|
|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible. Can you help us to make these functions are visible.
Thanks,
Kumar Prabhakar
abc
|
|
|
|
|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible. Can you help us to make these functions are visible.
Thanks,
Kumar Prabhakar
|
|
|
|
|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible. Can you help us to make these functions are visible.
abc
|
|
|
|
|
Thanks for reply.
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible.
abc
|
|
|
|
|
We have created object at run time on the basis of derived class that's why we had used base class object but we had faced his dificulty. All the abstract methods of base class which is override in derived class is visible but public functions of derived class are not visible.
abc
|
|
|
|
|
Seriously - How many times do you think you need to repeat the same question!?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
kumarprabhakar74 wrote: test t;
test1 t1 = new test1();
t = t1;
t.function1();
t1.function2()//No Error
t.function2(); //Show error
you can only call function2 on a test1 object or a subclass of test1. The fact that t happens to contain a test1 object doesn't matter as the compiler cannot know what kind of object will be referenced by t apart from the fact that it is of type test.
HTH
Russ
|
|
|
|
|
Hi can any one give idea on creating online test application in c#? or send url
Thanks
samrama
|
|
|
|
|
Get it[^].
In that Videos for ASP.NET 2.0 Beginners the lesson 11 to 14 is fully for the quiz engine test ie., the online test application only.
Hope that will help you.
Regards,
Satips.
|
|
|
|
|
I want to keep my table width fix. but when the chracters in the table row exceeds from the width of the table then the table width also increases. i want to keep the width of the table as fix, but when the characters reach to the right boundry of the table, a new line should appear automatically and the remaining characters should be written at that line. just like a text area or multiline textbox.
thanx
Qaiser
|
|
|
|
|
am using c# to automate web pages, how can i handle frames? The web page i reterive
contains 3 frames in it referencing to 3 different URLs. ,i will be very thank full ,if u provide me a chunk of code in c# ,if u donot understand ,ask me again and again ,very helpless
|
|
|
|
|
Good Morning,,
my problem is
i m getting sum of values from a table, and i need to display it in a lable,,
even the lable giving correct value but it like 5676433.897534598352003650 , but i need a rounded up value to display,,(if i display the value in data grid mean it rounded up the value)
so which solution helps to get my answer????
self confidence+hard work=SUCCESS
|
|
|
|
|
Hi
You can Round up your value in this way.....
double val = 5676433.897534598352003650;
val = Math.Round(val);
Label.Text = Convert.ToString(val);
Cheers
Chandu
|
|
|
|
|
While fetching from SQL, can use
SELECT Convert(Decimal(10, 2), value) FROM tableA
here it taks only two decimals from the <value>
Regards
KP
|
|
|
|
|
Hello Sir,
I Fill The DataSet From A XML file like
ds.ReadXml(@"C:\myXmFile.xml");
The DataSet Is Filled and Data comes to the ds.tables[0]....
Now I Want to edit Some Rows of This DataTable .. For That I set the
PK for the table like
//Setting PK
DataColumn[] colPk = new DataColumn[1];
colPk[0] = ds.Tables[0].Columns["StoreID"];
ds.Tables[0].PrimaryKey = colPk;
//End Setting PK
After that i filter the data using this primary key like....
DataRow[] customerRow = ds.Tables[0].Select("StoreID = 1");
that means customerRow is the collection of all the filtered data of StoreID =1
if i want to edit its content i have to use this
customerRow[0]["StoreName"] = "Updated Company Name";
customerRow[0]["storeAddress"] = "Seattle";
my Problem is Begin From Here...
1. this is hard coded for the 0th index of datarow.
2. What happned if multiple rows are return how I can change them...? single row and multiple too?
3. How i Can update the updated Datarow to My Table..? also same case of multiple updated rows
4. after all manipulation upadate the data to actual database
I think last question should solved by
myDataAdapter.update(ds);
Please Help Me
Regards
Pankaj Joshi
|
|
|
|
|
Hi all
On my project I have created a connection and have retrieved some data from the database by using a stored proc. Here is the code:
string cnString = "Data Source=localhost;Initial Catalog=Northwind;User Id=MyName;Password=MyPassword";
SqlConnection cn = new SqlConnection(cnString);
SqlCommand cmd = new SqlCommand("sp_Products", cn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds,"Products");
The database is now storing in my dataset. But how can I send it to display on my reportviewer by using crystal report that comes with visual studio?
Thanks advance
|
|
|
|
|
hello...help me please!!!!!!!!!!!!!!!
i'm waiting for your answers.............
|
|
|
|
|
A message like this is considered rude.
______________________
stuff + cats = awesome
|
|
|
|
|
Hello All,
I'm getting a basic Windows application going in C# using Visual Studio 2005 Express and SQL Server Express.
I've created a database (SQL Server Compact) and added a table, a column and some records.
The DB is on my box, XP Home.
I want to populate a ListBox with the four CUST_NAME records in the Form.
Box name: MAXPHOME
SQL Server: SQLEXPRESS
DB Name: OMA1
DB file: OMA1.sdf
Table in DB: CUSTOMER
Columns in CUSTOMER: CUST_PK, CUST_NAME
User Name: none
Password: none
I need a few pieces of code.
1 - DataBase connection string.
2 - Syntax to send the SQL ("SELECT * FROM CUSTOMER").
3 - Databinding the DB return to a windows control (ListBox, DropDown, TextBox) in a Windows Form.
I got some pieces of code from this site, I'm close but, I just can't get it....
Thanks,
Pat G.
|
|
|
|
|
|
pgiambat wrote: 1 - DataBase connection string.
using System.Data.SqlClient;
...
SqlConnection oSQLConn = new SqlConnection();
oSQLConn.ConnectionString = "Data Source=(local);" +
"Initial Catalog=mySQLServerDBName;" +
"Integrated Security=SSPI";
oSQLConn.Open();
pgiambat wrote: 2 - Syntax to send the SQL ("SELECT * FROM CUSTOMER").
Yes that is correct.
pgiambat wrote: 3 - Databinding the DB return to a windows control (ListBox, DropDown, TextBox) in a Windows Form.
Get it[^]
Regards,
Satips.
|
|
|
|
|
Satips wrote: ...oSQLConn.ConnectionString = "Data Source=(local);..." +
This won't work.
You missed the part about SQL Server Compact Edition.
only two letters away from being an asset
|
|
|
|