4,588 Topics

Member Avatar for
Member Avatar for S2009

Hi, I want to keep track of the number of visitors to my site. I tried the following code in the Global.asax class, [code] public static int count = 0; void Application_Start(object sender, EventArgs e) { Application["myCount"] = count; } void Session_Start(object sender, EventArgs e) { count = Convert.ToInt32(Application["myCount"]); Application["myCount"] …

Member Avatar for mohan221
0
2K
Member Avatar for amitkumarmailid

declare and assign value to variable at runtime in C# variable names are stored in database(sql server). how can i able to declare varible with these name during runtime. after that assign value... thanks. amit

Member Avatar for Ketsuekiame
0
267
Member Avatar for shah.harsh.m

I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in …

Member Avatar for shah.harsh.m
0
274
Member Avatar for Subha1983

Hi, In a form of 10 checkboxes, i needed to write/read/update those checked state values to and from SQL. Could you please let me know the best of of doing this.Each checkedbox represent one database column with bit type. Thanks. Subhash.

Member Avatar for AleMonteiro
0
74
Member Avatar for hirenpatel53

hi all i am reading excel file from c# into dataset everything working fine but the problem is it takes first row of excel as header's of column and i have "TRANSACTION DATA FOR CDs MANAGED BY TCBILs FOR THE MONTH OF DECEMBER 2012" in first row of excel ant …

Member Avatar for remunance
0
215
Member Avatar for mariocatch

Hey All, I'm an avid c++ programmer, fairly new to C#. I understand most the basics and I can get simple tasks complete in C#. I'm looking for any links to tutorials on writting a scripting language in C# if anyone has/knows any. In relation to this question, I seem …

Member Avatar for fletcher.cutting.9
0
382
Member Avatar for bhagawatshinde

Hi, I am new in asp.net. i have an task to read xml file from server folder and insert these values to sqlserver 2005 database. how i can do this. thanks in advance.......

Member Avatar for softwareskill
0
889
Member Avatar for JamesGeddes

Hi Everyone, I need to write to a text file that is located on my website Currently, I have the following code to let me read from a text file on my website [CODE]HttpWebRequest reqFP3 = (HttpWebRequest)HttpWebRequest.Create("http://jamesgeddes.com/tracknan/phone3.txt"); HttpWebResponse rspFP3 = (HttpWebResponse)reqFP3.GetResponse(); Stream st3 = rspFP3.GetResponseStream(); using (StreamReader sr3 = new …

Member Avatar for softwareskill
0
765
Member Avatar for desup

Hi, I need just simple help. Could you just give me a tip for some good TCP server/client library for Csharp? It should be easy to use, and can handle big data size. Because I was using a Netcomm library, and while sending Image bytes, It has god frozen. Thanks …

0
165
Member Avatar for notconfirmed

Hello, I have a application created in windows using c# language. Now my client wants to run the executable file on the centOS server. Do you have idea on how to run my executable file into centOS server?..please help me. I appriciate some suggestion. Regards!

Member Avatar for deceptikon
0
1K
Member Avatar for shujat132

I am beginner in for c# Please help me for compilation of this code. Also please tell me about these error. Thanks using System; class SearchEmp { String[] Name= {"Aslam","Irfan","Afridi","Junaid"}; SearchEmp(string name){ this.name = name; } public void Search(){ name= "Afridi"; if(Name[0]==name||Name[1]==name||Name[2]==name||Name[3]==name){ Console.WriteLine("FOUND"); } } private readonly string name; public …

Member Avatar for otengkwaku
0
164
Member Avatar for visweswaran28

Hi, I have a string "<div width=200 height=700 rowheader="true" columnsize=4></div> I want to extract widht, height, rowheader & columnsize value from above string through C#.net I tried to load the above string in XMLdocument, but I used to receive an exception. Please suggest me to proceed this. Thanks in Advance.

Member Avatar for deceptikon
0
132
Member Avatar for ryan311

Hi i've created a class which name is testclass.cls Inside of testclass.cls i created this code public void Insert(string materialSize, string KgPermetre, string PricePerCut, string MaterialType, string LineColour) { SqlConnection objcon = new SqlConnection(Cls_Connection.srConnectionString); objcon.Open(); SqlCommand cmd = new SqlCommand("sp_MaterialSize", objcon) { CommandType = CommandType.StoredProcedure }; cmd.Parameters.AddWithValue("action", "Insert"); cmd.Parameters.AddWithValue("MaterialSizeId", ""); …

Member Avatar for Mike Askew
0
170
Member Avatar for <M/>

I am looking for a C# editor and I am wondering what is the best one (hopefully for mac) and I noticed that Visual studios is good (but i believe it is windows only though)... I am wondering if anyone has any recommendations for an editor (unless Dreamweaver or Coda …

Member Avatar for nmaillet
0
624
Member Avatar for rexdon

//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged …

Member Avatar for deceptikon
0
991
Member Avatar for c_learner

Hi people, I would like to learn how to create database applications which store the data entered by multiple users, process the data, and provide the data as requested by the user. Is it possible to write such an application by using Microsoft SQL Server and Microsoft Visual C#? I'm …

Member Avatar for soethandar
0
205
Member Avatar for SpyrosMet

Hello, I have this Windows Phone app I need to do that gets information from the Google places API about places that the user searches for. For each place I need to have a pushpin on a bing map I have inserted. The problem is that I'm a newbie in …

0
136
Member Avatar for SpyrosMet

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for jvinothkumardpi

hai i am a student working on my project on C# coding in which i need to display the datas of the solar inverter readings which i already uploaded to mysql database and from that i need to show the datas through C# coding. i did the coding for displaying …

Member Avatar for Ketsuekiame
0
161
Member Avatar for mradzinski006

Hi, Im developing a tool that needs to access to the names.nsf database inside IBM Lotus Notes, and, using the lotus contact ID (Employee ID) (this id will be provided by the user), retrieve the full information of the person (Name, Phone #....) I found an example in Codeproject.com, however …

Member Avatar for Ketsuekiame
0
95
Member Avatar for sujit.patil

int x=5; int y=10; object o1=x; object o2=y then how we can compare o1 and o2 (=,<,>,<=,>=)

Member Avatar for Ketsuekiame
0
2K
Member Avatar for marinus

I need to develop an application to send a picture from my PC to phone. i'm planning to use c# in .net but i couldn't find any library. I found links pointing to microsoft.windowsmobile.sharedsourse.bluetooth dll wich is not having any functions and in 32feet.net i don't know how to use …

Member Avatar for <M/>
0
109
Member Avatar for harishbansal90

Hi, I want to get the External IP address in console application using C#.net. External IP is different from local machine IP. any help? Thanks

Member Avatar for nmaillet
0
646
Member Avatar for localp

I am new to C# and ASP.net. I have been asked to create a login screen which i have done. but i am sending messages as plain text. but the requirement is to not show the password that is sent across the network. How can i do this. Any tutorial …

Member Avatar for tinstaafl
0
80
Member Avatar for mathias234

Hello i am doing a WOW launcher but i wanted to switch from vB.net to C# so i used this converter http://www.developerfusion.com/tools/convert/vb-to-csharp/?batchId=afeaecee-b774-436c-a04a-97009e64a2bb but i getting some errors http://pastebin.com/enQ1s414 My code http://pastebin.com/F9CnGyKp I hope you guys might help me :) btw do not care about that missing GUI things just that …

Member Avatar for tinstaafl
0
727
Member Avatar for CPT

Hello everyone, I've encounterred a problem that I cannot seem to overcome. For the program to compile there are a few steps necessary to take: from the website [Click Here](http://osl.iu.edu/research/mpi.net/software/) on the download page, one would need to download and install: 1. MPI.NET SDK 2. Microsoft Compute Cluster Pack SDK(this …

Member Avatar for Ketsuekiame
0
376
Member Avatar for AleMonteiro

Hi everybody. I'm trying to insert an indented code inside another indented code, using the first indentation as base for the second. I mean, the second indentation must begin at the end of the first. The indentation i got working right, but it is adding some undesired line breaks, that …

Member Avatar for AleMonteiro
0
238
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Member Avatar for nmaillet
0
356
Member Avatar for riahc3

Hello I want to make a C# web services for XAMPP (basically Apache). I know I have to download a mod for this but first thing is first: Where is a good guide to read on how to create a web service? Guides Ive found are either outdated or very …

Member Avatar for AleMonteiro
0
876
Member Avatar for thechampp

How List.Sort() indecates where the salaries in the list will be ordered and how to be ordered (asc or desc)? using System; using System.Collections.Generic; class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public int CompareTo(Employee other) { // Alphabetic …

Member Avatar for tinstaafl
0
343

The End.