When you make a website then sometimes you need to make a reusable HTML component, for example, you want to show testimonial on the various page. For doing this you need to copy-paste testimonial HTML on pages where it is required. The problem arises when any modification is done on Testimonial, You will have to update testimonial manually on every page which is time taking and prone to error.
Friday, 31 January 2020
ASP.NET MVC 3 and the @helper syntax within Razor
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
Consume Get API
Consume get API from ASP.Net using PHP
This post will help you to know how can you consume a get Api. Api in this post is made through ASP.Net C# which will be consumed by core PHP.
Data Model
|
Field
|
Description
|
|
ID
|
Row ID (Auto Increment)
|
|
NotesText
|
Text of notification
|
|
NotesType
|
Attachment Type (Text,Link,File)
|
|
Path
|
Location of Attachemntq
|
|
ClassID
|
Class Name
|
|
NewGIF
|
|
|
CreateDate
|
Created Date
|
<table border="1" cellpadding="3" cellspacing="0">
<tr>
<th>Sr
No.</th>
<th>Notes
Text</th>
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
Tuesday, 28 January 2020
News Ticker
Ticker using HTML and CSS
Latest News
Lorem
ipsum
datom
CSS
.g-news {
border: solid 1px #ffb600;
height: 300px;
width:300px;
}
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
Thursday, 23 January 2020
POST API ASP.Net
POST API ASP.Net C# (MVC)
API Controller
public class MyapiController : ApiController
{
// GET
api/myapi
public MyapiController() { }
// POST
api/myapi
public IHttpActionResult Postdata([FromBody] NotificationModel data)
{
UserRepository obj = new UserRepository();
string ErrMsg="";
obj.AddNotesDB(data, ref ErrMsg);
return Ok();
}
}
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
Subscribe to:
Posts (Atom)