Ok, I got it....
A little change was needed "e.Item" instead "RptImages". No wonder it didn't work.
Thanks a lot Jim.
protected void RptImages_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Footer)
{
LinkButton lPrev =...
For this line:
if (e.Item.ItemType.Footer) ....
I got error: "Cannot implicitly convert ...ListItemType to 'bool'" I guess there should be other way to test footer?
Thanks
I have detailsView control which is in Edit mode by default.
Control is bound to SQL table. In the table there is field thumbsize which can only have following three values: 1, 2 or 3
I want to have dropdown which will show the current value of thumbsize field, and I want to be able to change...
GetUserFolder function is returning a value, so protect string... instead of protect void ....
Works great, thank you. I didn't have idea what to google to look for this answer.
Thanks.
How can I include session variable in databinding.
Example:
<asp:ImageButton ID="btnPreview" runat="server" OnCommand="ImagePreview_Command" CommandArgument='<%# Session["UserFolder"] + "images/" + Eval("filename") %>'/>
I would like commandArgument of above image button to be something...
Yes, but how is server supposed to know who you are and what session on the server is bound to your browser at home.
Session ID is stored in the form of cookie on your computer and it is used when you make next request to the server.
When cookies are off, sessions don't work. At least they...
I am a little bit lost here.
If user turn off cookies, then session variables will be lost, and we want be able to pass them trough the pages, because server won't be able to recognize user? Is this right?
From this it follows that the Form Authentications won't work as well. For example...
is it possible to move coordinate system center point and to rotate whole coordinate system?
I would need something like:
newCoordinateSystem(100,100,60)
it would be new coordinate system with center 100, 100, rotated for 60 degrees? I am trying to illustrate what I mean. :-)
Thanks.
Hm, I could swear I tried .text property and I was getting some error. But, now, it's workin fine....
Thanks.
.Value property is doing what I explain earlier.
thanks
I am trying to get a value of a textbox (before textbox is actually updated) using OnKeyUp event.
Here is example
Let's say textbox had initial value: 123
Then I click into the textbox and I would continue typing 4567.
If I would print textbox value (using OnKeyUp) at this point it would have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.