<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
function clearFileInputField(divId) {
document.getElementById(divId).innerHTML = document.getElementById(tagId).innerHTML;
}
</script>
<asp:Label ID="Label1" runat="server"></asp:Label>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="divFileUp3">
<asp:FileUpload ID="fileUpload1" runat="server" />
</div><asp:Button runat="server" Text="Remove" OnClientClick="clearFileInputField(divFileUp3)"/>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
Wednesday, November 14, 2012
Clear FileUpload filename
We can do this using javascript. Please refer below code sample
Wednesday, November 7, 2012
Thursday, November 1, 2012
Saving Changes Is Not Permitted On SQL Server 2008 Management Studio
To allow you to save changes after you
alter table, do disable prevent changes:- Open Microsoft SQL Server Management Studio 2008
- Click Tools, then click Options
- Click Designers
- Uncheck prevent saving changes that require table re-creation
- Click OK
- Try to alter your
table
Thursday, October 4, 2012
RESTORE cannot process database 'db name' because it is in use by this session.
My issue was I was restoring a database that I also was using as my default database.
So, by changing my user default database to the master db, I was able to restore.
Wednesday, September 19, 2012
The selected stored procedure returns no columns
The reason was, selecting from a temp table and EF can’t figure out the shape of the results at design time.
The solution for this write this line "SET FMTONLY OFF" in begin part of your Stored Procedure but it will not work in selecting data from another database.
Example : Create procedure SPname
The solution for this write this line "SET FMTONLY OFF" in begin part of your Stored Procedure but it will not work in selecting data from another database.
Example : Create procedure SPname
as
SET FMTONLY OFF
Thursday, September 13, 2012
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I got this when i trying to read a CSV file and trying to get the data in a
Solution
DataSet using Microsoft Text Driver in your 64 bit machine.Solution
- Go to IIS and Application Pools in the left menu.
- Click the project name in the listing.
- Click the Set Application Pool Defaults.
- In General Tab, make the Enable 32 Bit Application entry to "
True"
Monday, September 3, 2012
CheckOut Authentication Failed Nopcommerce
This is due to configuration issues with your shipping method. Please provide valid configuration details.
Learn more Programing Tips and new Features
Subscribe to:
Posts (Atom)
I Built a New Kind of Number Puzzle Game (And You Can Play It Free)
For a long time, I wanted to play a mobile puzzle game that felt genuinely strategic—something that required real brainpower, skipped the a...
-
I have tried data-gramm="false" and hiding it through CSS, but neither of these solutions has worked. If anyone can resolve this i...
-
Microsoft Graph API provides powerful capabilities to interact with Microsoft 365 services. In this guide, we’ll explore how to create calen...
-
Microsoft Graph API is a powerful tool that allows developers to access a wide range of Microsoft 365 services, including Outlook and Calend...