For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I'm not sure if this is the right place to post this or not. If not I apologize but I am looking for a c# programmer who will undertake a project with me. I know there is plenty out there but I feel I or we could do it better and get people to use it. It would be a hard project but I am sure we could do it since I am not that great with c# I need someone who really knows what they are doing. I can take care of the website and other stuff and help with designing of the app and such.
Its a server client chat system like yahoo messenger. I want to have the server on the site and client be a windows app in c# anyone interested please let me know
please do not reply with nasty or harsh comments just like everyone else its a idea
I am able to compare the entered value of an input field with stored values in a dataset. However, I am having trouble doing the same with multiple input fields. Here is my code with single input field. Please advise how to go about the same with multiple input fields. Thanks in advance for any help.
protectedvoid Submit_click(object sender, EventArgs e)
// Create connection string variable. Modify the "Data Source"
// parameter as appropriate for your environment.
string path = @"C:\TEMP\ExcelSearchWebApp\OneWayContainers.xlsx";
string connStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path + ";Extended Properties=Excel 12.0;";
// Create connection object by using the preceding connection string.
OleDbConnection objConn = new OleDbConnection(connStr);
// Open connection with the database.
// The code to follow uses a SQL SELECT command to display the data from the worksheet.
// Create new OleDbCommand to return data from worksheet.
OleDbCommand objCmdSelect = new OleDbCommand("SELECT * FROM MyRange", objConn);
// Create new OleDbDataAdapter that is used to build a DataSet
// based on the preceding SQL SELECT statement.
OleDbDataAdapter objAdapter1 = new OleDbDataAdapter();
// Pass the Select command to the adapter.
objAdapter1.SelectCommand = objCmdSelect;
// Create new DataSet to hold information from the worksheet.
DataSet objDataset1 = new DataSet();
// Fill the DataSet with the information from the worksheet.
string strContainerInfoText= Convert.ToString(txtCntrInfo.Text).ToUpper();
if (objDataset1.Tables.Rows.Count > 0)
for (int i = 0; i < objDataset1.Tables.Rows.Count; i++)
strExcelContainerInfo = Convert.ToString(objDataset1.Tables.Rows[i]["OneWayContainers"].ToString()); //fetch Name clm from db
if (strContainerInfoText == strExcelContainerInfo )
ScriptManager.RegisterStartupScript(this, this.GetType(),"alert","alert('OneWayContainer');window.location ='RedirectPage.aspx';",true);
//Submit form logic;
// Clean up objects.
How would something general like C# be more appropriate than ASP.NET?
You can use C# in any number of UI's; being from WinForms my first idea would be to have the part that does the comparing, compare a list of items. Chances are rather high that there is an solution for ASP.NET that has no direct equivalent in WinForms, which might do this more efficient.
Wasn't meant as rude as it may have sounded; it is nice to see a question with code that is even formatted, and a well-formulated question
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
No Problem Eddy.
As far as the question is concerned, this is a web application. I know this has to be done by iteration of these input fields through a loop.Just that I am not getting it right. Any help on this would be appreciated.
Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle._SerializationInvoke(System.IRuntimeMethodInfo, System.Object, System.SignatureStruct ByRef, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
at System.Resources.ResourceReader._LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
at System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
at System.Resources.ResourceReader.LoadObject(Int32, System.Resources.ResourceTypeCode ByRef)
at System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean, Boolean)
at System.Resources.RuntimeResourceSet.GetObject(System.String, Boolean)
at System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)
at System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo)
actually I already fixed the problem, see my reply above on Pete
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Your tutor is not looking for what I would do to solve this, he is looking for what you would do; how you analyse a problem; how you think.
So start thinking: how would you work it out manually?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Last Visit: 31-Dec-99 18:00 Last Update: 1-Sep-15 6:20