Sir,
I want to be a good programmar in .NET (C#). But I can not understand such thing properly like what index should be used after one another like to forecolor a text we use this syntax: system.drawaing.color.colorname or dropdownlist1.selecteditem.tostring() to show value of the dropdownlist
Explanation:
Like to upload file I use this code:
String path = Path.GetFileName(FileUpload1.FileName);
string fileType = Path.GetExtension(FileUpload1.FileName);
byte[] imageSize = FileUpload1.FileBytes;
long size = (imageSize.Length / 1024);
string fileName = FileUpload1.FileName;
FileUpload1.SaveAs(Server.MapPath("MyUploads/" + fileName));
Image1.ImageUrl = "MyUploads/" + fileName;
Image1.ToolTip = FileUpload1.FileName;
Image1.Height = Image1.Width = 200;
Image1.Visible = true;
Label1.Text = "";
You can see after Path we use syntax Getfilename. Then in brackets fileupload1.filename
I just want to do it with rules like mathematics by own. To upload file there are other coding also. Different programmar has their different coding style. Because they learn it exactly which syntax should be used one after another. I want to be like them. I want to code in my own way. My thoughts should be clear what I m going to do and I am to know coding syntax. So please help me.
Is there any rule to program? Or just to cram up in .NET with some fixed rules.
I want to program like I do solve mathematics problem by own, I don’t or rarely follow help book. If I follow math help book I understand what’s going on, how it’s solved. But in .NET I can not understand properly.
So in .NET where I will learn exactly what index should be used one after another. Kindly give me suggestions in simple way.
Regards.
Hasan Al Banna
What I have tried:
I want to be a good programmar in .NET (C#).