# Tuesday, December 22, 2009

It is possible for a ModalPopupExtender to be displayed using a postback. You'll need an invisible target control.

<asp:Button runat="server" ID="btnShowModal" Text="Show"
     OnClick="btnShowModal_Click" />
<asp:Button runat="server" ID="HiddenForModal" style="display: none" />
<ajaxToolKit:ModalPopupExtener ID="Modal1" runat="server"
     TargetControlID="HiddenForModal" PopupControlID="PopupPanel" />


In your message handler in code-behind, you'll show the ModalPopupExtender:

Modal1.Show();

And in the code you're using to dismiss the Modal, call the ModalPopupExtender's Hide function:

Modal1.Hide();

Then use this method for showing a modal that displays detailed data that I retrieve from a database based on what's selected in a GridView.

Thanks for Tim to this trick :)

posted on Tuesday, December 22, 2009 7:41:32 AM (GMT Standard Time, UTC+00:00)  #    Comments [1] Trackback
# Friday, September 04, 2009
1 - On the diagram, select the ASP.NET application you want. 
2 - On the Diagram menu, choose Settings and Constraints
3 - Under Settings in the Settings and Constraints Editor, expand the Directory node and then the Configuration node. 
4 - Expand the SystemWebSectionGroup node and select the WebServicesSection resource. 
5 - In the right pane of the Settings and Constraints Editor, expand the Settings node. 
6 - On the Protocols row, click the Value column, and then the ellipsis (…) button. 
7 - The ComplexSetting Collection Editor appears. 
8 - In the ComplexSetting Collection Editor, click Add
9 - In the Members list, a new setting appears.
posted on Friday, September 04, 2009 11:35:05 AM (GMT Daylight Time, UTC+01:00)  #    Comments [1] Trackback
1 - On the application diagram, click the ASP.NET application you want.
2 - On the Diagram menu, choose Settings and Constraints.
3 - Under Settings in the Settings and Constraints Editor, expand the Directory node and then theConfiguration node.
4 - Right-click the Configuration node, point to Add Resource, and chooseSystemWebSectionGroup.
5 - Right-click the SystemWebSectionGroup node, point to Add Resource, and chooseWebServicesSection.
6 - In the right pane of the Settings and Constraints Editor, expand the Settings node.
7 - On the Protocols row, click the Value column, and then the ellipsis (…) button.
8 - The ComplexSetting Collection Editor appears. 9 - In the Members list, select Documentation, click Remove, and then OK. 
posted on Friday, September 04, 2009 11:34:25 AM (GMT Daylight Time, UTC+01:00)  #    Comments [2] Trackback
# Monday, June 01, 2009

ASP.NET MVC  enables you to build Model View Controller (MVC) applications by using the ASP.NET framework. ASP.NET MVC is an alternative, not a replacement, for ASP.NET Web Forms that offers the following benefits:

    -  Clear separation of concerns
    -  Testability - support for Test-Driven Development
    -  Fine-grained control over HTML and JavaScript
    -  Intuitive URLs

For detail information and more samples click the following link. 

http://www.asp.net/mvc  

posted on Monday, June 01, 2009 11:24:31 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Wednesday, April 15, 2009

If you want to customize "Ajax Calendar Extender" control's date format you can use the "Format" property of control. You can give some patterns that describes what you want.

Exp. Format = "dd.MM.yyyy" , Format = "dd/MM"

Note : This property's value is case-sensitive. So you must write "dd.MM.yyyy", not "DD.MM.YYYY"

posted on Wednesday, April 15, 2009 11:04:53 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] Trackback
# Wednesday, January 28, 2009

Scott Guthrie writes excellent post about ASP.Net MVC 1.0 RC is now available! It is great news for many customers who has been asking for this. You can read this very very long post via this link, and you can read release notes about this RC via this link. If you want to download ASP.Net MVC 1.0 RC use this link.

Congratulations to the Microsoft ASP.NET team for their hard work on the MVC out-of-band releases...

posted on Wednesday, January 28, 2009 9:28:14 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] Trackback