<style type="text/css">
.hidden
{
display:none;
}
</style>
<asp:BoundField DataField="ReportId" HeaderText="RId" >
<ItemStyle CssClass="hidden"/>
</asp:BoundField>
Friday, 5 July 2013
Retrieve data from visible false BoundField of Gridview
get value of visible false boundfield in gridview Asp.net
Gridview row hover alert rowindex
on hover Gridview row, show row index as alert message
write onmouseover on rowdatabound
write onmouseover on rowdatabound
protected void mygridview_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex != -1)
{
e.Row.Attributes["onmouseover"] = "showContents('" + (e.Row.RowIndex + 1) + "')";
}
}
{
if (e.Row.RowIndex != -1)
{
e.Row.Attributes["onmouseover"] = "showContents('" + (e.Row.RowIndex + 1) + "')";
}
}
<script type="text/javascript">
function showContents(rowIndex) {
var gv = <%= mygridview.ClientID %>;
var rowElement = gv.rows[rowIndex];
var title = rowElement.cells[0].innerHTML;
alert(rowIndex + ',' + title);
}
function showContents(rowIndex) {
var gv = <%= mygridview.ClientID %>;
var rowElement = gv.rows[rowIndex];
var title = rowElement.cells[0].innerHTML;
alert(rowIndex + ',' + title);
}
Wednesday, 26 June 2013
select from table distinct column
SELECT * FROM TABLE WITH DISTINCT COLUMN
---------------------------------------------------------------
SELECT * FROM [TABLE NAME]
WHERE [ID] IN (
SELECT MIN([ID]) FROM [TABLE NAME] GROUP BY [DISTINCT COLUMN NAME])
Example:
SELECT * FROM [SKILLS] WHERE [ID] IN
(
SELECT MIN([ID]) FROM [SKILLS] GROUP BY [SKILL NAME]
)
---------------------------------------------------------------
SELECT * FROM [TABLE NAME]
WHERE [ID] IN (
SELECT MIN([ID]) FROM [TABLE NAME] GROUP BY [DISTINCT COLUMN NAME])
Example:
SELECT * FROM [SKILLS] WHERE [ID] IN
(
SELECT MIN([ID]) FROM [SKILLS] GROUP BY [SKILL NAME]
)
Friday, 21 June 2013
string split using jquery / java script
var a = "one,two,three".split(",") // Delimiter is a string
for (var i = 0; i < a.length; i++)
{
alert(a[i])
}
var b = "1+2=3".split(/[+=]/) // Delimiter is a regular expression
for (var i = 0; i < b.length; i++)
{
alert(b[i])
}
for (var i = 0; i < a.length; i++)
{
alert(a[i])
}
var b = "1+2=3".split(/[+=]/) // Delimiter is a regular expression
for (var i = 0; i < b.length; i++)
{
alert(b[i])
}
Friday, 14 June 2013
500 Internal Server Error” when adding HttpModule in my Web.config
use the following new module syntax made for IIS7 (godaddy is using IIS7 for windows hosting)
<configuration>
<system.webServer>
<modules>
<add name="Header" type="Contoso.ShoppingCart.Header"/>
</modules>
</system.webServer>
</configuration>
here details about module tag
Wednesday, 13 March 2013
Tuesday, 12 March 2013
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'
Set Identity : LocalSystem
You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings.
You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings.
Convert SVG to PNG using svg.dll
<div id="divsvg"> <svg width="350" height="300"><defs></defs> ............
-
< html xmlns ="http://www.w3.org/1999/xhtml"> < head > < title > Add blinking effect to text in jQuery ...
-
string contents = File.ReadAllText(HttpContext.Current.Server.MapPath("user.htm")); string receiptString = this.GetReceiptString...
-
I have solved my problem deleting my temporary files in both .net frameworks folders C :\ Windows \ Microsoft . NET \ Framework \...