Eyl
10
2007

Silverlight 1.0 Final Release

Silverlight,Moonlight,Novell,Microsoft,Asp.Net [Fazlası]
Tem
26
2007

Datalist,DataGrid,Repeater Kontrolerinde buton tıklama olayı

Datalist,DataGrid,Repeater,Button,LinkButton,ImageButton,Click,Tıklama,Sepet,Ekle,SepeteEkle [Fazlası]
Haz
4
2007

Microsoft Silverlight

Microsoft WPF/E'yi Silverlight olarak lanse etti.Vektörel görüntü olarak çalışan Silverlight Flash'a ciddi rakip olacak gibi görünüyor.Browser'lara plugin olarak eklenecek ve .Net dilleri ile geliştirilebilecek. Daha fazla bilgi için: http://www.microsoft.com/silverlight/
Nis
20
2007

Thumbnail oluşturmak...

//thumbnail.aspx oluşturun...aşağıdaki kodları yazın... using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Drawing; using System.Drawing.Imaging; public partial class thumbnail : System.Web.UI.Page {    private void Page_Load(object sender, System.EventArgs e)    {       string Image = Request.QueryString["Image"];          if (Image == null)             {                this.ErrorResult();                return;             }    string sSize = Request["Size"];    int Size = 120;    if (sSize != null)       Size = Int32.Parse(sSize);    string Path = Server.MapPath(Request.ApplicationPath) + "\\" + Image;    Bitmap bmp = CreateThumbnail(Path, Size, Size);    if (bmp == null)    {    this.ErrorResult();    return;    }    string OutputFilename = null;    OutputFilename = Request.QueryString["OutputFilename"];    if (OutputFilename != null)    {       if (this.User.Identity.Name == "")          { bmp.Dispose();this.ErrorResult();}       try       {          bmp.Save(OutputFilename);}       catch (Exception ex)       {          bmp.Dispose();          this.ErrorResult();          return;       } } Response.ContentType = "image/jpeg"; bmp.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg); bmp.Dispose(); } private void ErrorResult() { Response.Clear(); Response.StatusCode = 404; Response.End(); } public static Bitmap CreateThumbnail(string lcFilename, int lnWidth, int lnHeight) { System.Drawing.Bitmap bmpOut = null; try {    Bitmap loBMP = new Bitmap(lcFilename);    ImageFormat loFormat = loBMP.RawFormat;    decimal lnRatio;    int lnNewWidth = 0;    int lnNewHeight = 0;    if (loBMP.Width < lnWidth && loBMP.Height < lnHeight)          return loBMP;    if (loBMP.Width > loBMP.Height)    {       lnRatio = (decimal)lnWidth / loBMP.Width;       lnNewWidth = lnWidth;       decimal lnTemp = loBMP.Height * lnRatio;       lnNewHeight = (int)lnTemp;    }    else    {       InRatio = (decimal)lnHeight / loBMP.Height;       lnNewHeight = lnHeight;       decimal lnTemp = loBMP.Width * lnRatio;       lnNewWidth = (int)lnTemp;    } bmpOut = new Bitmap(lnNewWidth, lnNewHeight); Graphics g = Graphics.FromImage(bmpOut); g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; g.FillRectangle(Brushes.White, 0, 0, lnNewWidth, lnNewHeight); g.DrawImage(loBMP, 0, 0, lnNewWidth, lnNewHeight); loBMP.Dispose(); } catch {return null;} return bmpOut; } } yukarıda thumbnail.aspx oluşturuldu..Resmi çağırıken öreneğin Image1 adlı Image Control için; <asp:Image ID="Image1" runat="server" ImageUrl="~/thumbnail.aspx?image=Fall800.jpg&size=800"/> şeklinde çağırın...
Nis
19
2007

FormView içinde bir kontrole erişmek

Formview içinde bir kontrol erişmek istiyorsanız...Örneğin formview içinde bir TextBox: TextBox txtMyTextBox = frvMyFormView.FindControl("txtMyTextBox"); Yukarıdaki yapıyı genel olarak kullanbilirsiniz.. ChildUserControl myChildUserControl=myPrentUserControl.FindControl("myChildUserControl"); 

Hakkımda

 

Yusuf Şahin.

Çözüm Mimarı,IT Uzmanı.

Takvim

<<  Şubat 2012  >>
PaSaÇaPeCuCuPa
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Son Eklenenler

Arşiv