User Profile

Collapse

Profile Sidebar

Collapse
vinaykeshav
vinaykeshav
Last Activity: Apr 22 '07, 01:18 PM
Joined: Dec 14 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vinaykeshav
    replied to checkbox in datagrid
    in .NET
    at ur datagrid ItemDataBound event
    if(e.Item.ItemT ype == ListItemType.He ader)

    CheckBox chBox = new CheckBox();
    chBox = (CheckBox)e.Ite m.FindControl(c ontrol name);

    if this is checked then...

    if(e.Item.ItemT ype == ListItemType.It em)

    either loop into all rows or else if possible get the instance of that
    column where checkbox is present and check all the boxes...
    ...
    See more | Go to post

    Leave a comment:


  • The server name or address could not be resolved'.

    hi,

    I had a web proj which i overwrite with another copy of solution from a n/w place
    to update the files...
    but after doing this the web doesnt load...
    all other web applications doesnt have this probs...
    the err msg is get is :-

    The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/Servicing'. 'The server...
    See more | Go to post

  • declare an int global..
    private static int i =0;

    at next u increment and at back u decrement it..

    txtname.Text =ds.Tables[0].Rows[i][0].ToString();
    txtroll.Text =ds.Tables[0].Rows[i]["roll no"].ToString();

    this might help u.....
    See more | Go to post

    Leave a comment:


  • Can anyone help me on this...
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to add scrollbar in gridview
    in .NET
    Drop a DataGrid Web control onto the page and resize it to the size you would like.

    Then drop an HTML Label Control onto the page. This is the same as a <div>. I am using the html version, since I do not need any of the extra features (or overhead) associated with a Web control. I would recommend giving this control an id, so that it is easier to find when making further changes.

    Next, I can drag the datagrid...
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to minimalize icon
    in .NET
    then u can tk the instance of form and u get its state like minimized or max..
    which u can use as event.....
    See more | Go to post

    Leave a comment:


  • to view the list u need to use the listbox / datagrid ,,, u can display all items inside the textbox using a comma seperator......
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to minimalize icon
    in .NET
    windows based or web based...
    See more | Go to post

    Leave a comment:


  • txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["name"].ToString() ;
    txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["roll no"].ToString() ;


    please specify the row no like zeroth .....
    See more | Go to post

    Leave a comment:


  • for a textbox i am sure that u wil not fetch more than one row of data
    so,,..
    [CODE=cpp]connection = new SqlConnection() ;
    connection.Conn ectionString = "Persist Security Info=False;" +
    "Integrated Security=SSPI;d atabase=northwi nd;" +
    "server=localho st;Connect Timeout=30";
    connection.Open ();
    dataadapter = new SqlDataAdapter( "select * from customers", connection);...
    See more | Go to post
    Last edited by Shashi Sadasivan; Nov 26 '07, 10:05 PM. Reason: adding code tags

    Leave a comment:


  • vinaykeshav
    replied to Restore .mdf file
    In SQL Query Analyzer, back up a database by running the following command:
    BACKUP DATABASE DatabaseName TO TAPE = TapeDriveName WITH FORMAT, BLOCKSIZE=65536 , NOUNLOAD
    Notes• This command formats the tape with a block size of 64 KB. Therefore, the tape can be used by SQL Server 2000 and Windows Server 2003.

    try to backup using above cmd and try restoring .....
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to wb.confg error
    in .NET
    u should have the virtual directory for ur appln and pt it to the actual web dir at the iis
    and also the windows auth user should be administrator or should have admin
    privilages......
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to gridview...
    in .NET
    as i read the solutions from others ..
    it seems that u cant decide the no of cols at design time.
    if u need to use a single datagrid and when ur bindind datagrid u cant add cols at runtime...
    so the solution is that the datasource should b having the constant no of cols
    before binding... so at some case if for example a col name appears for some case and doesnt for others then at the case where it doesnt appear u should...
    See more | Go to post

    Leave a comment:


  • in the example i have provided it uses the dataadapter itself,
    and datagrid is a control where the data is getting binded...
    See more | Go to post

    Leave a comment:


  • [CODE=cpp]connection = new SqlConnection() ;
    connection.Conn ectionString = "Persist Security Info=False;" +
    "Integrated Security=SSPI;d atabase=northwi nd;" +
    "server=localho st;Connect Timeout=30";
    connection.Open ();
    dataadapter = new SqlDataAdapter( "select * from customers", connection);
    dataset = new DataSet();
    dataadapter.Fil l(dataset, "table1");...
    See more | Go to post
    Last edited by Shashi Sadasivan; Nov 26 '07, 10:04 PM. Reason: adding code tags

    Leave a comment:


  • vinaykeshav
    replied to Restore .mdf file
    our .mdf file may b corrupted..
    first tk a backup of some other db and while restoring make sure the name of the db is same......
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to Restore .mdf file
    create a dummy db under ur db server and then on right click u have the
    option to restore the database.. using this u can achieve this
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to Top 5 rows
    if u have an date col under this table then..
    select top 5 * from test order by desc of date col
    See more | Go to post

    Leave a comment:


  • DataTable dt =new DataTable();
    dt=ds.Tables["details"];

    //ds.Tables["details"].NewRow();
    dt.NewRow();

    that was the gud soln to the probs i thought u could have done this..
    thats taking new row from the datatable instead of ds..
    See more | Go to post

    Leave a comment:


  • vinaykeshav
    replied to gridview...
    in .NET
    how are you binding data to ur datagrid is it using list ?
    and y do u want to create column at runtime...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...