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
~20.2K People Reached
Favorite Tags

83 Posted Topics

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
232
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
330
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
134
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
324
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
222
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
218
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
329
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
156
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
214
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
89
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
129
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
126
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
637
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
125
Member Avatar for coder91
Member Avatar for coder91
0
99
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
126
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
97
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
112
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
642
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
200
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
647
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
128
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
182
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
210
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
153
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
842
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
89
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
164
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
164
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
Member Avatar for coder91

Hi, I have a stored procedure that I have to send one parameter to. I then have to use the same stored procedure to display results, I'm not sure how to do this. Basically the system should allow the user to select an item, push a button (which is when …

Member Avatar for coder91
0
100
Member Avatar for coder91

Hi, trying to get the username of the user logged into a computer but it doesn't appear to be working. I was using `Label1.Text = User.Identity.Name;` to check if it did work but it wasn't displaying anything. The only reason I need the username is to send it through to …

Member Avatar for JorgeM
0
165
Member Avatar for coder91

Hi, so for my .net project I've to use HTML/CSS provided by another colleague. Ive copied this into the site master page in .net but it doesn't appear in the child pages, anyone have any ideas how I can fix this. The code is: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" …

Member Avatar for coder91
0
318
Member Avatar for coder91

The project i am currently working on has an HTML/CSS layout which consists of 3 columns, the first contains a menu to access the various pages. When one of these options is selected the page appears in the second column and the same for selecting anything from the second column …

Member Avatar for JorgeM
0
152
Member Avatar for coder91

Hi, recently started a new job where I will creating .net applications, however there is one person who designs the html and css in notepad++ and then puts it onto the local server which I can then pull down onto my own machine. I was just wondering how I link …

Member Avatar for coder91
0
183
Member Avatar for coder91

Hi, I have an SQL database with data stored in it but I'd like to create reports that will allow the user to enter two dates and return the data in an excel spreadsheet. Not sure how to accomplish this in .net with C#. I've created PDF reports using ITextSharp …

Member Avatar for coder91
0
112
Member Avatar for coder91

I am creating PDF's using ITextSharp and Stored procs. I have a stored proc in place that calulates the totals of two columns SELECT SUM (Time) AS TotalTime, SUM (Cost) AS TotalCost From dbo.Records WHERE CustNum = @p_CustNum When i run the stored proc it returns the two answers. However …

Member Avatar for BMXDad
0
93
Member Avatar for coder91

I was wanting to develop some PHP websites on my own laptop to build up knowledge of PHP and was wondering what I needed on my laptop for PHP. At university we use filezilla to upload our files to the uni's server but I haven't got that facility at home. …

Member Avatar for diafol
0
208
Member Avatar for coder91

I have a page that allows you to insert a new item or update an existing item. I am using a formview for it, I have custom validation in place for the insert to check that the item number isn't already stored in the database, if it is a panel …

Member Avatar for annaharris
0
244
Member Avatar for coder91

I have a gridview that stores information about items - a number and a name, I have a custom validator set agains t to check the number doesn't already exist in the database to prevent duplication. protected void CustomValTBCodeServerValidate(object source, ServerValidateEventArgs args) { TextBox newCode = (TextBox)fvCode.FindControl("TbCode"); String XCode = …

Member Avatar for annaharris
0
139
Member Avatar for coder91

I have various admin pages on my system that allow user to insert a new item or update one. The code I am using to check if the description entered is already in the drop down list is //loop through each item in ddlX and compare with description entered by …

Member Avatar for |-|x
0
582
Member Avatar for coder91

Have a database table with various tasks and each has a time against it that it should take, some tasks have the same time. I now need to display these times in a drop down list but only want to display each time once, how can I do this?

Member Avatar for rch1231
0
271
Member Avatar for coder91

I have an idea for my final year project that will include a back end database to store all the data and an interactive map that will show users attractions in the area. I would want them to be able to click the pins that will be used to show …

Member Avatar for <M/>
0
222
Member Avatar for coder91

We use object data sources to access our database and having a problem at the minute, the user enters text and clicks search and the stored proc is pulling so much data back from the database that its taking over a minute in SQL, in Visual Studio the timeout is …

Member Avatar for coder91
0
110
Member Avatar for coder91

Wasn't sure what thread to post this in but at university we use filezilla to upload our files to the server so we can use php code etc. However when I try to use it at home using the host name, username and password I do at uni it's not …

Member Avatar for coder91
0
120
Member Avatar for coder91

I have a formview which holds a form with an edit and insert modes. On the insert I would like a custom validator set against the userid text box that on the insert will check the database and see if it already exists, if it does it won't insert if …

Member Avatar for LastMitch
0
231
Member Avatar for coder91

I've a page that displays various drop down menus, one is process and this controls what is displayed in the second - Activities. There is also a time drop down menu. I now have to have a minimum and maximum time for the activities (maximum and minimum is different for …

Member Avatar for JorgeM
0
232
Member Avatar for coder91

So having an error when I select my button in the gridview. Was told to use the gridview row command which I have, keep getting an error about the App_Data subdirectory. protected void gvUnlock_RowCommand(object sender, GridViewCommandEventArgs e) { String userName = e.CommandArgument.ToString(); MembershipUser usr = Membership.GetUser("userName"); if ((usr != null) …

Member Avatar for coder91
0
307
Member Avatar for coder91

So on the page I have there is already an increment method in place to add to the count, but I need the option for the user to remove a count. A stored procedure is in place for the increment and Im assuming I can use another for the decrement …

Member Avatar for LastMitch
0
107
Member Avatar for coder91

Having this error appear when I hit a button in a gridview to unlock a user. The description with the error is Description: For security reasons, the identity 'IIS APPPOOL\ASP.NET v4.0' (under which this web application is running), does not have permissions to create the App_Data subdirectory within the application …

Member Avatar for LastMitch
0
494

The End.