string file = @"c:\bb.xml";
// declearation
// parent node
XmlElement subnode = xdoc.CreateElement("subnode");
// Checking File Exist or not
if (File.Exists(file))
{
xdoc.Load(@"C:\bb.xml");
xdoc.DocumentElement.AppendChild(userinfo(txtuser.Text, txtpass.Text));
xdoc.Save(file);
}
else
{
subnode.AppendChild(userinfo(txtuser.Text, txtpass.Text));
xdoc.AppendChild(subnode);
xdoc.InsertBefore(xdoc.CreateXmlDeclaration("1.0", "utf-8", null), subnode);
xdoc.Save(file);
}
// then create the xml node using this methods
XmlNode node = xdoc.CreateElement("Info");
XmlNode user_node = xdoc.CreateElement("user");
user_node.InnerText = user.ToString();
node.AppendChild(user_node);
XmlNode pass_node = xdoc.CreateElement("password");
pass_node.InnerText = pass;
node.AppendChild(pass_node);
return node;
JavaScript
Tuesday, 30 April 2013
Create XML file usign C# and then create sub node in existing file
Friday, 8 March 2013
Top 40 blog websites visit more and more visitors
Top 40 blog websites visit more and more visitors
1. The Huffington Post
2. BuzzFeed - Latest
3. Mashable!
4. The Verge
5. Business Insider
6. Gawker
6. TechCrunch
8. Ars Technica
9. Engadget
10. Gizmodo
11. Breaking news and opinions on …
12. TMZ.com | Celebrity Gossip | …
13. L.A. NOW
14. The Next Web
15. Mediaite
16. Bits
17. Deadspin
18. Boing Boing
19. Jezebel
20. Deadline.com
21. Hot Air
22. Laughing Squid
23. SB Nation
24. ZeroHedge
25. The Opinionator
26 | HuffingtonPost
27 | TMZ
28 | BusinessInsider
29 | engadget
30 | PerezHilton
31| Gizmodo
32 | Mashable
33 | TechCrunch
34 | Gawker
35 | lifehacker
36 | The Daily Beast
37 | SmashingMagazine
39 | FailBlog
40 | Kotaku
41 | boingboing
Thursday, 21 February 2013
First Application with MVC pattern in form submit app
First of you create mvc application
then you create view, controller, model class
<%} %>">
then go the view page see the code in form submitthen you create view, controller, model class
then go the model class
create you database class and property
then go Controller page create your logic
3
put into the controller class
Monday, 18 February 2013
Fetch data using database in JSON form and populated with Dropdown lis
first of create you asp.net application then attach the database
then create default.aspx page then define your code fetch the data in databse in Json format
then add your aspx page using jquery
Add you jquery in header then call in function in body onload then work perfectelly
Monday, 16 April 2012
How to validate date through Jquery
Submit
date validation through jquery......................
$("#Text3").datepicker({numberOfMonths:2,
showButtonPanel: true,
dateFormat:'dd/mm/yy',
autoSize: true,
maxDate: '+3m',
Image:"image.axd.jpeg",
showOn: 'both'
});
$("#button").click(function(){
//alert("hello");
var dateformat= document.getElementById("Text3");
var splitvaue= dateformat.value.split('/');
var date= new Date();
alert(date.getMonth()+1);
// if((parseInt(splitvaue[0])>=date.getDate())&&(parseInt(splitvaue[1]))>=(date.getMonth()+1)){
if(parseInt(splitvaue[1])<13 && parseInt(splitvaue[0])<=31){
if(parseInt(splitvaue[2])==(date.getFullYear())) {
alert("hello");
}
}
else
{
alert("should be enter Today Date");
}
});
});
Saturday, 14 April 2012
How to handle dropdown list with Jquery ???
then dropdown code this work
Monday, 6 February 2012
how to validate date in dd/mmm/yyyy format
this is simple validation in date format
function a(){
var i=document.getElementById("t1").value;
if(abc(i)){
alert("valid")}
else
{
alert("not valid");
}
}
function abc(output){
var i=output;
var reg= new RegExp("^([0][1-9]|[1-2][0-9]|[3][0-1])/(jan|JAN|Jan|feb|Feb|FEB|mar|Mar|MAR|apr|Apr|APR|may|May|MAY|May|Jun|jun|JUN|jul|JUL|Aug|aug|AUG|Sep|sep|SEP|Oct|oct|OCT|nov|Nov|NOV|dec|DEC|Dec)/([1-9][0-9][0-9][0-9])");
//document.write(i);
return reg.test(i);
//if(i=="")
//alert("blank");
}
</script>
function a(){
var i=document.getElementById("t1").value;
if(abc(i)){
alert("valid")}
else
{
alert("not valid");
}
}
function abc(output){
var i=output;
var reg= new RegExp("^([0][1-9]|[1-2][0-9]|[3][0-1])/(jan|JAN|Jan|feb|Feb|FEB|mar|Mar|MAR|apr|Apr|APR|may|May|MAY|May|Jun|jun|JUN|jul|JUL|Aug|aug|AUG|Sep|sep|SEP|Oct|oct|OCT|nov|Nov|NOV|dec|DEC|Dec)/([1-9][0-9][0-9][0-9])");
//document.write(i);
return reg.test(i);
//if(i=="")
//alert("blank");
}
</script>
Subscribe to:
Posts (Atom)