<form (ngSubmit)="onsubmit()">
Wednesday, 19 May 2021
dynamic form binding
Tuesday, 11 May 2021
create xml using model class c#
public string CreateXML(Object p)
{
XmlDocument xmlDoc = new XmlDocument(); //Represents an XML document,
// Initializes a new instance of the XmlDocument class.
XmlSerializer xmlSerializer = new XmlSerializer(p.GetType());
Creates a stream whose backing store is memory.
using (MemoryStream xmlStream = new MemoryStream())
{
xmlSerializer.Serialize(xmlStream, p);
xmlStream.Position = 0;
//Loads the XML document from the specified string.
xmlDoc.Load(xmlStream);
return xmlDoc.InnerXml;
}
}
//call in any method to grab data
string strView = CreateXML(p);
//another xml example with model class
XmlDocument doc = new XmlDocument();
XmlNode docnode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
doc.AppendChild(docnode);
XmlNode usersNode = doc.CreateElement("CreateOrderTest");
doc.AppendChild(usersNode);
XmlNode userNode = doc.CreateElement("User");
XmlAttribute userAttribute = doc.CreateAttribute("Id");
userAttribute.Value = "1";
usersNode.AppendChild(userNode);
XmlNode nameNode = doc.CreateElement("Name");
nameNode.AppendChild(doc.CreateTextNode("frank"));
userNode.AppendChild(nameNode);
XmlNode addressNode = doc.CreateElement("Adrees");
addressNode.AppendChild(doc.CreateTextNode("1 Main St."));
userNode.AppendChild(addressNode);
var XMLString = doc.InnerXml;
localhost.webservices test = new localhost.webservices();
var res = test.TextXML(XMLString);
return view();
Monday, 10 May 2021
Friday, 7 May 2021
Tuesday, 4 May 2021
Bootstrap carousel
data-interval by default 5ms.
data-sliet-to:number of slides,
data-wrap:false means stop at last slide,
data-pause:false means pause on mouseover(make data-interval :false)
Bootstrap carousel attributes
| Attribute | Description |
|---|---|
| data-interval | Specifies the time delay in milli-seconds for transitioning from one slide to another. Set this attribute to false if you do not want automatic sliding |
| data-pause | The default value is hover. Pauses from transitioning to the next slide on hover. Set this attribute to false to stop the ability to pause on hover |
| data-wrap | The default value is true which means the carousel transitions thru all the slides without stopping at the last slide. To stop at the last slides set this attribute to false |
| data-ride="carousel" | activates the carousel. The carousel can also be manually activated by using JavaScript $("#carousel_Id").carousel(); |
| data-slide-to | Specifies which slide to go to when clicked. Slide index is ZERO based |
| data-slide | This attribute is added to the carousel controls (LEFT and Right buttons). For the left button the value is "prev" and for the right button the value is "next" |
Bootstrap carousel classes
| Class | Description |
|---|---|
| carousel | Creates a carousel |
| slide | Adds sliding animation effect when transitioning from one item to the other |
| carousel-inner | This class is applied on the element that contains all the slides of the carousel |
| item | Specifies the conent of each slide. Content can be text and images |
| carousel-caption | Specifies a caption for the carousel |
| carousel-indicators | Adds the dot indicators at the bottom of each slide which indicates the current slide the user is viewing and the the total number of slides |
| carousel-control | Adds the left or right bottons on the carousel to go back or forward one slide. To add left button, use left class along with carousel-control class and to add right button use right class along with carousel-control |
junior devops engnr
Position Overview: We are a growing start up seeking a Junior Azure DevOps Engineer with 2 to 3 years of experience to support our Azure...
-
D:\A-MyProjects2024-2025\ReactNative2025\BookRental\android\app\build\outputs\apk\debug path of apk To build an Android app using Capacitor...
-
👉 When your ExceptionHandlingMiddleware tries to resolve a scoped service directly from the app root container (which is NOT allowed)....