Thanks for your inputs. I am not sure if I agree with you on MVP not suited for Web Apps. Regarding the 30 Events statement I was being sarcastic. Thanks for trying though.
Regards, Cybernate
Thanks for your inputs. I am not sure if I agree with you on MVP not suited for Web Apps. Regarding the 30 Events statement I was being sarcastic. Thanks for trying though.
Regards, Cybernate
Thanks Jeremy. I tried to provide my question with an example. I have a scenario where I have to display a view with around 30 fields(some are textboxes and some are Dropdowns) and the Business Object to represent the entity would be something like: [CODE] Parent { PField1 PField2 . . . . PField19 PField20 List<Son> Sons; List<Daughters> Daughters; } Son { SField1 SField2 SField3 } Daughter { DField1 DField2 DField3 DField4 DField5 } [/CODE] Am capturing/displaying the whole business entity in a single view. Now the user can change the base fields of a parent or change the fields of a son/daughter. Now how should I handle the change events for each field in the view, should I delegate the change events to the Presenter and then let presenter update the view. This requires to define 22 events in the View and then 22 delegate events in view and 22 event handlers in the presentation layer. Somehow am not having a good feeling about this design. Can you please advise?
Regards, Cybernate
modified on Tuesday, July 28, 2009 4:01 PM
Hi, I am trying to implement a site(Read/Update/Delete operations site) using MVP pattern. Also trying to keep the presentation layer UI agnostic(i.e. Presentation layer should work with a Web Client/Windows Client). Now I have a domain object with around 30 fields/attributes and all of these fields are editable in the UI(View). I want to propogate the change in any field to the Presentation layer. The only solution I can think of is to define 30 events!!! in the View and 30 handlers in the Presentation layer or define 30 setter methods in the presentation layer for the 30 event handlers in the view. Am not comfortable with this design. Can any one provide me a solution or a direction on this?
Regards, Cybernate
Create a page which would just have the IMAGE HTML. And then add script as below window.setTimeout("document.location.href=''", 2000) to the window.onload event of first page.
Regards, Cybernate
Hi, Assume ID for your datalist control is dlist. Then string szChandu = (dlist.Items[i].FindControl("Label1") as Label).Text; should work. Please note i in the above code is the ith row of the datalist.
Regards, Cybernate
add the position attribute to the repeater control as relative and for the user control in Item Template add the position style attribute as absolute with left and top as 0. Also make sure you give a zindex attribute in a progressive way. Then using client side javascript you can change the z-index to give a slide show effect. e.g: . . . . . uc1:\[yourusercontrol\] now use a javascript to get hold of the inner contents and change the zIndex attribute value. Let me know if you need sample code.
Regards, Cybernate
You should be able to do it without any problems. Are you getting any error? but if you are dynamically changing the hierarchy of controls on apage they can;t make use of the View State. Let me know whatz the problem you are facing.
Regards, Cybernate
First try browsing the image directly using the URL below: http:///facility.imgx?pictureId= This will display if there is any error in the processing and you can start your debugging from there.
Regards, Cybernate
You can access the Session normally as you would do in the form 5. As long as the value is added to the session you will be able to access it from anywhere in you code using the session property.
Regards, Cybernate
You can use System.Windows.Forms.Application.Exit() for Windows Apps and Response.End for Web Application.
Regards, Cybernate
The level of effort depends on how the application was architectured. If the layers of application Presentation/View and other layers are not tightly coupled . all you have to do is to go ahead and create a similar view in Winforms and use the existing Business layers etc. If this is not the case. then you will have to redo most part of the application.
Regards, Cybernate
As an alternative you can use subModal scripts, which provides cusomizable Modal Dialogs.
Regards, Cybernate
You can use WebRequest class to do the same at server end. Or create a proxy for the web service using the wsdl tool provided by .Net to achieve Stong type safety
Regards, Cybernate
You can use cookies as well, but Cookies is not a reliable source to store data across requests as client has complete control on them.
Regards, Cybernate
The solution given by Rajesh is appropriate. You can further enhance is as follows to automagically maintain/reset the flags: 1)Define a database level job to scan the users table for the active flags and the time they were marked and then reset the same after a specific amount of time. 2) Or add code to Session_OnEnd to mark the flag 3) or use and asynchronous javascript call on the page_unload event at client side to reset the flag.
Regards, Cybernate
Can you post the code for your master page?
Regards, Cybernate
Thanks will go over it and let you know my thoughts.
Regards, Cybernate
Thanks...
Regards, Cybernate
I am not getting your question. The above post is rather a statement. Can you be a little more specific?
Regards, Chandra V