16,013,642 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TheAbominable (Top 17 by date)
TheAbominable
23-Nov-16 12:17pm
View
Thank you for the explanation!
I will try both approaches and see which one works best. The approaches I will follow are:
1) Save the file on the server (I imagine there is a way to delete the file at the end of the code AFTER having it read)
2) Use a library which lets me read the file directly from the InputStream.
I will update you with my progress.
Thank you!
TheAbominable
23-Nov-16 11:22am
View
Thank you, Richard.
I added even more code. As previously mentioned, when uploading any file from the user interface to the server, my code is able to save the file on a Sharepoint 2010 Library ["ExcelLib"] and the file saves successfully. However, when reading the same file that has been uploaded (for the purpose of parsing it and storing its data on a Sharepoint List), the code fails. Does it fail because I have not saved the file within the windows server? Is there any way to read the file directly from where it has been saved, the Sharepoint Library, instead?
Thank you.
TheAbominable
22-Nov-16 17:33pm
View
Thank you, Richard. I have updated my question and you will notice that I included code related to the upload process. I have also tried (code not included on my question) uploading the file itself to the Sharepoint 2010 library and it works flawlessly, however, when it comes to running the section of the code that reads/parses the file, I do receive an error in the connection.open() line. So, the file uploaded to the Sharepiont library without issues, but when it comes to parsing it (in order to move its data to a Sharepoint List), it has issues.
Like I said, I have also made it simpler and saved the excel file locally on the server (the file is on myuser\Desktop), use exactly the same logic you see above, and the file is read thoroughly, parsed, and its data is moved to the Sharepiont 2010 List flawlessly. Any idea as to what may be the issue? I also tried uploading the file and use the SaveAs("C:\" + fileName), but this did not work.
TheAbominable
16-Nov-16 10:00am
View
Thank you. Yes, I've read/heard something along those lines. How would I go about rebinding the the datapickers in the printDiv method? I've updated my question and you'll see what I added inside the printDiv function, but still it does not work.
TheAbominable
15-Nov-16 12:50pm
View
I do not want to recover a state. What I would like is for the datepicker to continue working. We click on the textbox and the calendar pops up and you choose a date. You print whatever comes out after clicking the submit button and the page remains as it was, however, you click back on the textbox and the calendar does not pop up... no state is being saved.
TheAbominable
27-May-16 6:08am
View
I think I figured it out. I am creating tables by using
Table table = new Table();
table.ID = "table" + currentTableNumber.ToString();
table.Style.Add("width", "800px");
etc.
So, my ordeal is, if I create two tables, HOW do I create space between the two tables? I tried creating a LABEL in the markup HTML and then assigning <br /><br /> to it, but that did not work. How do I go about doing this?
TheAbominable
18-Aug-14 10:40am
View
Sergey,
THank you so much for the information and insight you've provided! I really appreciate it. At this time, I'm doing quite a few things at once, but the TFS deployment will take place within the next few months. I will be referencing your comments.
TheAbominable
14-Aug-14 13:01pm
View
SA, I have not looked at your past answers, but I 100% agree with you, every company/development group/team must have a Revision Control System! Where I recently started working, there is NONE! I still do not quite understand how everything works here... one of the dev people (who I question his skills) just mentioned to me that he simply starts developing on his computer, but is referencing a location on the server. Nothing is 'built' here! NOthing to check out! Nothing to check in! LOL Go figure! It is actually my job to implement TFS, but will read and do some testing with it down the road. For now, as stated, I created a 3-page site and it needs to be viewed/published/deployed to a Server 2003 site so that it can be seen and executed from the network, meaning someone can go to a URL and start making use of the form. At this time, the project is in my local computer and I do not know how to go about moving/deploying it to the server (remember, no revision control system)... I see a public folder in the server and a folder for each pertaining form (some are in classic ASP)... how do I move/deploy my files there so that they can also be used when someone types their respective URLs (actually, it is Sharepoint that references their location! THe form/3-page web app I created will be used on Sharepoint)
THank you and please let me know. Like I said, I have a Web.config file with it and I added the AjaxToolkit to the project... something tells me I must, somehow, compress the entire project and perhaps put it on a bin... not sure. HELP!
TheAbominable
13-Aug-14 16:01pm
View
WHY??? LOL That is the original question! What is the advantage and/or disadvantage or using multiple forms in one page as opposed to different pages?
TheAbominable
13-Aug-14 15:35pm
View
Yes, but I'm strictly sticking to ASP.NET
Thank you.
I forgot to add/mention that we MUST stick to .NET at my job, so we cannot use another platform/language.
TheAbominable
31-Mar-14 3:23am
View
So, I also have tried a response.redirect(same page) at the end of the updateScore(param 1, param2, ..., param 4) method, but I receive an error when the code gets to this line. I just do not how to update the gridview related to the league standings when the gridview on the scores is modified... as soon as the updatescore method ends, the scores update, but not the standings. What can I do??
TheAbominable
31-Mar-14 2:23am
View
Sorry, but this did not solve my problem. I cannot find a way of applying 'bind()' and 'league' together. However, I can say GridviewY.DataBind(), but I receive an error ('instance not referenced to an object'... or something like that)
Any other ideas, please?
Thanks!
TheAbominable
2-Nov-13 3:42am
View
Yes, thank you! Yes, I did re-publish, rebuilt, cleaned, etc. to no avail. However, I did notice that the hosting site has some IIS settings that I could tweak, I tweaked them and still problem not solved. It turns out that I was publishing to a particular folder within the root directory (purposely... to keep my apps in order) and once I published to the root directory, everything worked. However, I imagine the Web.config file, which is also in the root directory, must be the same for all apps, bummer.
TheAbominable
31-Oct-13 3:25am
View
OriginalGriff, thanks for the information on publishing directly from VS2012. I right-clicked on the web project and clicked on "Publish" and filled up all the ftp settins for my hosting site. The files were moved (bin folder, app_code folder, main pages and a couple of other files), but when I go to the website, I receive the following error:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 9: <system.web>
Line 10: <sessionstate cookieless="true" timeout="5"> /compilation>timeout="5"></sessionState>
Line 11: <compilation strict="false" explicit="true" targetFramework="4.5" />
Line 12: <httpRuntime targetFramework="4.5" />
Line 13: </system.web>
I go my the web.config file and I do not find this targetFramework line! Where can I find it. I communicated with my hosting company and I was informed they support up to asp.net 4.0 (though I noticed they advertise up to asp.net 2.0) So, I went back to my web project, right-clicked on it, went to 'properties', and under the 'target framework' drop-down menu (below the 'assembly name' textbox), I changed that to .NET framework 2.0 (2.0, just to be safer... and I also created another folder on my hosting, where I uploaded the same project where I set the target framework to be 4.0) and moved all the files... still, the same error and the targetFramework="4.5" still appears. How do I go about fixing this issue? any ideas?
Thanks</pre>
TheAbominable
30-Oct-13 5:47am
View
Ok, so all I want is for the user to go to www.blahblahbla.com (I already have a domain and hosting service that supports .net) and the web program/website (pages) I created, along with its functionality (which does not depend on a database) start running on the web and my friend can use the website (which IN MY COMPUTER is a solution composed of 2 projects), along with its functionality. I remember creating a project/website that had a calculator (years ago) and I simply extracted the dll or something like that and moved that file to my hosting. Please advise. THANKS!
TheAbominable
29-Oct-13 21:59pm
View
OriginalGriff, but where are these DLL files? As I mentioned, I just want to move whichever DLL or executable file I need to a hosting site where the user can simply go to a particular URL and the file will be executed and it'll be run.
Thanks
TheAbominable
16-Oct-13 21:58pm
View
Sergey, thank you for the response, but I DO NOT have a database. Basically, I'm displaying values of a class on a website (which is why I have a 'global variable' in the default.aspx.vb / codebehind) which are stored in a variable used by all the functions in the codebehind. Given that you've mentioned that using a global variable is not a good practice, I'll look at the links you've posted, however, and I repeat, I'm NOT USING a database. Thank you and any further help will be highly appreciated.
Show More