This article will help you to open an MS-Word Document (Document or Document template) or MS-Excel sheet from server side code (ASP.NET) with minimum configuration efforts.
This article will help you to open an MS-Word Document (Document or Document template) or MS-Excel sheet from server side code (ASP.NET) with minimum configuration efforts.
This tip demonstrates how to upload an image to a specified folder within the root of the web application and display the image right away in the Image control after uploading.
I recently posted an article on how to place the data in an XML into an SQL table with a bulk Insert; this is an alternative way to do it by breaking up the XML before placing it into the Table.
This tip describes how to call a webservice using JavaScript and also calling that webservice in a regular interval of time without doing a postback in the page.
Upload PDF, save file name to database, save pdf to a folder, create a thumbnail image of pdf and save it to a folder, and also save the image to database
Hello my friends.Microsoft is providing a test in prometric of NET 4.0, free.It is free!!!!Schedule your exam in prometric.In the link below, you find the code of...
Pjax ASP.NET webform is simple code that uses Ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button.
Using MasterPage.master for ASPX pages, in Visual Studio 2008 and 2010, an ASP content area is automatically created for use within the head section of the HTML code when you create a new page using a master page.If you aren't using Visual Studio, you can create a content area for the head...
There are occasions where we have lots of input fields on our webpage. And after submitting the form we are required to reset the form (clear all the fields). As i have already used gridview and i got all the controls from every gridview row using foreach loop by using grvrow.findcontrols(),...
This outlines a method for being able to submit HMTL tags from a particular ASP.NET text box while still using the page validation for the rest of the page.
You could do the same thing with a regular expression:if (Regex.Replace(textBox1.Text, @"\D", "") == textBox1.Text){textBox2.Text = ("tryparse method succeed");} else { textBox2.Text=("value entered is not numeric"); }
The alternative posted by Daaron does not work for several cases. E.g. Sign is included (+ or -), text contains whitespace prefix or suffix, etc. You could fix the first two limitations with a more detailed regex like "(^\s*(-|\+)?\d+\s*$)" but you could still end up with a value that won't fit...
You could always run the TryParse on the keyDown event so as to validate as the data gets entered. It saves the user an additional UI interaction. private void textBox1_KeyDown(object sender, KeyEventArgs e) { int i; string s = string.Empty; ...
Here is some old Delphi code that you could use to get more out of floating points strings before using TryParse().It will sanitize numbers like .25E4 or 10.E2 or -.24, all illegal in Double.TryParse.The code will also replace all non-floating point characters by a decimal separator (the...
Not much on this one that was helpful so I thought I'd put what worked for me.Cntrl + Alt + Del > Processes > end all iexplore.exe and WebDev.WebServer.exe processes.Since devs generally debug with the dev webserver end those processes first and retest. Although iexplore handles stay...