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
X

xenonysf

@xenonysf
About
Posts
15
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Raise CustomEvent From UserControl
    X xenonysf

    man i don't know then your problem is something else, try giving more detail about the error

    ASP.NET help announcement

  • Raise CustomEvent From UserControl
    X xenonysf

    //in MyControl.ascx.cs public event System.EventHandler Hello; //in Button_click event ///I suggest: if(this.Hello != null) this.Hello(this, null); //in default.aspx.cs protected MyControl MyControl1; //in page_Load XX ///override OnInit protected override void OnInit(EventArgs e) { base.OnInit(e); this.MyControl.Hello +=new EventHandler(MyControl_Hello); } //after Page_load private void MyControl_Hello(object sender, EventArgs e) { //this is not a good way put a label and assing your value to it Response.Write("welcome"); }

    ASP.NET help announcement

  • Raise CustomEvent From UserControl
    X xenonysf

    Seems ok. But if you are not using "EventArgs e" you pass null instead of "new EventArgs();". and on the other hand i think it is better to initialize event handlers in OnInit instead of Page_Load.. What do you think guys?

    ASP.NET help announcement

  • switch statement
    X xenonysf

    You should construct a data structure and keep the possible values in case statements in an ordered way in your data structure; then your incoming value should be compared with the values inside your data structure in binary search fashion... this will be faster and save you from time consuming sequential searching

    The Weird and The Wonderful

  • Ajax slow downs large grid, what to do?
    X xenonysf

    i couldn't make it work... But i guess it seems grid is deleting itself :^)? I'll try to make it work first then we'll see what will happen... So far I couldn't for my own reasons...

    ASP.NET question css help

  • Ajax slow downs large grid, what to do?
    X xenonysf

    thats for sure just like i did; i tried many ways and come up with the exact source of problem after inspecting every block and tier of the application. one more thing that i found out;

    ASP.NET question css help

  • Ajax slow downs large grid, what to do?
    X xenonysf

    thnx but at the moment it is not a solution. Also i good at looking at references and see whats going on. I thought that this might be a common problem and somebody must know how to optimize

    ASP.NET question css help

  • Ajax slow downs large grid, what to do?
    X xenonysf

    Microsoft Ajax Library & Toolkit.. By the way i realized that my views state is almost 10Kb and my page is 70Kb :( ... Yes i think it takes to much time to process the data, actually i am not sure what the exact problem do you have any idea where i should inspect?

    ASP.NET question css help

  • Ajax slow downs large grid, what to do?
    X xenonysf

    No it does not happen for the first load actually. It gets slower when go further pages. But my query only returns records belongs to that page. I have a custom paging solution and it takes pagesize and pagenumber as parameter and just works fine.

    ASP.NET question css help

  • Ajax slow downs large grid, what to do?
    X xenonysf

    I have a grid on my page and i am using ajax. Grid displays just 8 rows of thousands of records, i use a paging mechanism. I realized that it is so slow at displaying records. I traced the fetch time of my connection and find out that it is enough fast. But i realized that my browser hangs up for a while (like 10 secs) and thats why i though that data is coming slow, but ajax was the problem since i saw that everything is OK without an updatepanel. The question is how can I make my page rendered or processed or x? inside browser faster without disabling ajax in the page. (datas in my grid aren't that large, viewstate is at most 1kb maybe i mean it is not large either.)

    ASP.NET question css help

  • Can anyone explain in detail about DB LOCKING
    X xenonysf

    aa yes but i just thought transactions can help about his problems :)

    ASP.NET database tutorial question

  • Can anyone explain in detail about DB LOCKING
    X xenonysf

    if you want to do atomic operations on db then see "transactions". But I have never used... Just wanted to say that all i know about them is that they provide u atomic operations CREATE PROCEDURE DeleteEmployee ( @EmployeeID int ) AS BEGIN TRANSACTION -- Start the transaction -- Delete the Employee's phone numbers DELETE FROM EmployeePhoneNumbers WHERE EmployeeID = @EmployeeID -- Delete the Employee record DELETE FROM Employees WHERE EmployeeID = @EmployeeID -- See if there is an error IF @@ERROR <> 0 -- There's an error b/c @ERROR is not 0, rollback ROLLBACK ELSE COMMIT -- Success! Commit the transaction

    ASP.NET database tutorial question

  • Asp.Net Javascript-Ajax Coding Style Approach
    X xenonysf

    I mean creating a js code by code-behind. like string script = "jscodecode" + var +"codeceode"; ... ok I got what you mean i think. Thanks

    ASP.NET javascript question csharp asp-net tools

  • Asp.Net Javascript-Ajax Coding Style Approach
    X xenonysf

    Don't you ever need creating dynamic js code? I think there must be an approach to put script blocks to places that are most suitable. I am just looking for an advice :)

    ASP.NET javascript question csharp asp-net tools

  • Asp.Net Javascript-Ajax Coding Style Approach
    X xenonysf

    Hi folks! I am new here and i search for my question and find nothing here..:rose: Now i am developing a web application which has to many custom javascript blocks and it includes ms-ajax. Sometimes js codes are written into an external .js file, sometimes they are written into aspx file, some times they are registered from code-behind. Think about how it is getting messy. This might also lead to script conflicts as you might guess. :omg: So what i want to learn is; is there a BEST way for this coding style (arranging js scripts in an very effective way in terms of programmer view and application convenience)?:confused:

    ASP.NET javascript question csharp asp-net tools
  • Login

  • Don't have an account? Register

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