User Profile

Collapse

Profile Sidebar

Collapse
obs
obs
Last Activity: Jan 15 '08, 09:47 AM
Joined: Oct 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • obs
    started a topic Using "Remember Me Next Time" login control
    in .NET

    Using "Remember Me Next Time" login control

    Hi all.

    I have a page with a login control.

    I was wondering what's the way to use the remember me login control.

    I know it has something to do with cookies, but since I am a total noobie, I don't know how to do it.

    Please help, thanks in advance.
    See more | Go to post

  • obs
    started a topic Datalist items get the same value
    in .NET

    Datalist items get the same value

    Hi.
    I'm using the following code to change a hyperlink attributes of a hyperlink which is located in an itemtemplate of a datalist.

    When I debug it the attributes are changed and everything is fine, but the end result is that all of the datalist items have the same hyperlink attributes.
    Somehow it goes to the last iteration of the for loop, and uses the values that are generated there.
    What am I missing ? I've...
    See more | Go to post

  • obs
    started a topic Binding last row in table to a label
    in .NET

    Binding last row in table to a label

    Hi all.

    I have a label on my page and I want to bind it to a field in a table. The catch is that I want to bind it to the last row in the table.
    I think I can use the custom binding, but I don't know how to bind to the last row. Any Suggestions ?

    p.s. The page is tied to an SqlDataSource that retrieves the data from the above table.

    Thanks in advance.
    See more | Go to post

  • obs
    replied to Update a table using data in another table
    I got it eventually. I did it using :

    SELECT @pID = cast(SCOPE_IDEN TITY() AS int)

    Thanks anyway, cheers !...
    See more | Go to post

    Leave a comment:


  • obs
    started a topic Update a table using data in another table

    Update a table using data in another table

    Hi all.
    I have two tables:

    Pages consists of an id field: PageId, and some other fields
    NewsTemplate consists of another id field: PageId , and some other fields

    I want to update PageId in NewsTemplate to get the value of the largest PageId in Pages, so I use the following code :

    SELECT MAX(PageId) AS maxPageId FROM Pages

    UPDATE NewsTemplate SET PageId = maxPageId WHERE (PageId...
    See more | Go to post

  • obs
    replied to Button in a GridView row
    in .NET
    Dear Nathan,
    thanks for the reply, but how can I use your code to perform certain actions when the button is clicked ?
    The "btnAdd" ID is the same for all the buttons in all the rows, since I'm using a template.
    I need is to use a certain Select property (like SelectedIndex) to retrieve the row of the clicked button, and to put all the code in the button on click event.
    But the following code, which I put in...
    See more | Go to post

    Leave a comment:


  • obs
    replied to Button in a GridView row
    in .NET
    the buttons do not have a unique id. it is set as a template, where each button has the same id : "addButton" . how do I give a button in a gridview row a unique id ? is it even possible ?...
    See more | Go to post

    Leave a comment:


  • obs
    started a topic Button in a GridView row
    in .NET

    Button in a GridView row

    Hi.
    I have read a previous post in the subject, but could not find an answer, so my question is how do I find the SelectedIndex of a row in a gridview row where there is a command button ?

    The set up is as follows :

    I have a gridview with a title column and a button column (template column). I want the button click event to do something when the title column in the row of the button that is clicked is not empty....
    See more | Go to post
No activity results to display
Show More
Working...