View Complete Post
I have a 3 field table in sql server express and one of the columns is a date.
I'm trying to pull that in and publish to a gridview, but when I do it comes in with the date and minutes and seconds, etc.
How can I format that so that I only publish MM/DD/YYYY?
thanks in advance
I have a webpage that is created in Visual Studio 2008 and programmed in C#.
I have a web form that prompts the user to enter a value into a text box. For now, I do not have any validation on that field (I will be adding that later).
I need to pass the value that the user has entered to cell C1 of the excel spreadsheet (user_info.xls).
I understand that using excel is not ideal, but unforutnately need to try to make this work with the excel spreadsheet.
I do not have any code for this yet, because I honestly do not know how to begin.
The action of poulating the excel spreadsheet will be intialized from the On Click event of a Submit button.
Any suggestions would be much appreciated.
Thank you in advance for your assistance,
My problem is whenever i execute my app the first page that loads is the login page pointed to by my web.config file forms authentication, this page is meant to show CSS formatting for the info i am displaying but it is not. Any help with this problem would be great. A cut and paste of my problem is shown below as you can see there is no CSS.
jsfdnjldfngjfg here it is
I have inserted all the link as in:
< CLR Inside Out: Formatting and Parsing Time Intervals in the .NET Framework 4 Learn about enhanced TimeSpan formatting and parsing features coming in the .NET Framework 4, and some helpful tips for working with TimeSpan values.Ron PetrushaMSDN Magazine February 2010
Learn about enhanced TimeSpan formatting and parsing features coming in the .NET Framework 4, and some helpful tips for working with TimeSpan values.
MSDN Magazine February 2010
Anyone know how to remove html-formatted-string to plain text programatically?
I want to get the same result as if i ctrl+a in a browser's page and then ctrl+v in a notepad.
I was googled how to strip html string, but didn't find the good result.
Removing tag using regex: "<(.|\n)*?>" causes some problems:
* The html-table is not nicely converted to tabbed plain text. It produces *crazy* table in plain text.
* the html-alternate-image lost
* the list ( <ul> & <ol> ) is not conveted well. No numbering or bullets in plain text
I've done some reading about reading from and writing to a Word doc. The reading from worked without issue:
string strPath = "Test.doc";
FileStream fStream = new FileStream
(strPath, FileMode.Open, FileAccess.Read);
StreamReader sReader = new StreamReader(fStream);
string text = sReader.ReadToEnd();
But of course this is just a string, without any formatting information included. Writing to the document using a StreamWriter worked, but I received errors when opening the document.
I've also read that trying to perform actions on an Office document on a server without the Office products installed on it can result in mayhem. I'm working on a MVC application that will allow users to upload documents to the server, work on them, save their work and email it around. That doesn't specifically require the need to read/write programmatically, but for certain application functions I do need this. Any helpful suggestions are appreciated.