Dear all readers!

Our programming topics will moved to GEEKSSHIP.COMGEEKSSHIP.COM is a new developer community for Vietnamese Developers and developers from all over the world. It supports multiple  languages and can store all edited versions of a topic. GEEKSSHIP.COM is really a new generation of developer community.

 

Thưa tất cả bạn đọc!

Tất cả các bài viết về chủ đề lập trình SFI.VN Team sẽ chuyển sang website GEEKSHIP.COM. GEEKSSHIP.COM là một thế hệ cộng đồng dành cho lập trình viên mới cho Việt Nam và các lập trình viên trên toàn thế giới. GEEKSSHIP.COM hỗ trợ đã ngôn ngữ và nó sẽ lưu tất cả các phiên bản của một chủ đề để có thể tham khảo ngược. GEEKSSHIP.COM thực sự là điểm đến mới của cộng đồng lập trình viên!

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

lehoangdung posted on February 12, 2010 15:31

Well, it's time to dance with VS2010 RC. I've used VS2010 Beta 2, but I didn't happy too much because It was really slow. In this RC version, everything seems changing, on Scottgu's blog, he add some comments from audience:

  • @DanWahlin: The performance improvements with Visual Studio 2010 RC compared to previous builds are huge. Really happy with what I'm seeing so far.
  • @peterbromberg: VS2010 RC: I must admit, I am impressed. Major speed and performance improvements. They are obvious immediately!
  • @Nick_Craver: RC performance is ridiculously faster, can't wait to switch over full time!
  • @Rlz2cool: Just tried VS2010 RC. One word incredible. Super fast, great build with things I saw in earlier releases fixed. So awesome.
  • @ddotterer: Trying out VS2010 RC: Snappier UI, much faster intellisense, significant build time reduction, etc. Overall: AWESOME JOB
  • @tomkirbygreen: Oh my goodness, VS2010 RC is much, much faster. Kudos to the VS perf team and everyone else. Uninstalling Visual Studio 2008 :-)
  • @JoshODBrown The developers on the Visual Studio 2010 RC must have had their usual beverages replaced with unicorn tears or something. #VS2010 #awesome
  • @jbristowe: Holy Butterball! VS 2010 RC is crazy fast. It makes me feel like this: http://bit.ly/cPaOvE
Voila, they said that, but we must try to know is VS 2010 RC good enough. 

I'm installing it...

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted in: .NET , ASP.NET , ASP.NET MVC  Tags:

Sử dụng CKEditor trong trang web MVC ASP.Net 

1. Cài đặt :

Để sử dụng bộ công cụ này, bạn phải download và giải nén tại thu mục gốc của trang web.

link download tại đây :

 http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.0.1/ckeditor_3.0.1.zip 

2. Nhúng vào Web.

      Để nhúng nó vào trang web của mình , bạn phải khai báo nó trong thẻ <head> của trang html 

;

CKEditor hoạt động giống như một thẻ <textarea> trong html . 

   

Ta sẽ thay thế  <textarea> này bằng đoạn code sau: 

     

Bạn phải chèn đoạn code này sau <textarea> mà nó thay thế, hoặc có thể đưa nó vào trong sự kiện Window.onload để bảo đảm mọi thứ đã được load lên. 

     

Để lấy dữ liệu trong CKEditor ta dùng phương thức sau 

    

Code Ex: 


 

3. Cấu hình :

      Bạn có thể thay đổi cấu hình mặc định của bộ công cụ cho phù hợp tùy theo mục đích của bạn. 

Các bạn có thể  đọc kỹ hơn tại www.ckeditor.com

 

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted in: ASP.NET MVC  Tags:
lequangthai posted on November 21, 2009 07:02

In this article,I will talk about how to use radio button in asp.net MVC.

To begin with open Visual Studio 2008 and choose File > New > Project > ASP.NET MVC.The first thing to do is to create a class that will be the structure of our data to fill radio button.Add new class to the project and name it RadioOption.Add the following code to the RadioOption class:

I will create a controller and name it RadioListController for this example. In the constructor of controller,following code to add data to List<RadioOption>

In method Get of action Create,following code to return a list of RadioOption to view for fill data to radio button.

In RadioListController,right click,choose Add View to genarate View of action,in the top of View,fill this code:

And following code to genarate radiobutton.

In method Post of action Create,fill this code:

"return RedirectToAction("Create", new { valueOfRadio = radio.ToString() });" to return value of radio button be selected to View of method Get of action Create to check value of radio be choose.

To do that,add this command to method Get of action Create.

ViewData["valueOfRadio"] = valueOfRadio;

This is full code of RadiolistController.cs

This is full code of View Create.aspx

Looking forward feedback from you!

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted in: ASP.NET , ASP.NET MVC  Tags:

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 SFI.VN Team