|
I want to get list of asp.net controls and list them in a listbox. I know they are all in WebControl namespace but there so many extra class are also there. So anybody know some smooth solution?
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
which type of controls u want?
mention it clearly...
|
|
|
|
|
Standard Controls, Data Controls, Validation Control, Login Controls
Mazy
"This chancy chancy chancy world."
|
|
|
|
|
Hi i m again i had made a Stored procedure which return a table of two Column in which there 700 record i want to show the record in the Crystal report int in 2 Four Column Like Half og the record should be shown in First two and remaining in last two Coulmn what i shell doo
wasim khan
|
|
|
|
|
What is the smallest unit of execution in .NET?
Is XML case-sensitive
modified on Tuesday, December 11, 2007 3:55:05 AM
|
|
|
|
|
Assembly?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hello Friend,
Assembly is the smallest unit in .NET to execute.
But can u explain it wht it is
|
|
|
|
|
Vasudevan Deepak K wrote: Assembly?
Define "assembly"
Did you mean a DLL or EXE? If so, isn't that the largest unit of execution?
|
|
|
|
|
I guess the smallest unit of execution is a property, because they tend to be smaller than methods. Is this what you meant ?
Does Google say that XML is case sensitive ? Have your experiments with XML indicated that it's case sensitive ?
It is, but you shouldn't need to ask here to find that out.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sir r u sure smallest unit of execution is property not Assembly as i got in last reply
|
|
|
|
|
The Knowledge wrote: Sir r u sure smallest unit of execution is property not Assembly as i got in last reply
How do you know the previous reply was correct? What makes you doubt Christian?
|
|
|
|
|
The Knowledge wrote: What is the smallest unit of execution in .NET?
What do you mean by smallest unit of execution? .NET languages comile in to CIL (aka MSIL). Each CIL instruction could be considered the smallest unit of execution.
|
|
|
|
|
Homework questions much?
Now that you've had 3 pretty good answers which one are you going to submit? Have you considered checking back in your course notes to see which one of these your teacher thinks is the right answer?
|
|
|
|
|
Now i'm very confused because i've 3 good answers
But still i don't know which i must go with.
|
|
|
|
|
The Knowledge wrote: Now i'm very confused
Therein lies the problem of having not listened in class and expecting an answer from the internet to be definitive.
|
|
|
|
|
Hi,
I am trying to split a class(Class1) to different files, hence i have changed the access specifier for the Class1 to Partial. I have created one more class with the same name(Class1) and same namespace. From the second class file which i created, i am able to access the procedures / functions from the first class file, but i am not able to access the variables which are used there.
Can anyone help me to access the variables from the first class file.
Regards
N.Surendra Prasad
|
|
|
|
|
That's just not possible. If you have a partial class, properly declared, then the variables and methods are all together in the one class.
Having said that, when I do a partial class, I tend to make it so that variables are used in methods in the same file. That just makes sense of the whole concept
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have the variables and methods inside one class. I want to break that class into two classes so that the size of the class is reduced. That is the reason why i went for partial class concept.
I have few variables which will be used throughout the class, so they have been declared globally in that class. When i tried moving few methods to the other class file, i am not able to access those global variables which are there in the first class file.
Can you help me on this?
Regards
N.Surendra Prasad
|
|
|
|
|
N.Surendra Prasad wrote: so they have been declared globally in that class.
I don't know what this means, how is something declared globally, but within a class ? Do you mean a member variable ?
N.Surendra Prasad wrote: Can you help me on this?
You need to post some code, so we can see what's going on.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian,
Here is the code which i have used.
File1:
Partial Class TEWebClass
Inherits UI.Page
Protected cnn As New ADODB.Connection
Protected rs As ADODB.Recordset
Protected rs2 As ADODB.Recordse
End Class
File2:
Partial Class TEWebClass
Inherits UI.Page
Public Sub clientadd_ProcessForm()
Dim formError As Boolean
Dim itemOK As Boolean
Dim errortext As String
...
End Sub
End Class
These are two different files with the same class name. From File2, i need to access the variable cnn which is declared in File1. I tried, but not able to do it.
Can you help me.
N.Surendra Prasad
Winning doesn't always mean being first, winning means you're doing better than you've done before.
|
|
|
|
|
Your code looks OK. Are you getting any error ?
|
|
|
|
|
Hi Navaneeth,
I tried using the cnn variable from File2, it throws the error "variable cnn not declared"
N.Surendra Prasad
Winning doesn't always mean being first, winning means you're doing better than you've done before.
|
|
|
|
|
If you have any namespace defined, make sure it is same for both files.
|
|
|
|
|
N.Surendra Prasad wrote: Protected cnn As New ADODB.Connection
Protected rs As ADODB.Recordset
Protected rs2 As ADODB.Recordse
Why? Just why?
|
|
|
|
|
N.Surendra Prasad wrote: I have the variables and methods inside one class. I want to break that class into two classes so that the size of the class is reduced.
I presume you need to keep variables in one file and methods in other, right ? So your partial class would be like
file name would be MyClass.Variables
partial class MyClass
{
public int a;
private string b;
} file name would be MyClass.Methods
partial class MyClass
{
} when compiled, this will act as a single class. You can access variables as you do in normal class.
|
|
|
|