229 Posted Topics
Re: Hi What type of data do you want to write to the file and read later on? | |
Re: Of course you are :) Even if somebody did know and your reasons were completely innocent, posting the solution here for others to find would not be ethical and no doubt break the rules. | |
Re: What language? What have you tried? Show us some code? You will want to be using an If statement based on some input. Without seeing what you have done and further information, it's a bit difficult to assist. Aslo, I assume this is a homework question, so you really should … | |
Re: What have you tried so far? No one is just going to give the code for a whole program? | |
Re: Hi What do you mean by: > i want query to fetch ac_no 4,5 detail who cant credit in 02 month in same table.. What SQL statements have you tried? What are the rules? | |
Re: Hi I don't quite follow, are you trying to return a list of objects to a json file to the view (I am assuming this is ASP.NET MVC) as a file or as a model? What are you trying to do and what is working in IE and not in … | |
![]() | Re: Hi > Would these settings reset back to default if I were to compile and export the project? No, but you need to be mindful in what mode you are compiling. If you test in Debug mode and modify the application settings file in the Debug/bin folder and then compile … |
Re: Hi Check out the StreamWriter class: https://msdn.microsoft.com/en-us/library/system.io.streamwriter%28v=vs.110%29.aspx HTH | |
Re: Hi Silly question but will ask anyway, is the connection string correctly pointing to your database in the App_Data folder. Your connection string is usually set within your web.config file (not the one in the Views folder but the one in the root folder) and you will usually have a … | |
Re: Hi I tried out your code and one thing that struck me as not working quite right (although I don't know all of the rules) is that if you have the hours greater than 3 then you effectively get the item cheaper. For example, if I take the Boogie Board … | |
Re: Hi If the user name is in column 1 and that is what you are using to match against your text box then you already have the code via the SubItems property and can use this in your message box. MessageBox.Show(String.Format("Username: {0}, Password: {1}", ListView1.Items(i).SubItems(0).Text, ListView1.Items(i).SubItems(1).Text)) You will also need … | |
Re: Hi Can you elaborate? What code do you have for selecting a voter? How is your database structured to assigner voters against a particular vote? Without further information, the best I could offer would be to use a COUNT query that utilises a WHERE Candidate=SelectedCandidate. | |
Re: Hi I have no experience with Unity 3D but having read your post a couple of times, I am a little confused. You mention at the top that you are familiar with OOP but then provide an example of using an Executor class to call it's AddLine and Execute methods … | |
Re: Hi A quick and dirty solution would be to simply use the [String.Split](https://msdn.microsoft.com/en-us/library/b873y76a(v=vs.110).aspx) method to split the string on the comma and return it to a string array. You would then assign each of the elements from the string array to each of your text boxes. However, if you are … | |
Re: Hi Do you have a question? Have you tried anything? If your question is how do I split Col1 based on a pipe to produce a table then check out this great example [Split a string to a table using T-SQL](http://ole.michelsen.dk/blog/split-string-to-table-using-transact-sql.html) which creates a function to perform the split and … | |
Re: Hi According to [this](http://www.lapspecs.com/detail/hp-compaq+presario+c700) the tech spec states DDR2 at 667Mhz. If you have the exact model number of your machine, then you can search for the tech spec which will tell you exactly what type of memory is supported and how much memory in total the board can take. … | |
Re: Hi Not quite sure I fully understand. Are you asking what kind of structure the solution should be? For example, multiple projects or something else? | |
Re: Hi I notice that when you are creating your dynamic controls you are not giving them an ID. This means that ASP.NET will assign an arbitary ID for you, something like ctr1, ctr2 etc. which is not going to help you in the next stage. Do you have something in … | |
Re: Hi Not sure how you are adding data to your classes but looking at your code I can see you have a lot of Windows Forms code within your classes. This is a bad design. Your classes should not need to know anything about Windows Forms. It shouldn't even need … | |
Re: Hi Not sure what you mean by Main method defining. Do you mean, how to use this class within your console application? If so, create a console application and you will find a Main method. Then if your class is part of the same file or you have added a … | |
Re: Hi This can be done using ADO.NET and the OleDb objects coupled witih a series of INSERT statements, but it would be useful to know what the data is and how you plan to store it. That is, is the data to be stored in one table or many, and … | |
Re: Hi What browser are you using on the laptop and desktop computer? Is your laptop and desktop computer accessing the Internet via a corporate proxy server? | |
Re: Is the value entered into the box on the website something that the user does or will it be available when the web page loads? The reason I ask is you could consider making a http request for the page and if the value is there on page load then … | |
Re: Hi Rather than changing the isInteger method (which may be used elsewhere), if you want to allow alphanumeric characters, just remove the isInteger check in your code: if (vic.value.length != 4) { alert ("VIC is required (4 alphanumeric digits)."); return false; } Not sure if you have other requirements such … | |
Re: Hi If I understand correctly, you want to search the list box for an entry that has been made in a text box? if so, the following should point you in the right direction. It uses the ListBox.Items.Contains method to determine if the list box contains the value: If ListBox1.Items.Contains(TextBox1.Text) … | |
Re: Hi You can use [Windows Management Instrumentation](https://msdn.microsoft.com/en-us/library/aa394582%28v=vs.85%29.aspx) to do this. I'm not an expert in this area but I did find a very nice tool called [WMI Code Creator](http://www.microsoft.com/en-gb/download/confirmation.aspx?id=8572) that allows you to browse the WMI classes for both information and methods and then depending on what you want to … | |
Re: Hi It is possible to create your controls dynamically and add them to your page. For example, consider the following: **ASPX Designer** <body> <form id="form1" runat="server"> <div> <asp:PlaceHolder ID="reportParametersPlaceHolder" runat="server"></asp:PlaceHolder> </div> <input type="submit" value="Submit" /> </form> </body> The place holder will be where we add the dynamic controls as follows: … | |
Re: Hi Not knowing how your database is setup the following is just a pointer. If your first DataGridView that lists the students has a StudentID (let's say this is the first column in the DataGridView) then you could pass this to your second form. In your second form, declare the … | |
Re: Hi Can I ask why you would want to do this? Can you not have a physical aspx page that can be rendered according to whatever needs you have. You obviously have some logic somewhere as you mention building a string, so could this logic be applied to rendering a … | |
Re: Firstly, no you shouldn't be ashamed, if helping others out and learning at the same time is your goal then who cares what platform you use. I personally post on three forums. I do however disagree with the comment regarding community at StackOverflow. I'm new here but already I feel … ![]() | |
Re: Hi Not quite sure what you are referring to here. If you are referring to a database and wish to have an ID value that is sequential then you can use an AutoNumber (Access), an Int with Identity Seed (SQL Server) or AUTO_INCREMENT (mySql) that will increment for you. When … | |
Re: Hi Can you provide the code that you are currently trying to get working and a bit more of an idea of what you mean by "second column of a row when a variable matches the first". | |
Re: Hi Is this ASP.NET WebForms or MVC? The following approach (may not be the best) is based on WebForms as you mention page load and just presents the concept of adding your own markup from the code behind. If it is MVC then there are much easier ways of doing … | |
Re: Hi What type of testing are you referring too? If you just want to make sure that your site looks correct in multiple browsers and client side code works correctly then you can use something like [spoon.net](https://spoon.net/browsers/). If however you are looking to test the functionality of the site then … | |
Re: Hi There is a topic on the Microsoft Community site ([here](http://answers.microsoft.com/en-us/windows/forum/windows_8-winapps/the-program-cant-start-because-msvcr110dll-is/f052d325-3af9-4ae5-990b-b080799724db))regarding this with an explanation of what it is and how to reinstall it. HTH | |
Re: Hi Yes it is possible but how depends on what database you are using and where you plan to place the backup. If it is a file based database like Access then simple file copying procedures would work. If the Access database is local you could even make use of … | |
Re: Hi What data are you trying to show in a DataGridView. Your code only shows how you are getting a Total from a table? | |
Re: Hi At the moment you are explicitly stating [Summary$] in your SELECT statement. If you want just Table1 then you can change this to [Table1$]. If you want all sheets from your Spread Sheet into a DataSet with a DataTable for each sheet then you could try the following code. … | |
Re: Hi You are going to need to provide a lot more information than that if you want to get a decent response. What database are you using? What data do you want to insert and to what table definition? What data do you want delete and does the table you … | |
Re: Do you want to show the whole row or a cell value of a column from the selected row? To show a particular value from the selected row would be something like: `DataGridView1.SelectedRows[0].Cells[1].Value` HTH | |
Re: Hi You could you use a [Trigger](http://dev.mysql.com/doc/refman/5.5/en/triggers.html) to update your intermediary table when inserting data into a different table (assuming that is what you want to do in order to keep the referential integrity between the three tables). | |
Re: Hi If I understand correctly, your first combo box will contain the data from the Master table and based on the selected value you want to load a second combo box with data from a table that has the same name as the item in the Master table. Thhe following … | |
Re: Hi I'm neither a Java expert or a Linux expert but I also run Ubuntu and recently installed [NetBeans](https://netbeans.org/) which is a Java IDE. There are alternatives such as [Eclipse](https://eclipse.org/) but personally, I find NetBeans to be an easier IDE to use as it concentrates on Java development (with a … | |
Re: Hi To use query strings you make use of the `Request.QueryString` method assuming of course that this is WebForms and not MVC. So for example, consider that you have a Default.aspx page and a Report.aspx page. On the Default.aspx page you might have two basic links: <a href="Report.aspx?ReportID=100" /><br /> … | |
Re: Hi You could do simple string concatenation: Dim bodyString As String = TextBox1.Text & TextBox2.Text & TextBox3.Text ..... And then using `Mail.Body = bodyString` Or use a StringBuilder if you are going to be concatenating a large number of strings: Dim sb As New StringBuilder sb.Append(TextBox1.Text) sb.Append(TextBox2.Text) .... And then … | |
Re: Hi In addition to Sugmuffen's recommendation of using GetOleDbSchemaTable there is also the GetSchema method which works similarly and allows you to get all kinds of information about your tables, columns, indexes and views. The GetSchema method is part of the System.Data.Common.DBConnection object so is available for both OleDbConnection (Access) … | |
Re: Hi The reason you are not printing any formatted text is that you are explicitly stating in the DrawString method the font and font style to be used. There is a step by step article on Microsoft that will show you how to create an extended version of the Rich … | |
Re: Hi You are missing some braces which is why the compiler sees an else without an if statement. The syntax should should be: if (your test) { //do some stuff } else if (another test) { //do some other stuff } HTH | |
Re: Hi At first glance I would say that you are missing single quote characters around your string criteria values. So instead of `"""" & cmbLocName & """"` it would be `"'" & cmbLocName & "'"`. However, having said that, it would be easier if you take the value of sSQL … | |
Re: Hi You will need to provide more information other than just view path and file name and give me the code. A good starting point if you want to work with directories and files would be to look at the MSDN documentation, specifically the [DirectoryInfo](https://msdn.microsoft.com/en-us/library/system.io.directoryinfo%28v=vs.110%29.aspx) class which contains methods for … |
The End.