how to get the table names via c sharp and column names
also?
Answers were Sorted based on User's Feedback
Answer / ganesh
i dont know the answer pls send it to me..........
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / krishna
create a data reader object and call the method GetName(n)
where n is the index no of the column name.In this way u can
get the name of the column and place it in a label.
Eg: Label1.Text=datareader_obj.GetName(0);
the above code will give you the name of the first colunmn.
| Is This Answer Correct ? | 1 Yes | 4 No |
. Write a program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
how to get the table names via c sharp and column names also?
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
program for straight line(y=mx+c)
program to reverse the order of words in a string.
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
Can you declare an array of mixed Types?
"c sharp" code for factorial using static variables
Code for Working with Files under a Directory?
program to reverse the order of digits in a given number of any length.
working with arrays
Hello Sir, Thanks for the Solution but, can you pls. Explain the coding for the Static Function & static variable from the below coding....waiting for Ans. class fact { public static void Main() { fact f=new fact(); int x=1; //Declaration of x as 1 int k=Convert.ToInt32(Console.ReadLine()); for(int i=1;i<=k;i++) { x= x *i; } System.Console.WriteLine(x); } }