Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

harish mehra

@harish mehra
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • stop data saved twice when page is refreshed
    H harish mehra

    you just paste it below your class declaration private bool _refreshState; private bool _isRefresh; public bool IsRefresh { get { return _isRefresh; } } protected override void LoadViewState(object savedState) { object[] allStates = (object[])savedState; base.LoadViewState(allStates[0]); _refreshState = (bool)allStates[1]; _isRefresh = _refreshState == (bool)Session["__ISREFRESH"]; } protected override object SaveViewState() { Session["__ISREFRESH"] = _refreshState; object[] allStates = new object[2]; allStates[0] = base.SaveViewState(); allStates[1] = !_refreshState; return allStates; } and in button click if (!IsRefresh) { //write your code here.. }

    ASP.NET question

  • Regrading Excel Generation.
    H harish mehra

    It is useful for generating excel but u can see when we open that excel and than save this excel it displayed save as type web page. can it display default save type as microsoft Excel?

    ASP.NET csharp asp-net

  • Regrading Excel Generation.
    H harish mehra

    When i generate excel in asp.net it will generate but when i open & then saved this excel it showed "save as type" "web page".

    ASP.NET csharp asp-net

  • validate Dropdownlist inside gridview using javascript
    H harish mehra

    Please check yhe beolw script code function check(id) { var n=document.getElementById("grd"); var namecontrol=id.name; var myval=new Array(); var Arr=new Array(); myval=namecontrol.split("$") var rowindex=myval[1]; var j=rowindex if (document.getElementById("grd_"+j+"_ddl").value == '-- SELECT --') { alert("Please Select Sb Code.."); document.getElementById("grd_"+j+"_ddl").focus(); return false; } }

    ASP.NET csharp javascript asp-net question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups