Tuesday 28 October 2014
Monday 27 October 2014
Error Microsoft JScript runtime error: Object expected
Watch on YouTube:
Error Microsoft JScript runtime error Object expected
Replace
<script src="<%# ResolveUrl("Scripts/jquery-1.11.0.js") %>" type="text/javascript"></script>
With
<script src="Scripts/jquery-1.11.0.js" type="text/javascript"></script>
Monday 20 October 2014
How to fix error - Cannot convert type int to DocumentFormat.OpenXML.UInt32Value
Cannot convert type int to DocumentFormat.OpenXML.UInt32Value
Watch this example on YouTube
Replace
RowIndex = (UInt32Value)i,
with
RowIndex = (UInt32)i,
Watch this example on YouTube
Replace
RowIndex = (UInt32Value)i,
with
RowIndex = (UInt32)i,
How to fix error - Cannot convert type 'DocumentFormat.OpenXml.UInt32Value' to 'int
Error
Cannot convert type 'DocumentFormat.OpenXml.UInt32Value' to 'int
Replace
int stIndex = (int)(cellWidth.StyleIndex);
With
UInt32 stIndex = (UInt32)(cellWidth.StyleIndex);
int sIndex = (int)stIndex;
Cannot convert type 'DocumentFormat.OpenXml.UInt32Value' to 'int
Replace
int stIndex = (int)(cellWidth.StyleIndex);
With
UInt32 stIndex = (UInt32)(cellWidth.StyleIndex);
int sIndex = (int)stIndex;
Thursday 16 October 2014
MS SQL - Command to show code of stored procedure
Watch this example on YouTube
Execute the following
SELECT OBJECT_DEFINITION (OBJECT_ID(N'dbo.NameOfTheStoredProcedure'));
Execute the following
SELECT OBJECT_DEFINITION (OBJECT_ID(N'dbo.NameOfTheStoredProcedure'));
Tuesday 14 October 2014
How to fix error Operation is not valid due to the current state of the object.
Watch solution on YouTube
or add the following code to web.config:
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="10000"/>
</appSettings>
default value is 1000.
Monday 13 October 2014
ASP.Net - GridView paging and sorting validation issues
In case you are receiving the following error while paging or sorting gridview
A potentially dangerous Request.Form value was detected from the client
in event viewer
Event code: 3003
Event message: A validation error has occurred.
Watch this on YouTube:
add the following javascript function
<script type="text/javascript">
function validate(){
var result = Page_ClientValidate();
return result;
}
</script>
and modify form tag, from
<form id="form1" runat="server">
to
<form id="form1" runat="server" onsubmit="return validate();">
Subscribe to:
Posts (Atom)