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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
R

raj420

@raj420
About
Posts
10
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Trouble with IE Treeview control
    R raj420

    Thanks for you help again.I actually need fire a custom event as to set the checkbox to be checked so is iy ok is i call some thing like queueEvent and set it.But i tried to do this and mt requirements are that i donot modify the hct file. I could not fixup the problem till now so i am looking for more solutions. Once again thanks r@j

    Web Development javascript help tutorial

  • Trouble with IE Treeview control
    R raj420

    Well thank you very much for your help.But i already tried that.and wrote 7 function to enable and disable the tree check boxes and to set the queueEvent to each of the checkboxes.the thing is that while i am at it this code is cheking all the checkboxes and not the ones i want. function start(tree){ checkCheckBox(tree); TreeView_ReadyForPostback(tree); } function TreeView_ReadyForPostback(objTreeView){ //alert("treeview_resdy 0") if(objTreeView != null) { // alert("treeview_resdy 1"); TreeView_CheckVals(objTreeView, objTreeView.getChildren()); } else alert("ERROR: TreeView object is null"); } function TreeView_CheckVals(objTreeView, arrChildren){ // var objChild; for(var i = 0; i < arrChildren.length; i++){ objChild = arrChildren[i]; if(TreeView_IsChecked(objChild) != TreeView_GetInitCheckValue(objChild)) objTreeView.queueEvent("oncheck", objChild.getNodeIndex()); //alert("TreeView_CheckVals 1"); TreeView_CheckVals(objTreeView, objChild.getChildren()); } } function TreeView_IsChecked(objNode){ //alert("TreeView_CheckVals 1"); if(objNode.getAttribute("Checked")) return true; else return false; } function TreeView_GetInitCheckValue(objNode){ alert("iitval"); return objNode.getAttribute("InitCheckValue"); } function checkCheckBox(c) { //TreeView_ReadyForPostback(c); var tst = c; var nodeIndex = c.clickedNodeIndex; var node = c.getTreeNode(c.clickedNodeIndex); var bChecked = node.getAttribute("checked"); if (c.clickedNodeIndex != null) { checkChild(node, bChecked, nodeIndex) ; node.setAttribute("DEFAULTSTYLE","color:black"); } } function checkChild(node, bCheck, nodeIndex) { node.setAttribute("DEFAULTSTYLE","color:black"); var ar = node.getChildren(); var i; var bChecked = node.getAttribute("checked"); var parent; var el; if(ar.length > 0) { for(i = 0; i < ar.length; i++) { ar[i].setAttribute("checked", bChecked, 0); checkChild(ar[i], bCheck) ; } } else { if(bCheck == false) { parent = node.getParent(); parent.setAttribute("DEFAULTSTYLE","color:gray"); } } }

    Web Development javascript help tutorial

  • Trouble with IE Treeview control
    R raj420

    Hi, I need some help with IE Control Treeview, I am making this treeview for selecting inputs for an online application for eg the structure will be like this: The following sample if we check the Men's Wear check box, all the following child nodes must get selected and if it is unchecked all the child node must be unchecked. --------------------- []Men's Wear ---[]Shirt ---[]pants ---[]Caps []Ladies ---[]T-Shirts ---[]Salwars []Kids ---[]Shoes ---[]T-shirts ---------------------- I tried to do this with IE Treeview control but have no idea as to how to enable the checkboxes from the client side.I can do it with vbcode but is it works with that then there is a post back is there anyway I can do this with javascript. Please help -- modified at 1:38 Wednesday 26th October, 2005

    Web Development javascript help tutorial

  • Sending the contents of a datagrid as mail
    R raj420

    hi friends i need help, I am working on a project which involves sending the contents of a datagrid as a mail.The contents must be formated in a tabular form. can anyone help me please

    ASP.NET help

  • Need help to search
    R raj420

    A couple of weeks back i saw an article on playing movies at the background of your IDE while you work.i dont remember which article it was well can someone please help me...

    ASP.NET visual-studio help

  • Dropdownlist help..
    R raj420

    thanks for your answer but i did try that well it only works wen you change a a value from the selection list.not when you click on the same selection. writing any number of function will will only work if you change your selected index! hope u get my point.

    ASP.NET help database tutorial

  • Dropdownlist help..
    R raj420

    I am in a small problem,well in my project i need a dropdownlist which is binded to database and once we click them, should invoke an event.The next criteria is that on the click of the same option the event that executes for that particular selectedindexchange method must be recalled. eg if the list has options:- 1)home 2)option1 3)option2 4)option3 if the user clicks option 1)home then an event say event_home is called.and now the user got the event event_home.Now if he clicks teh same event ie option 1)home then the the event event_home must be reloaded. the first part ie databining and event creation has been done by me.now my problem is :how to chane the method to activate an event on the click of an item. please help

    ASP.NET help database tutorial

  • Export to excel
    R raj420

    Dear friends i am working on an asp.net project. Its for an airline reservation.Now i have a grid which is generated from a database and has some text in chineese and english i want to export the contents of the value in the grid to an excel sheet. I have done that part ,now my problem is that once i export the chineese values are missing and only the english part is exported. Can any one please help.I will give my current code: Public Sub Export2Excel(ByVal MyPage As Page, ByVal dgStr As DataGrid, ByRef strExcelText As String) 'Variable decleration Dim int_reihe, int_spalte As Integer Dim str_ExReihe, str_exfliepath, str_exfilename, str_exfileExcel As String Dim fst_exobjFileStream As System.IO.FileStream Dim stw_exobjStreamWriter As System.IO.StreamWriter Dim rdm_exRandom As Random = New Random(DateTime.Now.Millisecond) 'Extention on Filename str_exfileExcel = "t" & rdm_exRandom.Next().ToString() & ".xls" 'Virtual Folder str_exfliepath = MyPage.Server.MapPath("..\excel\") str_exfilename = str_exfliepath & str_exfileExcel 'Filestream + .xls File. fst_exobjFileStream = New System.IO.FileStream(str_exfilename, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write) stw_exobjStreamWriter = New System.IO.StreamWriter(fst_exobjFileStream) ' Write Tab separated values 'dgStr.DataSource.Tables(0).Columns(0).ColumnName() For int_spalte = 0 To dgStr.DataSource.Tables(0).Columns.Count - 1 str_ExReihe = str_ExReihe & dgStr.DataSource.Tables(0).Columns(int_spalte).ColumnName & Chr(9) Next int_spalte stw_exobjStreamWriter.WriteLine(str_ExReihe) str_ExReihe = "" For int_reihe = 0 To dgStr.Items.Count - 1 For int_spalte = 0 To dgStr.DataSource.Tables(0).Columns.Count - 1 str_ExReihe = str_ExReihe & dgStr.Items(int_reihe).Cells(int_spalte).Text & Chr(9) Next int_spalte 'Schreiben der Infos str_ExReihe = str_ExReihe.Replace(" ", "") stw_exobjStreamWriter.WriteLine(str_ExReihe) str_ExReihe = "" Next int_reihe 'Clean Up stw_exobjStreamWriter.Close() fst_exobjFileStream.Close() 'Show a Link to Excel-File strExcelText = "..\excel\" & str_exfileExcel and this part goes for export code Export2Excel(Me, DataGrid1, strLink) hlDownload.Navigate

    ASP.NET help csharp css asp-net database

  • Displaying the browser with out addressbar
    R raj420

    Hi can anyone help me find a way to dispay the web contents in a browser or a web content viewer. i am designing an application which does not need the address bar nor the meny bar.Should have an applet view look like.Same like the one generated to preview this thread in the forums page.... please help... thanx in advance....

    ASP.NET help

  • Dynamic Creation of aweb page at runtime
    R raj420

    I am planning to create a web page for a work of mine. The various components to be loaded are saved in a database. The page on load should get the components from the database,and on load shoud generate the components. All the controles are listed on the database... Please someone help

    ASP.NET database help
  • Login

  • Don't have an account? Register

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