man i don't know then your problem is something else, try giving more detail about the error
xenonysf
Posts
-
Raise CustomEvent From UserControl -
Raise CustomEvent From UserControl//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"); }
-
Raise CustomEvent From UserControlSeems 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?
-
switch statementYou 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
-
Ajax slow downs large grid, what to do?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...
-
Ajax slow downs large grid, what to do?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;
-
Ajax slow downs large grid, what to do?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
-
Ajax slow downs large grid, what to do?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?
-
Ajax slow downs large grid, what to do?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.
-
Ajax slow downs large grid, what to do?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.)
-
Can anyone explain in detail about DB LOCKINGaa yes but i just thought transactions can help about his problems :)
-
Can anyone explain in detail about DB LOCKINGif 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 Javascript-Ajax Coding Style ApproachI 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-Ajax Coding Style ApproachDon'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-Ajax Coding Style ApproachHi 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: