|
M. J. Jaya Chitra wrote: I want to know the purpose of the tag
The TestMethod attribute is used as part of the unit testing framework in the versions of Visual Studio I previously mentioned. It denotes that the method should be run as a unit test.
Unit tests, regardless of framework, follow the same ideas and you should search (Google) on that if you want more information. The topic is too large to distill into a forum post.
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
|
|
|
|
|
Thank you.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Hi all
I have a requirement and i need some resolution to work on.
i have to read a webpage and extract few values from the page. I am
using the httpwebrequest meathod to query the webpage that based on
the values generate a result on the webpage and then i need to pick
the phone number and the email id displayed on the page.
kindly assist how to extract values
|
|
|
|
|
Hello
Is it possible to read the registry of remote computer???
and if it is possible then tell me how ???
Thanks
Devesh Mishra
|
|
|
|
|
Hi all,
As i have developing an OCR project in c# .net. In that project i need to do OCR at the selection of particular area from the document on the document viewer control, which is the active X conttrol of MODI library. i have seen little bit tutorial for some properties of MiDocView object like Textselection , Imageselection in MSDN, but they doesn't giving any example for that properties. So,please help me how can i do that practicably.....
thanks in advance
|
|
|
|
|
public class test
{
public void function1()
{ }
}
public class test1 : test
{
public void function2()
{ }
}
test t;
test1 t1 = new test1();
t = t1;
t.function1();
t.function2(); //Show error
abc
|
|
|
|
|
Well, thats true!
Cause function2 is not a method of test.
What have you expected?
All the best,
Martin
|
|
|
|
|
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
|
|
|
|