ss125 18 Posting Whiz in Training

First is the fastest among all...Because it uses one bitwise and one arithmatic operator..

Next comes the second. 2 bitwise and two arithmatic operator.

The code with highest time complexity is third. Once my teacher taught " It looks like simple, but When ever a multiplication code is called the compiler will perform inner addition operation. But due to its coding structure, most programmers use this kind of notations.".

Hope this helps you...

Have a happy coding...:D

ss125 18 Posting Whiz in Training

You can also use the following code...

            SqlCommand cmd = new SqlCommand("select * from sps_login", con);
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataSet ds = new DataSet();
            da.Fill(ds);
            con.Close();
            GridView1.DataSource = ds;
            GridView1.DataBind();

            Response.Clear();
            Response.Buffer = true;
            Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.doc");
            Response.Charset = "";
            Response.ContentType = "application/vnd.ms-word ";
            StringWriter sw = new StringWriter();
            HtmlTextWriter hw = new HtmlTextWriter(sw);
            GridView1.AllowPaging = false;
            GridView1.DataBind();
            GridView1.RenderControl(hw);
            Response.Output.Write(sw.ToString());
            Response.Flush();
            Response.End();

Hope it helps you...

Have a happy coding...:-D

timmyjoshua commented: no, it's not helping i need to create microsoft word file.... +0
ss125 18 Posting Whiz in Training

From what i understand, you want to populate the particular class students by selecting the combobox?

if thats your question, the answer is you have to change the query to the following.

Dim sqlquery As String = "select * from frmStudentReg WHERE class like '%" & >ComboBox6.SelectedValue & "%'"

you have to change it as

Dim sqlquery As String = "select * from frmStudentReg WHERE class='"&ComboBox6.SelectedValue"'

Hope this helps you my friend.

ss125 18 Posting Whiz in Training

The following are the possibilities.

1) Browser compactibility problem (includes version of browsers also).

2)Your development machine's pixel size may vary to client's system. For eg., U r using a 1388*720 and the client may be using a lesser one and vice-versa.

3)For your information, Kindly develop your page with a default size of 1024*638. This is best suited for all lower end as well as higher end resolution screens.Instead of 720 I have used 638 because of the exclusion of browser's page on the screen.

Check any of these possibilities.

Hope this helps u.

Have a happy coding.

almostbob commented: not an appropriate answer, one should not continue incorrect stereotypes -3