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

russellsoft

@russellsoft
About
Posts
18
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • post back
    R russellsoft

    I didn't understand, what you mean? I wrote 'indexchange' - I mean SelectedIndexChanged event on Server 'onchange' - The same event on client (using JavaScript)

    ASP.NET database help tutorial question

  • post back
    R russellsoft

    View state attaches after page load... Old and new View states are comparing and generated events of index changing... You can add to your page HtmlInputHidden control and on client on oncange event write selected index into value of hiddenfield... On server you can save in indexchange event of ddl into some variable... Then on Page_Load (in the end of it) you can compare saved index and value of HtmlInputHidden control... If they are different that you must run your function... So you will run this function before indexchange event on server...

    ASP.NET database help tutorial question

  • post back
    R russellsoft

    This function must run at client or at server?

    ASP.NET database help tutorial question

  • Drag and drop in Mozilla
    R russellsoft

    I did it myself... For example it can be looking like follow:[ Row1 Row2 ](#)document.onmouseup = DragStop; var dragTried = false; function TryDragStart() { dragTried = true; } function DragStop() { dragTried = false; } function DragStart() { if (dragTried) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var dragService = Components.classes["@mozilla.org/widget/dragservice;1"].getService(Components.interfaces.nsIDragService); var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable) trans.addDataFlavor("text/unicode"); var textData = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); textData.data = "Done!!!"; trans.setTransferData("text/unicode", textData, textData.data.length * 2); var transArray = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray); transArray.AppendElement(trans); dragService.invokeDragSession(dragService.TEXT_NODE, transArray, null, dragService.DRAGDROP_ACTION_COPY); } }

    Web Development question

  • Drag and drop in Mozilla
    R russellsoft

    I need to realize drag and drop in Mozilla... There is event ondragstart in Internet Explorer... I need to handle such event in Mozilla... I have table with some text. I need drag it in Mozilla and drop in other application... How it can be realized???

    Web Development question

  • Call User Control load event...
    R russellsoft

    At first, what ASP.NET or WinForms platform do you use?

    C#

  • DataGrid Edit a Cell
    R russellsoft

    Use DataGridView component (.NET 2.0)... There is possible to attach event on a cell...

    C# announcement

  • A thing like common task
    R russellsoft

    Write more about your problem...

    C# help question

  • Creating Enums for XML-Elements using C#
    R russellsoft

    public enum enum_name { Element1 = 0, Element2 = 1, ... ElementN = N } Or I didn't understand what do you need?..

    C# help question csharp xml

  • NotifyIcon problem
    R russellsoft

    I can't sqy why while you don't show me your code... :)

    C# database help question

  • Sorting using Gridview and ObjectDataSource
    R russellsoft

    You must use DataView object for sort your data, and then bind it to DataGridView...

    ASP.NET algorithms help tutorial

  • URL-rewriting
    R russellsoft

    I have IIS 6.0 and ASP.NET 2.0 installed... I wrote ASP.NET application which rewrites URLs in format _http://hostname.com/VDirName/_ But one this using redirect from 404 Error to the same path and ASP.NET 2.0 rewriting functions... The problem is that when I tried to use IHttpHandler or IHttpModule interfaces IIS forbidded requests to web-application with masge "APPLICATION IS UNAVAIBLE"... Can somebony tell how to rewrite URLs in format _http://hostname.com/VDirName/_ Will be thanksfull...

    ASP.NET help csharp asp-net com windows-admin

  • C# and standard C library
    R russellsoft

    You must use InteropServices... using System.Runtime.InteropServices then DllImport attribute [DllImport("User32.dll")] public static extern int MessageBox(int h, string m, string c, int type); Then you are avaible to use MessageBox function all code will be locking such the following: using System; using System.Runtime.InteropServices; class MainClass { [DllImport("User32.dll")] public static extern int MessageBox(int h, string m, string c, int type); static int Main() { string myString; Console.Write("Enter your message: "); myString = Console.ReadLine(); return MessageBox(0, myString, "My Message Box", 0); } }

    C# csharp question visual-studio

  • what is the difference between httpmodule and httphandler?
    R russellsoft

    HttpHandlers are using for intercepting requests with some file-extentions... HttpModules for any requests... See in MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebihttphandlerclasstopic.asp http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebihttpmoduleclasstopic.asp

    ASP.NET question

  • need a help with ASP.Net 2.0 Callback future
    R russellsoft

    I think using ICallbackEventHandler is not better decision, because it works only in browsers which support XML-HTTP protocol... I know only one - internet Explorer... But in Mozila and some other browsers you page will not working using callback functions...

    ASP.NET csharp asp-net help tutorial

  • Export from MSExcel to MSSQL2000
    R russellsoft

    In this case you can use Jet OleDb Provider or Micrisoft Excel object model... Using Jet it will be looking like the following: string ConnectionStr = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Mode=ReadWrite;Extended Properties=EXCEL 8.0;Persist Security Info=False;", _file_path_); OleDbConnection conn = new OleDbConnection(ConnectionStr); conn.Open(); DataTable schemaTable = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] {null, null, null, "TABLE"}); foreach(DataRow drTables in schemaTable.Rows) { string TableName = drTables[2].ToString(); DataSet ds = _fill_data_set_("select * from [" + TableName + "]", conn); } in this code: file_path - full path to your Excel-file on hard disc fill_data_set - some function, which fills get DataSet then using selected from Excel-file data (which is in ds object) you insert it into your MSSQL2000 table... How to do this I think you know...

    ASP.NET csharp asp-net database question

  • Adding CheckBox control at runtime
    R russellsoft

    You must put it at end of PageLoad... Because ViewState will refreshed after PageLoad event CheckBox chb = new CheckBox(); chb.ID = "someID"; pnl.Controls.Add(chb); pnl - is your Panel which you added in designer... It is simple or I didn't understand what is a problem in?..

    ASP.NET csharp help javascript asp-net tutorial

  • How draw formatted text in cell DataGrid
    R russellsoft

    Use DataGridView control... It is more powerfull then usual DataGrid...

    C#
  • Login

  • Don't have an account? Register

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