I think your trying to fix something that doesn't need fixing.
The dragable panels should be created first and set in position.
Then the update panels should be inside the dragable panels, so use multiple update panels and multiple triggers.
Each draggable panels should be an independent unit, that is self contained, with all the plumbing inside them.
If you put the draggable panel inside a update panel, on async-postback, the server won't know that you changed the position of the panel, and put them back in the original location, where ever they were hard coded to when the server sent the html to the browser the first time.
So make the draggable panels first, test them. Then put a update panel inside the panel, and add your content and logic, then test again. It should work in theory.
I have a generic list of objects of class A. This class has a property called "addr_type_code", I want to sort the collection in such a way that from all of the collection. I want to put the item which has addr_type_code="BM" in the first place, and then item with addr_type_code="PL" in second place like that CL, QR ... etc. And some times some of the addr_type_code may miss and still our program should take the next one the priority and sort accordingly.
To make this arrangement possible and sort the list what is the best approach, please help me I want to sort it. Its very urgent.
If you want ordrer it alphabetically with nullable values just use linq OrderBy function. If you want do this in multiple places write extension method with type argument TAClass:AClass. If you want some custom order implement in base class A ISortable (.net sorting interface i dont remember its name) interface with you custom sorting logic.
I have a textbox having textmode 'multiline' in which one can write source code, so my requirement is to make some part of textbox text to be read only and some part to be editable.....Suppose in a textbox there is 1 to 10 line(no of rows)... so i want row no.1 to row no.3 to be raedonly means no one can edit these rows, next row no.4 to row no.7 to be editable, and again row no.8 to row no.10 to read only. How to achieve the above requirement... ??
I'll make the assumption that any line which can be edited cannot be broken into multiple lines...
As somebody else mentioned, it would be much easier to use another control, such as a grid view (or repeater), to split each line into its own control. That will allow you, for example, to more clearly indicate which lines are editable and which are read only (e.g., by graying out the read only lines).
I would say better would be using one from tone of JS libs, and RegExp on server but it's just my opinion. Also if customer would allow this with his browsers HTML5 masked textbox would be good solution to.
Thread information: Thread ID: 12 Thread account name: AUSTRALIA1\Administrator Is impersonating: True Stack trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)