C#/Questions Answered by Expert Srini Nagarajan

SubjectDate Asked
Passing Value in Datagrid to Crystal Report in C#12/28/2011
  Q: I just wanna ask how to create a report in c# getting one row or data in my database i'm using ...
  A: Hope this one helps ...
list filed on computer11/2/2011
  Q: can you please give me an example of how to list all directories/files on a computer and send them ...
  A: name space to use using System.IO; Get files from directory string[] filePaths = ...
Web Designing and Web Development Combination Experts10/17/2011
  Q: We observe that there are experts in Web Designing Software viz. Adobe Photo shop, Flash, Action ...
  A: few reasons. 1. Sometime back normally the design was no design based programming required.. ...
How to configure ASP.NET and c# in a Server?10/3/2011
  Q: How are you? I hope you and your family members are well. I have develop a project using Asp.net and ...
  A: All fine and hope the same! get your question clear here, so you web application located on ...
How do i block downloading8/25/2011
  Q: . i spent 2 days just finding some programming language that can block file downloading on any ...
  A: Sorry for the delay in reply i was not in station. You need to build http monitor to track this ...
C# How To View Contents of String Variable...Need Example...7/26/2011
  Q: I was told that I could view the contents of a string variable using an ASP.net control statement as ...
  A: Here is the script which does the upload and do the validation. I try to show how you should ...
Datagridview7/23/2011
  Q: I have add a datagridview control in a windows form from toolbox.I added columns by DataGridView ...
  A: On click of the button you have to do the following: This one pick first column and insert into a ...
File Upload Is Working But File Format Check Is Not...7/22/2011
  Q: I am relatively new to ASP.net so forgive me if I don't understand some concepts. Was attempting to ...
  A: i found there another simple one. Extension normally comes only with text like "doc" or "rtf". ...
File Upload Is Working But File Format Check Is Not...7/21/2011
  Q: I am relatively new to ASP.net so forgive me if I don't understand some concepts. Was attempting to ...
  A: It's a simple mistake. In the first list you converted to Upper case and in the if condition you ...
File Upload Not Working In C# Codebehind File...7/18/2011
  Q: I am relatively new to ASP.net so forgive me if I don't understand some concepts. Was attempting to ...
  A: Why do you want to store the image on to database? please store the image file in some folder and ...
delegates7/22/2010
  Q: i am isha can you explain the concept of delegates. what are delegates and why do we need to create ...
  A: A delegate in C# is similar to a function pointer in old C or C++. Delegate allows to encapsulate a ...
Browser back button issue7/7/2009
  Q: , consider i am working on serach pages,in that page there is a search panel(user control) on ...
  A: Sorry I was on vacation and busy with my work.. It's very hard to handle the Ajax controls with ...
DatagridviewCell in c#.net7/2/2008
  Q: i have created a tool in c#.net which displays data in a datagridview.i have provide a 'Find' button ...
  A: Sorry for the delay, i was away!! (Still away) You can do it thru javascript here are some of the ...
hello7/2/2008
  Q: I want to learn a program ,that is good for security systems.which programming is good? & which book ...
  A: Sorry for the delay I am away!!. You can start with C# basis. C# is part of .NET (DOT NET) frame ...
how to trigger a dropdownlist refresh6/4/2008
  Q: I'm kind of new to C#.NET and I've been breaking my head on this one for 2 days now. What I am ...
  A: Hope this helps I've created example web form with two dropdown lists to it and name it as ddlMain ...
C#.net datagridview5/17/2008
  Q: I am using datagridview in c#.net.I have kept the fixed column width.I want to adjust the row height ...
  A: if you use fixed column width, you have to make sure give enough space to each column and total grid ...
text files with c#.net5/7/2008
  Q: i am working in c#.net. I have a text file of 10MB which contains lot of data.i want to process the ...
  A: May be you cane have a look at IFilter whether it can solve your problem good article about it: ...
Retrieve hardware information through ASP.NET5/7/2008
  Q: do you know how can i retrieve hardware information when authorised users login to my portal which ...
  A: you should be able to get IP, broswer info, javascript enabled, flash installed etc.. but you can't ...
add images and video to dictionary project4/12/2008
  Q: i work on a bilingual dictionary that have a database in text format(notpad).i want add images and ...
  A: you can't use text format to store images or video... what you can do is upload all images and ...
callbacks in C#4/2/2008
  Q: I've read your article about callbacks. I've implemented it as you, but it crashes with "Attempted ...
  A: Looks like somewhere Memory leak deducted, you may want to check this url ...
.net4/1/2008
  Q: in my report 3 tables condition is there.but dataset separate condition is there.how to print ...
  A: you should get some unique id, pass the ID to SQL to filter and pass that to dataset. to explain ...
Problem related to Text file using c#.net3/28/2008
  Q: How to give printing of a text file at run time using C#.NET Window application?
  A: You can call a CMD script to print a external file you can use "Print" command starting it via ...
Change Datagrid cell color based on cell value3/26/2008
  Q: I've a EndDate field and the cell need to be highlighted RED for all EndDate that are less than or ...
  A: Here is the simple sample //Loop through all rows. for (int x = 0; x < yourGridName.Rows.Count; ...
Sample Project3/4/2008
  Q: . I have got the training of using the basics of Visual Studio 2005 .. Can i get any smapll project ...
  A: Once you add to cart store what products added into the session variable based on the session ...
prob regarding get there project2/28/2008
  Q: actually i have to make a project n d purpose of this is to help a person to reach from one palce to ...
  A: Do you want to build a map or just give only text direction between buildings? if only text ...
Sample Project2/26/2008
  Q: . I have got the training of using the basics of Visual Studio 2005 .. Can i get any smapll project ...
  A: To build image funcationality, you can upload the image into images folder, store the image name in ...
C#.Net2/6/2008
  Q: i want to create a microsoft word window by using C#.net tool box. like menu bar tool bar etc. then ...
  A: Sorry for delay in reply You need to download "visual studio tools for office" You can get it free ...
reading a text file2/5/2008
  Q: Please help me to complete the below script so that i can read a text file called new from my C ...
  A: Check whether you have given permission, Here is the working script 1st step it checks for file ...
Process outputs11/1/2007
  Q: I want to create a process that retrieves the output from external application. I declared ...
  A: it's not possible to get the string when the application exists.. it will run in a different thread ...
Work with various data extension of files9/26/2007
  Q: How can I work with lots of extensions of files? For example what should I do if I want to write a ...
  A: Here is my answer 1. Most of the SDKs are free goto the source for example Microsoft Windows Media ...
Work with various data extension of files9/21/2007
  Q: How can I work with lots of extensions of files? For example what should I do if I want to write a ...
  A: If you want to read/write any file type you need to buy 3rd party software.. for example for ...
Work with various data extension of files9/17/2007
  Q: How can I work with lots of extensions of files? For example what should I do if I want to write a ...
  A: Do you want to write a windows application? if so all these information stored in Registry, you ...
My Project9/16/2007
  Q: I was doing a project on C#.net using Microsoft Visual Studio 2005 that tracks total bytes sent and ...
  A: 1. May be this sample would tell you how to get the data.. ...
.Net windows form application error7/10/2007
  Q: I have a .net 2003 application that utilizes crystal reports verion 10. On the development box I ...
  A: I am not that familiar with crystal report. But creating file with space is not advisable. Most of ...
c language compiler1/10/2007
  Q: my question is.. how c compiler written in c language?? thank you ...
  A: You believe that you are facing egg & chicken story. It's true that the very first C compiler ever ...
Doubt regarding ASP.NET and .NET Framework12/26/2005
  Q: I was checking to know what is the .NET framework exactly. I understand that ASP.NET is just built ...
  A: .NET is a Framework... You can build either Windows or Web or WebServices or Mobile applications ...
Diff Between Cast and Convert11/24/2005
  Q: int i1 = 5; double d1 = i1 + 0.99; int i2 = (int)d1; //result is 5 i2 = Convert.ToInt32(d1);//result ...
  A: The Convert.ToInt32(String, IFormatProvider) underneath calls the Int32.Parse. So the only ...
Random numbers in C#.NET11/23/2005
  Q: Hy, How can I generate random numbers (int) in C#.NET? Thank you!
  A: here is my simple method generate random password for you can remove alphabet from this int num = ...
work with files in C#.net10/28/2005
  Q: How can I work with text files in C# .net? For example I want to open a text file, read something ...
  A: I am sorry not replying imdtly!! Here is simple example to open and write files Listing 1: ...
examining multiple conditions using a single button10/27/2005
  Q: I am writing a very simplistic spelling test program for my son in Visual C# 2005 Express Edition ...
  A: Sorry for the delay in my reply!! I suggest you can store the right answers into array, once the ...
Developer's Productivity10/25/2005
  Q: I am a dotnet developer, I was working in a good company but the only problem there was the ...
  A: I am sorry not replying imdtly!! It's depends on what type of development you do.. Normally I won't ...
Button ToolTips10/23/2005
  Q: I am working on a c# windows application project and I have 2 questions: 1)I have some buttons on my ...
  A: 1. use like this private void Form1_Load(object sender, System.EventArgs e) { // Create the ...
C Data Structure in C#10/19/2005
  Q: I have a DLL that is written in C. I have to use it from within C# code. Some of the available DLL ...
  A: I haven't really worked with Unsafe/Unmanaged code interact with C# May be this article will help ...
Browser Settings10/3/2005
  Q: I am working in C#.NET project.We are using visual studio 2003 version with .NEt framework 1.1 ...
  A: Thru .NET you can't change the client's browser settings.. If the client disabled javascript you ...
Always On Top9/22/2005
  Q: I have a form in my application (other than the main form). I want this form to be AlwaysOnTop; i.e. ...
  A: Here is the sample code frmMdiChild child1=new frmMdiChild(); child1.MdiParent=this; ...
Making Reports in C#8/22/2005
  Q: I am a beginner at C# programming. I have a small project with a dataset connected to a sql server ...
  A: Sorry for the delay rpt1 custReport = new rpt1(); You can't use the rpt1 directly.. try like ...
C language7/31/2005
  Q: I want to ask u this question... CAn i draw 2 squares ( including the lines ) but the upper-left ...
  A: Do you need in C#? I know only C#. Try this using System; namespace Polymorph { public ...
Trying to access macro by C#7/27/2005
  Q: Here Iam instantiating the excel application object and by using the automation Iam trying to access ...
  A: Did you give the permission to IUSR and IWAM? I think any one of the line failing... new ...
C# form7/14/2005
  Q: First of all I hope you have a good day! I've created a windows form that contains some controls, ...
  A: Sorry I haven't worked that much with WinForms... But I can give some ideas... You can declare a ...
Full address of a user's Desktop6/26/2005
  Q: I want to know how I can have the FULL adress of a user's "Desktop"; for example , for a user named ...
  A: Here is the code <% ''''''''''''''''''''''''''''''''''''''''''''''''' ' ADSI User ...
Question6/3/2005
  Q: I hope that you will be fine and working hard. I have better understanding of the language C++. Now ...
  A: 1. You can start downloading the .net framework from microsoft.com 2. You need visual studio .net ...
C# Question5/3/2005
  Q: I am currently learning C# on my own. I made a C# Console database program that interacts with SQL ...
  A: before doing this "int.Parse(Console.ReadLine())" use typeof function to find whether its a Integer ...
Visual C++ and Visual Studio5/2/2005
  Q: My question is not technical. I am wondering what is exactly visual C++ and visual studio? what is ...
  A: Visual Studio is a Editor.. like MS-WORD. You can write programming using VS and compile. Visual ...
Font Serialization4/25/2005
  Q: I am writing a c# program and i am using serialization to save an object to an xml file. one of the ...
  A: Try this using System; using System.Drawing; using System.IO; using System.Runtime.Serialization; ...
Problem in the overall docking behavior of dotnet4/7/2005
  Q: I strongly beleive there is a strange logical problem with the overall docking behavior of the ...
  A: I haven't worked much with Windows Forms. I did some research on it.. Lot of people having same ...
passing values from a usercontrol to another page3/27/2005
  Q: i have created a user control which has 2 dropdownlists . on clickig the submit button i want to ...
  A: It's important to know which events are fired when a user changes the dropdownlist. First, in the ...
How mu$h ?3/27/2005
  Q: I recently married and moved to Miami, FL. My experience with the job market here is that they are ...
  A: Sorry for the delay in reply. With you your skills and if you really stron on .NET you should be ...
NameSpace3/14/2005
  Q: How do you define namespaces in .NET?
  A: Sorry for the delay in reply. The namespace keyword is used to declare a scope. This namespace ...
.Net Programing3/11/2005
  Q: First of all I hope you have a good day. How to develope a solution with multiple projects using ...
  A: Sorry for the delay in reply!!! You can use VisualStudio.Net 2003 for developing multiple projects. ...
compiler question2/23/2005
  Q: one is likely to find different compilers made by software houses. One factor of comparison, for ...
  A: What exactly you are looking for? Normally the complier converts into machine code (assembly ...
accessing member data of an iterator2/7/2005
  Q: I'm having trouble discovering how to access data members of objects pointed to by the iterator ...
  A: I am sorry for the delay in reply, I was away from my email.. The problem with C# is not a pointer ...
Find the greatest sum with moving cursor2/2/2005
  Q: This is an interesting programming question that I would like your help to solve. Though the ...
  A: Sorry for the delay in reply. I am not clear exactly how the cursor will be moved.. it will be ...
C# global Assemblie1/23/2005
  Q: 1.i have one shared assembly in server GAC how do i use it from a client application(.NET) on ...
  A: 1. in Maching.Config you can use DEVPATH option for using shared assemblies outside of GAC. 2. By ...
Question1/14/2005
  Q: Sir, I have question related to the algorithm. Please given you answer with the help of some ...
  A: Are you looking for the solution built in C#? Here are couple of links talks about networking in C# ...

All Questions in This Category

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Top Expert on this page

Expertise

can answer any kind of questions in ASP.NET, C#, VB.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, Coldfusion, Powerbuilder

©2012 About.com, a part of The New York Times Company. All rights reserved.