Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~19.0K People Reached
Favorite Tags
Member Avatar for coder91

Hi, Was wondering if anyone had any information on how to create a word document on the client side in Angular? I was using jspdf to create PDF's which was really good but the documents need to be editable so having to look at how to create word documents. I …

0
229
Member Avatar for coder91

Hi I have a method that accepts a List<String> param as a parameter. I'm writing a JUnit test which needs to be able to accept the parameters as a String and then it needs converted to a List<String> The JUnit code is: public void testMethodName(String params, String expectedResult){ final String …

Member Avatar for coder91
0
316
Member Avatar for coder91

Hi just wanting to see how you can iterate over a hashmaps entry set checking both the key and values, if either matches the string passed it will return the other (if it matches the key it will return the value, if it matches the value it will return the …

Member Avatar for JamesCherrill
0
129
Member Avatar for coder91

Hi, I wrote a method that accepted a parameter and used a hashmap to return the value for that key. However I have been asked to change the way it is written so that code isn't duplicated. The hashmap used has key value pairs such as 'X', 'Y' in one …

Member Avatar for JamesCherrill
0
309
Member Avatar for coder91

Hi I recently started a new job and i've just been giving my first proper coding task. It is to write a method that will take a value and convert it to something else. eg. If the method receives Payment it will return 'P'. I'm just looking for the best …

Member Avatar for JamesCherrill
0
203
Member Avatar for coder91

Hi, I've recently been assigned a task in a new job where I have to compare XML paths against Acord XML paths to find out what the ancestor path is. I've never done anything like this before and just want to check that I am doing it correctly because i've …

Member Avatar for dtpp
0
215
Member Avatar for coder91

Hi, I am wanting to create a website where I can upload daily posts etc. Not sure how I go about doing this, when I google creating a blog it only gives tutorials for the feedback/comment sections on a site, which isn't what I am looking for. I'm assuming i'll …

Member Avatar for BTLSP
0
323
Member Avatar for coder91

Hi I have a timer so that when it goes off it will access the database however it doesn't appear to be working. I've never used timers before so not sure if I've written it correctly. The code for the timer is: public void timer_method() { int heartbeat = Convert.ToInt32(textBox1.Text); …

Member Avatar for coder91
0
153
Member Avatar for coder91

Hi I have the following code to insert data into a db int svcTypeID = Convert.ToInt32(comboBox1.SelectedValue); String svcGuid = label2.Text; int heartbeat = Convert.ToInt32(textBox1.Text); String hostname = System.Net.Dns.GetHostName(); Guid gu = new Guid(svcGuid); SqlConnection conn = new SqlConnection(@"Data Source=x\x;Initial Catalog=task_system;Integrated Security=True"); SqlCommand cmd = new SqlCommand("storedProc"); cmd.Connection = conn; cmd.Parameters.AddWithValue("@guid", …

Member Avatar for coder91
0
211
Member Avatar for coder91

Hi im trying to assign a guid in my windows application and have the following code: Guid g = Guid.NewGuid(); label2.Text = Convert.ToString(g); however this generates a different guid everytime the program is ran, just wondering if theres any way of assigning a GUID that doesn't change?

Member Avatar for djjeavons
0
86
Member Avatar for coder91

I need a timer of some sort so that my program will send a batch of files every 10 seconds. Not sure if I can do this using threading? or maybe theres some other method. Just looking some advice as to what would be the best option. At the minute …

Member Avatar for pritaeas
0
116
Member Avatar for coder91

I have a folder that contains x amount of files with different extensions, I need a way to retrieve all the files with the name 0000001 regardless of their extension, i then have to work with these and then retrieve all files with the name 0000002. I know I can …

Member Avatar for gusano79
0
122
Member Avatar for coder91

I have an integer that must remain 8 digits 00000001, it must remain 8 digits after incrementing it. I had it declared as an integer but it wasnt recognising the leading zeros so I have changed it to a string however I need to increment the digit which i cant …

Member Avatar for coder91
0
604
Member Avatar for coder91

Hi, I have a project where I have to retrieve a list of files and send each file to the database every 10 seconds. Want I was wanting to know is how I can access the files to be able to send them to the database. Can I store them …

Member Avatar for AleMonteiro
0
124
Member Avatar for coder91
Member Avatar for coder91
0
97
Member Avatar for coder91

Hi, for the project I am working on I have four folders all which have 650 xml files in them, I need to write a program that will take the first file from each of the folders and send them to a database where the results from the xml will …

Member Avatar for pritaeas
0
122
Member Avatar for coder91

Hi, so I have a dataset which I am using to create a CSV. When I run the code in debug mode and use the datatable visualiser all the data is shown, however when it opens in excel the last two cells of the last row are missing. I can't …

0
95
Member Avatar for coder91

I have a datatable called datasource that I use to populate a gridview and to use to export the data to a csv file, however for some reason it is leaving the last cell of the last record in the csv blank. Just wondering if anyone has came across this …

Member Avatar for coder91
0
108
Member Avatar for coder91

I'm creating a menu based on the user using the following code System.Text.StringBuilder sb = new StringBuilder(); sb.AppendLine("<ul>"); if (!Page.IsPostBack) { foreach (DataRow row in datatable.Rows) { sb.AppendLine(String.Format("<li><a href= x.aspx?Name={0}&Short={1}&Long={2}></a></li>", HttpUtility.UrlEncode(row["x_name"].ToString()), HttpUtility.UrlEncode(row["x_short_name"].ToString()), HttpUtility.UrlEncode(row["x_long_name"].ToString()), row["x_short_name"].ToString())); When the user selects an item from the menu the page is loaded using a querystring. …

Member Avatar for BMXDad
0
641
Member Avatar for coder91

Hi I have a gridview which is bound to a datatable called datasource. The datatable is populated with data from the database which is then displayed in gridview. However I would like to add a title to the gridview, I tried this with gridiview.caption and it works fine. However users …

Member Avatar for djjeavons
0
193
Member Avatar for coder91

I have a gridview that is created dynamically in the back end of the code. The gridview is populated depending on the data entered into the form. When the submit button is selected the gridview is populated with the results, however when the user fills the form in the second …

Member Avatar for coder91
0
554
Member Avatar for coder91

Hi i have a gridview that is created dynamically and then added to placeholder. The systems layout is 3 columns, the menu in the first, a form in the second and the gridview in the third. The user has the option to make the third panel expand so that the …

Member Avatar for tdrosiadis
0
126
Member Avatar for coder91

For the system I am creating which is a report generator, there is a form which is created based on the parameters required for a stored procedure, the code for this is: for (int i = 0; i < datatable.Rows.Count; i++) { string label = datatable.Rows[i]["label"].ToString(); Label mylabel = new …

Member Avatar for djjeavons
0
176
Member Avatar for coder91

For the system I am creating there are various reports, some of which require input parameters from the user. I have my system working for reports thay require no parameters but can't seem to figure this out. One member of the team has written stored procedures, one being report lookup …

Member Avatar for coder91
0
202
Member Avatar for coder91

Hi I have a datatable that returns 3 columns, what I am trying to do is to return the second column of a row when a variable matches the first. It's probably really simple but I can't get it to work. Thanks in advance.

Member Avatar for coder91
0
152
Member Avatar for coder91

Hi, so I have to create a dynamic menu which is created using <ul><li><a href /></li></ul> etc. The menu has to be dynamic based on the user who is viewing the page. So far when the page loads I send the name of the user logged in, to a stored …

Member Avatar for coder91
0
811
Member Avatar for coder91

Hi, I have a project I am currently working on that generates reports for users. At the minute the reports appear in a menu and when selected it directs the user to a page for that report. However I have been asked to change it to allow flexibility. So now …

Member Avatar for djjeavons
0
87
Member Avatar for coder91

I have a gridview that is being populated from a dataset which is a table returned from a stored procedure. However now the stored procedure has changed and it returns 2 tables, the first returns the column headers as well as labels and other info, the second is the table …

Member Avatar for tinstaafl
0
158
Member Avatar for coder91

Hi I am trying to export a gridview to CSV except i am getting an error due to some of the columns in the gridview not being visible. Was wondering if anyone knows how to fix this or a different way to export to csv. protected void gv_RowCreated(object sender, GridViewRowEventArgs …

Member Avatar for faheemsial
0
158
Member Avatar for coder91

Hi I have code that generates an excel report from data in a gridview however when the gridview is empty and you download the report it opens in excel with a <div> tag. Any ideas how I can get the html tags to disappear and possibly just display the column …

0
101