I solved the problem...thoug h it feels like somewhat of a workaround.
I never did get the RowCommand event to fire.
When I converted the GridView's content into LinkButtons I added a JavaScript call:
[code=vbnet]
Private Sub BindLinkButtons (ByVal sender As Object, ByVal e As EventArgs)
Dim lnkBtn As LinkButton = CType(sender, LinkButton)
Dim row As GridViewRow = CType(lnkBtn.Na mingContainer,...
User Profile
Collapse
-
This really isn't a "Row Command" that I'm issuing
I'm issuing a LinkButton to mimic what I would call a "Cell Command"......
Each Cell contains a LinkButton (not ButtonFields... )
Seeing as the RowCommand Event is not fired when I click these link buttons, I'm still wondering how to capture the click events for each of these link buttons.
There's a Lot of them:
There...Leave a comment:
-
-
I've had something similar happen once before...when I had given more than one ListItem the same Value property in a DropDownList... .the SelectedIndexCh anged never fired in that case.
I don't know why it would seem to be the same problem with LinkButtons though, each of them has a unique name, the CommandName and the Arguments may be duplicated...bu t the are individual LinkButtons...s o I'm not sure it's the same problem.
...Leave a comment:
-
It doesn't hit a break point after the Page_Load break point.
[code=asp]
<asp:GridView ID="MyGV" runat="server" CellPadding="4"
BorderColor="Bl ack" BorderWidth="1" GridLines="both "
ForeColor="#333 333" PagerSettings-Position=top
allowpaging=tru e PageSize=10 PagerSettings-Mode=NumericFir stLast...Leave a comment:
-
-
ASP VB.NET: GridView Dynamic Link Buttons Event Handling
Hi there!
I have generated a GridView that looks something like:
SportName| CompanyNameX |CompanyNameY |CompanyNameZ
Hockey.....| Shipping------------ |Accounting-------- |Shipping------------
BaseBall...| Receiving-----------|Shipping------------|Accounting---------
Etc............ | Accounting----------|Receiving---------- |Receiving-----------
Where there are an unknown number of... -
I saw the thread that you just closed.
It still doesn't help me.
I learned that the "position:absol ute" does work relative to it's parent container but only if you don't set the top, bottom, left, or right css attributes.
I'm still experiencing a problem with the "covering" <div> not becoming height:100% of the containing <div>...it only goes to the bottom of the browser and when...Leave a comment:
-
Using <div> to cover page contents
I'm using Ajax to help make my webpage appear to be smoother.
When a control has submitted, I would like to prevent any controls within that control from resubmitting until the request has completed.
Because my forum has many buttons on it, it would take a long time to disable each one upon submitting the forum (using JavaScript).
So instead, I plan on using a <div> that will "shield"... -
Thanks a lot for your help!
I didn't realize that you could set the hyperlink to be block style :D
I'd use images except that I'm trying to match a desktop application's look and feel....and they aren't using images :)
Thanks again!
-LilOlMe...Leave a comment:
-
Haha!
Good stuff :)
I don't think this this is really a How-To but it was nice to find :)Leave a comment:
-
Link Buttons
Hi there!
I'm developing an ASP.NET application.
I'm making use of a LinkButton Object to post my forum to the server.
The LinkButton is converted into a hyperlink once it is rendered as HTML for the browser.
Instead of displaying simple hyperlinks (to change my languages), I'd like to use <div> tags that represent buttons.
In order to extend the hyperlink so that the whole... -
I can't believe I over looked the inline setting!
I learned my lesson with inline elements months ago.
>>blush<<
Sometimes I can just be so...
Blind
Thanks for your help!
Removing the inline style setting resolved the problem.
-LilOlMeLeave a comment:
-
-
Table Width = 100% In FireFox Not Working
Hi there!
I'm developing a "scrollable table".
At first I started using CSS. It worked pretty well until I found a bug that happens when placing this table into a tabbing control...
So I decided to develop 2 tables...one for the header information and one for the body. I simply placed the body into a <div> with style="overflow :auto".
I've set the header table... -
It was for a Public Class though.....
Oh well...if anyone else runs into this problem, hopefully my solution can work for them too....Leave a comment:
-
From what I understand there is a Default namespace created and everything should work fine.
However, there is something preventing my web objects from referring to one another.
That is why I created a namespace and put all of my web objects into it.
I'm still not sure why I couldn't refer to the other classes in my code.
I'm also unsure of why, when I added the namespace, certain classes could...Leave a comment:
-
I don't know why the namespace is different in different classes...but I got around the problem.
What I did was create a MustInherit Class to represent the Web User Control that I needed to refer to. I placed this class in the namespace for the project.
This class is placed in the "App_Code" folder in the project (I noticed that the classes in this folder were always added to the namespace).
...Leave a comment:
-
Oh thanks a lot Acoder :D
I didn't know there was an Opacity attribute in CSS....
As it turns out, I was removing the element I needed to refer to in my Server Side code...I completely overlooked it because it seemed to be an Ajax/JavaScript problem at the time...(oops)
Thanks for your help!...Leave a comment:
-
Wrapping all elements of .NET project in Namespace
For some reason the aspx web pages and web user controls in my project cannot see one another.
I have gone through most of them and added them to a namespace so that I can refer to my objects in my code...
[code=vbnet]
Namespace MyNamespace
Partial Class MyPage
....
End Class
End Namesapce
[/code]
[code=asp]
<%@ Control Language="VB" AutoEventWireup ="false"...
No activity results to display
Show More
Leave a comment: