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
K

kapil bhatnagar

@kapil bhatnagar
About
Posts
15
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Javascript confirmation in asp.net
    K kapil bhatnagar

    check dis condition in the javascript function and accordingly display the confirmation box else return back eg.button1.Attributes.Add("onclick","javascript:return test(cutomerId);") function test(val) { if(val ==0) { //call confirm() } } modify the code accordingly ..

    ASP.NET csharp javascript asp-net

  • imp
    K kapil bhatnagar

    First if condition getting executed implies the value of flag = 0 hence third if condition would be false and hence the inside code will not be executed. ;)

    ASP.NET

  • dir tag in form tag
    K kapil bhatnagar

    It is used to set the text direction on the form value :ltr or rtl :)

    ASP.NET question

  • Membership. Login is not case sensitive
    K kapil bhatnagar

    wat database is being used?

    ASP.NET security question code-review

  • declaring object array
    K kapil bhatnagar

    use this logic: ClassName[] obj = null; obj = new ClassName[size]; :)

    C# data-structures help question

  • Focus a textbox inside a DataGrid
    K kapil bhatnagar

    Pass the Client Id from the codebehind to javascript function.Create an element using that client Id. and then do document.getElementById('elementid').focus();

    ASP.NET help question

  • Decimal(18,2) Regular Expression
    K kapil bhatnagar

    the previous one will not... try this one : ^[-]?([1-9]{1,18}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|\.[0-9]{1,2})$

    ASP.NET regex

  • Dynamic Loading for Infragistics TreeView
    K kapil bhatnagar

    Can anyone tell me if the TreeView control in Infragistics allows dynamic loading to be done by populating a node from a text file rather than using a Dataset for the same ??

    ASP.NET question

  • Decimal(18,2) Regular Expression
    K kapil bhatnagar

    ^[-]?([1-9]{1}[0-9]{0,}(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|\.[0-9]{1,2})$ This regular expression will match on a real / decimal / floating point / numeric string with no more than 2 digits past the decimal. The negative sign (-) is allowed. No leading zeroes or commas or use the following link: http://regexlib.com for further search

    ASP.NET regex

  • Open File Dialog without html file field
    K kapil bhatnagar

    try using the following code: if (file.Exists) { Response.Clear(); Response.AddHeader("Content-Disposition", "filename=" + file.Name); Response.AddHeader("Content-Length", file.Length.ToString()); Response.ContentType = "application/pdf"; Response.WriteFile(file.FullName); Response.Flush(); Response.End(); Response.Close(); } Incase the content type has been defined for word doc or xls file, the file dialog box will open itself. Hope this is of some help !

    ASP.NET html sysadmin question

  • TreeView Problem in Mozilla !!!
    K kapil bhatnagar

    Hi I am using a Microsoft Treeview control in my application. It works fine with IE. The problem is that it is not working for Mozilla/Firefox browser. The problem I found was that on javascript events like onexpand and oncollapse,it does a postback.It is not able to attach javascript event handlers to these events. Neither can it attach events in TreeView.htc file.I made the changes in treeview.htc file for preventing the postback.But was of no help. Cn somebody plz give a possible fix for this ... .. . ??? :omg: Thnx in advance

    ASP.NET help javascript question

  • JavaScript with DropDownList
    K kapil bhatnagar

    try this: if (parseInt(dt) != 0) { Form1.submit(); }

    ASP.NET javascript question

  • DataGrid 's Checkbox checked on Button click
    K kapil bhatnagar

    pass the datagrid name via the codebehind: btnCheckAll.Attributes.Add("OnClick","javascript:return CheckAll("dgdGrid");"); function CheckAll(dataGridName) { var ChkState = true; //count the no. of rows in the DataGrid List var count = document.getElementById(dataGridName).rows.length; for(i = 2;i<=count+1; i++) { var id = dataGridName+"__ctl" + i + "_chkSelect"; var elem = document.getElementById(id); elem.checked = ChkState ; } } where "chkSelect" will be the name of the checkbox as mentioned in the item tempelate column in the html code for the datagrid. Hope this helps !!

    ASP.NET csharp javascript help question

  • TreeView single select
    K kapil bhatnagar

    How are you capturing the "selectedindexchanged" event for the treeview ? in the codebehind file ??

    ASP.NET help

  • ASP.net TreeView Problem in Mozilla
    K kapil bhatnagar

    Hi Can please someone help me out with this problem ... I have developed a Treeview using Microsoft TreeView control in ASP.NET using C#. Its working perfectly in the Internet Explorer. The problem im facing is that its not working in Mozilla as its not able to attach javascript event handlers to the treenodes. The javascript events have been attached via the C# code behind file rather than html. eg.this.TreeCtrl.Attributes.Add("onexpand","javascript:return treeViewExpand(this);"); Can someone please help me in how to attach the treenode events so that they work perfectly for Mozilla browser.

    ASP.NET csharp help javascript html asp-net
  • Login

  • Don't have an account? Register

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