User Profile

Collapse

Profile Sidebar

Collapse
mercea
mercea
Last Activity: Feb 12 '08, 04:36 PM
Joined: Aug 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mercea
    started a topic Postback problem
    in .NET

    Postback problem

    Hi guys,
    I am taking a column from a table and comparing each row in that table with a similar column in a gridview row by row. For each identical answer, grade increments by 1. after all the rows have been iterated through, the final grade is placed in another table. This worked for a while till i inserted in cookie variables for the updating it now works on and off. have any ideas what could be causing that? sometimes it increments the grade...
    See more | Go to post

  • mercea
    started a topic Grade Does Not Increment!
    in .NET

    Grade Does Not Increment!

    Hi all,
    i have a web page which contains a gridview. On this gridview, the user uses a set of radiobuttonlist s to select an option. the selected option is then to be compared with the data in a table. I draw out this data using a dataset table adapter. i want to compare the two values and if they are the same, increment Grade by 1. This is my code below. When i run it, grade always remains at zero. Can you please help me check why its not...
    See more | Go to post

  • mercea
    started a topic text comparism
    in .NET

    text comparism

    hi all,
    I'm trying to implement a function in my .net application using c-sharp where texts of selected checkboxes are compared to texts of previously selected checkboxes selected by another user and for every similar text a counter increments by 1.

    Any ideas are very welcome
    See more | Go to post

  • mercea
    started a topic Stop Page From Going To Top After Editing
    in .NET

    Stop Page From Going To Top After Editing

    hi all,
    i have a grid view that can be edited. anytime i edit the data in the gridview,
    it goes back to the top of the page and i have to scroll down all the way to view the edited entry.
    how do i stop the page from going to the top after editing?

    thanks
    See more | Go to post

  • mercea
    replied to selection via checkboxlist in gridview
    in .NET
    Saving Selected Option From A Checkboxlist To A Gridview

    hi all,
    i have a checxboxlist in my gridview. i want the user to tick an option and the ticked option to be saved to my database. i have gone this far
    Code:
      protected void Button1_Click(object sender, EventArgs e)
        {
            
            Response.Redirect("Direction2.aspx");
            foreach ( GridViewRow row in GridView1.Rows)
    ...
    See more | Go to post

    Leave a comment:


  • mercea
    started a topic selection via checkboxlist in gridview
    in .NET

    selection via checkboxlist in gridview

    hi all,

    i have a grid view and i have inserted a checboxlist template with 5checkboxes per row into the gridview. i want the user to be able to select an option (A-E) and that selected option be saved somehow because later on, the selected option will be compared with values from another table. this is possible right?

    thanks
    See more | Go to post

  • mercea
    started a topic Bind Data To Checkboxlist In Gridview
    in .NET

    Bind Data To Checkboxlist In Gridview

    hi all,

    i have inserted a checkboxlist in my gridview using the <item template>. but i want the checkbox text to be genarated at runtime i.e via textboxes(user input). i have 5 textboxes and 5 checkboxes per row. so i want the text of textbox1= checkbox1's text. and for each row in the gridview, the checkbox's texts will be changed. any ideas?

    - is it possible to disable a link once it has been visited by a particular...
    See more | Go to post

  • mercea
    replied to Update Does Not Work!!!!
    in .NET
    I Used @id1 Instead Of @id. It Works Now Thanks Guys!!
    See more | Go to post

    Leave a comment:


  • mercea
    started a topic Update Does Not Work!!!!
    in .NET

    Update Does Not Work!!!!

    hi all,
    i have created a gridview with the select,delete and insert commands working properly. but the update command does not work. when i edit a column and click the update button, it generates no errors but does not save the changes. it just brings back the original values. i dont know wats missing. can anyone help me?

    this is part of my code:
    [code=html]
    UpdateCommand=" UPDATE [test101] SET Surname=@Surnam e,...
    See more | Go to post
    Last edited by Frinavale; Sep 10 '07, 06:28 PM. Reason: Added [code] tags to make more legible

  • mercea
    started a topic checkoxlist in gridview
    in .NET

    checkoxlist in gridview

    hi all,
    i want to insert a checkboxlist in my gridview and retrieve the value that was checked. i've tried to use the <itemtemplate > but it doesn't work. i'm using c#. can anyone help
    See more | Go to post

  • mercea
    replied to avoid duplicate records on a database
    in .NET
    the problem with assigning a primary key is that the database contains a column for the login time which is recorded everytime the submit button is clicked so the values can never be the same. how do i do it server side? is it also possible to arrange the data in the gridview alphabetically?
    See more | Go to post

    Leave a comment:


  • mercea
    started a topic avoid duplicate records on a database
    in .NET

    avoid duplicate records on a database

    hi all,

    How do i avoid duplicate records on my database? i have 4 textboxes that collect user information and this information is saved in the database. when a user fills the textboxes and clicks the submit button, i want to check through the database if the exact records exist in the database before the data is saved. if the user is registered on the database, he wont be allowed to login. how can i acheive this?

    i thought...
    See more | Go to post

  • mercea
    started a topic Post Filter Parameters Back To The Server
    in .NET

    Post Filter Parameters Back To The Server

    i want to filter data from a database using parameters supplied by the user via textboxes. i've been able to write the select statement. my problem now is, the code behind for the "view data" button. do i do sqldatasource1. select or post the data back to the server? if i'm to post back to the server, whats the code i should use?
    See more | Go to post

  • i've tried that before and when i do that, the error is
    :the string was not recognized as a valid DateTime.There is an unknown word starting at index 0...
    See more | Go to post

    Leave a comment:


  • hi guys, thanks for all your input. i tried all your suggestions but unfortunately non of them worked.any more?
    See more | Go to post

    Leave a comment:


  • now the error says "conversion failed when converting DateTime from character to string"...
    See more | Go to post

    Leave a comment:


  • error:the string was not recognized as a valid DateTime.

    hi all, i'm trying to insert the time/date a button was clicked on a gridview and it generates an error:the string was not recognized as a valid DateTime.There is an unknown word starting at index 0 i have changed the culture to en-US but it still doesn't work. i actually created the date/time column after some data had been entered into the table so the column allows nulls. this is my code:

    InsertCommand=" INSERT INTO test101(Surname ,Names,Registra tion,Date/Time)VALUES...
    See more | Go to post

  • mercea
    replied to Saving to a database
    in .NET
    hi all,
    thanks a lot for your input. i finally saw the problem. i took out the insert command and the Executenonquery () in the code-behind page and it worked!!...
    See more | Go to post

    Leave a comment:


  • mercea
    replied to Saving to a database
    in .NET
    I'm beginning to suspect that i've missed some fundamental concept here. so i want to review the basics with u if u dont mind:

    -the data can be generated on page1.aspx and saved on page2.aspx right?

    -the insert() method can be placed in the page1.aspx code and it'll save on page2 provided the gridview is configured for the datasource right?

    -can i configure 2 gridviews on seperate pages with 1 datasource?...
    See more | Go to post

    Leave a comment:


  • mercea
    replied to Saving to a database
    in .NET
    CAN U BRING US INTO THE LIGHT? COS THIS DARKNESS IS REALLY THICK :(...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...