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 |
program to reverse the order of words in a string.
Code for IP Address Comparison and Conversion in C#?
How to Link Different Data Sources Together?
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?
How to add a value from textBox over an existing certain column in SQL Server
c# code to Count number of 1's in a given range of integer (0 to n)
working with arrays
write a Program to copy the string using switch case.
program to check if a number is "perfect number".
Give the code for Handling Mouse Events?
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.
Coding for Manipulate XML File Data Using C#?