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.
User Profile
Collapse
-
Using "Remember Me Next Time" login control
-
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... -
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. -
I got it eventually. I did it using :
SELECT @pID = cast(SCOPE_IDEN TITY() AS int)
Thanks anyway, cheers !... -
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... -
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...Leave a comment:
-
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 ?...Leave a comment:
-
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....
No activity results to display
Show More
Leave a comment: