One more easiest way to create XSD from XML :)


Hello friends,

as i have shared earlier in my previous post .

To make it more easy visual studio provide you a best utility which i want to share here

see below screenshot .

When you open XML in the visual studio in the menu you will get XML option. Just click on create Schema submenu and you are good to go.

wow you have XML schema. Isn’t it simple. 🙂


Enjoy friends 🙂

Thanks & Regards,

Rajat Jaiswal

How to generate XSD from XML in 2 minutes ?

Dear Friends,

Many times we require XSD from XML which we can utilize in our code. so to achieve this we need to run a simple command which will create your XML in XSD. Now you are thinking what is that command so here we go

you just need to write following command on command prompt

XSD.EXE  “YourXML file Name”  /outputdir:


XSD.exe “d:\myxml.xml” /outputdir:

When you run it it will generate the XSD file in system32 folder.

I hope you like it.

Thanks & Regards,

Rajat Jaiswal

How to create dynamic form using Javascript and Submit it in ASP.Net ?


Dear friends ,

sometimes you need to create dynamic form in . Let see below example to understand it more clearly.

Suppose on a  button click you want pass token value to a different  handler page then you need to write following lines

<script type="text/javascript">

function callPagePostBack(accessToken) {

var form = document.createElement("form");
            form.setAttribute("method", ‘post’);
            form.setAttribute("action", ‘LoginAuthentication.ashx’);

            var field = document.createElement("input");
            field.setAttribute("type", "hidden");
            field.setAttribute("name", ‘accessToken’);
            field.setAttribute("value", accessToken);




When you run above code you will find on LoginAuthentication.ashx folder you are getting accessToken there.


I hope you enjoyed this tutorial.

Thanks ,

Rajat Jaiswal

Windows 8.1 & VS 2013 – WOW lets go for it.


Dear Friends,

Microsoft Shared in build 2013 about latest creation which is Windows 8.1 & VS 2013.

You can check out the video of build  keynote 1  at Keynote1

and Keynote 2 at Keynote2

Enjoy the videos.

You can enjoy preview version for windows 8.1 at

You can take a look of  Visual studio 2013 preview version at


Thank & Regards,

Rajat Jaiswal

How to invoke a Java script after completion of server event of control ?


Dear All,

Sometime you fall in this situation where you need to invoke a java script just after your server event of control. Lets  understand with an example suppose you have a server control button on your web page now after clicking this button page will post back and everything is added in database and then after you need to show  Java script alert like Record is Saved successfully.

so to achieve this task you need to do following things

1.) Write a Javascript function for showing custom alert message  just like below

<script type="text/javascript">
        function onSuccessful() {

              alert(‘Data Saved Successfully’);


function onError() {

alert (‘Data not saved successfully’);


2) In server side button event you need to do following thing

protected void btnFaceBookLogin_Click(object sender, EventArgs e)
             if (CheckLogin())

ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "RegisterSuccess", "onSuccessful();", true);


else {

ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "Registerfail", "onError();", true);


} catch (Exception ex) {




So when you compile it and run it after button click’s server side event javascript will fire according to checklogin  status.

Here the important note is to register the script with unique name.

I hope this will help you also.

Enjoy cheers 🙂

Rajat Jaiswal