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
M

m khansari

@m khansari
About
Posts
56
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • delayed action and response.redirect in same moment
    M m khansari

    hi the application pool is always run. when the process is stopped the secondary thread is working to finish it's task. when it finish it's task the result must be saved on application state or database or hard disk It is only an idea and I have not implement it yet. hope to help you another solution: you can use Ajax and a httphandler(it can be your page) without any submit and any multithreading. (I think it is better than previous approach)

    Mohammad Khansari

    ASP.NET help question

  • delayed action and response.redirect in same moment
    M m khansari

    hi yes ;)

    Mohammad Khansari

    ASP.NET help question

  • Registering global HttpModule
    M m khansari

    hi You should know how the native asp.net httpmodules were registered to the websites and register your own like them I think that they were registered in Machine.config file Hope to be useful

    Mohammad Khansari

    modified on Thursday, January 7, 2010 3:11 AM

    ASP.NET question

  • delayed action and response.redirect in same moment
    M m khansari

    Hi You can use multithread programming and Ajax(to inform work complete) Multithreading: when the server recieves the client's request , the web application delegates a secondary thread to do time consuming task and responses the client to be waiting. Ajax: the client callbacks every 10 minutes(for example) to the server to inform whether the task is completed or not Hope to be useful

    Mohammad Khansari

    ASP.NET help question

  • Show a progress barr
    M m khansari

    hi it never works you show the progress bar at server side and hide it at server side you must study more about it http://www.asp.net/Ajax/Documentation/Live/overview/UpdateProgressOverview.aspx[^]

    Mohammad Khansari

    ASP.NET help

  • Show a progress barr
    M m khansari

    first I want you to answer my question Q - how does your login button works? when you click on the button what happens. the form would be submitted Or a XmlHttpRequest (Ajax)would be sent to server for login action (I answered this situation later) -------------- about first situation if form submit is occurred you can not use a progress bar(show an image) to show progress because whole of your page would be refreshed. I think that you must study more about HTML and Http to understand what happen when the form submitted Hope to be useful

    Mohammad Khansari

    ASP.NET help

  • Show a progress barr
    M m khansari

    I think that your login button works by Ajax If I think true if your login button is a asp.net control you can use OnClientClick property and set it by a javascript function name

    I emitted other irrelevant properties in the pervious code if your login button is a HTML control you can use onclick property

    and in loginFun you show the progress bar

    function loginFun()
    {
    [Your codes]
    document.getElementById("progressBar").style.display="inline";
    }

    and when your ajax response is recieved you can use this javascript code to hide that

    document.getElementById("progressBar").style.display="none";

    hope to be useful

    Mohammad Khansari

    ASP.NET help

  • add fieldset control on run time
    M m khansari

    hi I don't know FieldSet control but I know how to insert a controls at runtime You can use Page Controls property.

    Panel panel=new Panel();
    this.Controls.Add(panel);

    Mohammad Khansari

    ASP.NET help

  • Session effects one system to another
    M m khansari

    hi you can verify a session by SessionID those sessions differs on SessionID Hope to be useful

    Mohammad Khansari

    ASP.NET csharp asp-net help

  • Show a progress barr
    M m khansari

    Hi see that similar question This[Open in new window]

    Mohammad Khansari

    ASP.NET help

  • Opening new window using shortcut key
    M m khansari

    It's better to use display stead of visibility insert following code in Page_Load hide the button

    this.Button1.Style.Add("display", "none");

    show the button

    this.Button1.Style.Add("display", "inline");

    hope to be useful for you

    Mohammad Khansari

    ASP.NET csharp asp-net help question

  • Opening new window using shortcut key
    M m khansari

    Hi How do you hide the button? if you set Visible to false the button's does not be inserted into page you should hide the button using javascript code and css property.

    Mohammad Khansari

    ASP.NET csharp asp-net help question

  • hide row
    M m khansari

    Hi If you want other elements fill the row's room you must use

    obj.style.display="none";

    Mohammad Khansari

    ASP.NET html question

  • Correct way to check if authenticated on each page
    M m khansari

    Hi It is valid to use session for that.

    Mohammad Khansari

    ASP.NET question csharp apache database security

  • Setting a href property in a anchor tag with Javascript
    M m khansari

    Hi

    <a href="javascript:test()">
    Click Me...
    </a>
    <script>
    function test()
    {
    alert("Thanks.");
    }
    </script>

    Mohammad Khansari

    ASP.NET tutorial javascript help

  • [Message Deleted]
    M m khansari

    Set that function public

    public void funName()
    {

    }

    Mohammad Khansari

    ASP.NET

  • print a document clicking on its link
    M m khansari

    Hi You can use ajax. when the ajax response recived you can use this javascript code

    var pp = window.open('', '','left=0,top=0,toolbar=0,scrollbars=1,status=1');
    pp.document.body.innerHTML += cPrint;
    pp.document.close();
    pp.focus();
    pp.print();

    "cPrint" is the document text.

    Mohammad Khansari

    ASP.NET

  • Diff between String and string
    M m khansari

    Hi String is a .net data type string is a C# data type I think that there is no difference. My Reason: right click on the string and select "Go To Definition" from string's context menu it refers to String definition

    Mohammad Khansari

    ASP.NET performance

  • Session
    M m khansari

    You can create a static class that contains SessionIDs and UserIDs(or IPAddresses) that logged on and use that for checking log-on. like static class SessionList { static ArrayList Sessions; ... } OR You can use Applications State for that

    Mohammad Khansari

    ASP.NET question

  • Session
    M m khansari

    Hi Why did not you deny that log-on when someone have logged on via that account already?

    Mohammad Khansari

    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