229 Posted Topics

Member Avatar for PulsarScript
Re: File

Hi What type of data do you want to write to the file and read later on?

Member Avatar for yesi_1
0
135
Member Avatar for Nanyo

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.

Member Avatar for Nanyo
0
81
Member Avatar for Pemba

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 …

Member Avatar for djjeavons
0
109
Member Avatar for Techarena

What have you tried so far? No one is just going to give the code for a whole program?

Member Avatar for djjeavons
0
59
Member Avatar for moinbloch

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?

Member Avatar for djjeavons
0
71
Member Avatar for lokmani

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 …

Member Avatar for djjeavons
0
685
Member Avatar for humorousone

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 …

Member Avatar for djjeavons
0
202
Member Avatar for Magic8Computing

Hi Check out the StreamWriter class: https://msdn.microsoft.com/en-us/library/system.io.streamwriter%28v=vs.110%29.aspx HTH

Member Avatar for Mr.M
0
176
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
381
Member Avatar for Nandomo

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 …

Member Avatar for Reverend Jim
0
172
Member Avatar for OMER AHMED

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 …

Member Avatar for djjeavons
0
118
Member Avatar for DvinceCode

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.

Member Avatar for Mr.M
0
166
Member Avatar for RikTelner

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 …

Member Avatar for djjeavons
0
165
Member Avatar for Joemeister

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 …

Member Avatar for djjeavons
0
374
Member Avatar for jotungiya

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 …

Member Avatar for djjeavons
0
224
Member Avatar for Andrew_20

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. …

Member Avatar for djjeavons
0
121
Member Avatar for complete

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?

Member Avatar for djjeavons
0
98
Member Avatar for coder91

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 …

Member Avatar for djjeavons
0
182
Member Avatar for Joemeister

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 …

Member Avatar for djjeavons
0
5K
Member Avatar for LakiCG

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 …

Member Avatar for djjeavons
0
391
Member Avatar for SoftBa

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 …

Member Avatar for djjeavons
0
381
Member Avatar for archie.herbias

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?

Member Avatar for djjeavons
0
138
Member Avatar for OMER AHMED

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 …

Member Avatar for djjeavons
0
154
Member Avatar for murali2489

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 …

Member Avatar for djjeavons
0
176
Member Avatar for OMER AHMED

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) …

Member Avatar for djjeavons
0
142
Member Avatar for Mr.M

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 …

Member Avatar for djjeavons
0
3K
Member Avatar for coder91

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: …

Member Avatar for coder91
0
210
Member Avatar for ihthishaam

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 …

Member Avatar for djjeavons
0
725
Member Avatar for Smalls

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 …

Member Avatar for Smalls
0
385
Member Avatar for castajiz_2

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 …

Member Avatar for diafol
3
684
Member Avatar for Robert_19

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 …

Member Avatar for djjeavons
0
115
Member Avatar for coder91

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".

Member Avatar for coder91
0
154
Member Avatar for coder91

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 …

Member Avatar for coder91
0
842
Member Avatar for Kewne

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 …

Member Avatar for djjeavons
0
329
Member Avatar for markdean1989

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

Member Avatar for string101
0
99
Member Avatar for jez9

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 …

Member Avatar for Santanu.Das
0
462
Member Avatar for rony001

Hi What data are you trying to show in a DataGridView. Your code only shows how you are getting a Total from a table?

Member Avatar for rony001
0
889
Member Avatar for fragrancehello

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. …

Member Avatar for ddanbe
0
677
Member Avatar for balaprasath

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 …

Member Avatar for djjeavons
0
51
Member Avatar for mdev

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

Member Avatar for mdev
0
3K
Member Avatar for sriprasadk

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).

Member Avatar for djjeavons
0
130
Member Avatar for Hawk123

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 …

Member Avatar for Hawk123
1
222
Member Avatar for muhammad_74

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 …

Member Avatar for muhammad_74
0
355
Member Avatar for coder91

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 /> …

Member Avatar for djjeavons
0
90
Member Avatar for OMER AHMED

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 …

Member Avatar for OMER AHMED
0
185
Member Avatar for sumas

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) …

Member Avatar for djjeavons
0
2K
Member Avatar for PM312

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 …

Member Avatar for PM312
0
1K
Member Avatar for divinity02

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

Member Avatar for divinity02
0
125
Member Avatar for M.I.Sahil

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 …

Member Avatar for M.I.Sahil
0
376
Member Avatar for Mohammed_17

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 …

Member Avatar for Mr.M
0
100

The End.