Thanks for the code example. I'll have to learn more about these repeaters. I seemed to have fixed my problem in this bizarre way:
I though I'd try putting in a conventional html table of 2 columns and 1 row within the TableHeaderCell containing the label and textbox in question. I did...
Because then I'd be posting here asking why my html and repeater don't work. But seriously, if you'd be so kind to post a detailed code snippet that can reproduce my functionality, then I'd be happy to try it. I should mention that I need vertical lines separating the columns. The reason I...
I have an ASP:Table with 3 columns and 2 rows. In each cell a number displays. It's important that the numbers are vertically and horizontally aligned with each other. In the left column for both rows I also place a short label of 5 characters describing what that row is. My problem is that...
Thanks very much for your response, I tied it, but I'm getting 2 errors on it when I type it in the code-behind. One error is on "datagridviewrowtype". Since C# is case sensitive, I did change it to "DataGridViewRowType", but I'm still getting the error (a red squiggly line underlines the...
I may have tried doing that, but no matter what I try, I get the error, "Object reference not set to an instance of an object". So I guess what I really need is a specific C# code snippet, because I'm new to this and not really sure about the specific coding.
By the way, the whole reason I...
When I use instead:
RangeValidator rv = GridView1.Rows[e.NewEditIndex].FindControl("RangeValidator1");
A red squiggly line underlines most of the statement, and it gives the error, "Cannot implicity convert type 'System.Web.UI.Control' to 'System.Web.UI.WebControls.RangeValidator' An...
Why can't I type something like this in the page_load event:
<code>RangeValidator1.MaximumValue = "10";</code>
It refused to find the word "RangeValidator1" in the intellisense. I've seen other similar examples posted, so it is supposed to work, but it doesn't for me.
<code>...
Here is how I translated your VB code into C#. The "Rows" has a squiggly red line under it, and when I hover the mouse over it, it gives this error - "Non-invocable member 'System.Web.UI.WebControls.GridView.Rows' cannot be used like a method". Here is the code
protected void...
I'm not really sure what you mean by "Here you will get the Control". That's exactly what I'm asking about - I need specific code - I need specifics. I tried the following in the GridView1_RowDataBound, thinking maybe this is what you were referring to, but it still gives a "Object reference...
PLEASE NOTE BEFORE RESPONDING: The central point of my question is how to transfer other GridView column values to the MaximumValue and MinimumValue. IT IS NOT about validating dates, or about assigning any sort of literals to the MaximumValue and MinimumValue.
Like many people, I'm trying to...
Is there a way to permanently specify for a particular document which pages will print and which pages will not print? I'm not talking about when you're actually printing it - I'm talking about whenever anyone prints the document. For example, if the document is 20 pages long, but when it is...
When I compile the following Access 2003 project, I get this error on the "Rs!" portion of the "rs!.NextID". The error is:
Type declaration character does not match declared data type
I want to point out that NextId in the testTable is defined as an Int
The code portion is:
Dim...
I'm so glad you responded and mentioned subforms. I learned a little about them, and dug around for the right syntax, and came up with something that works. For the example I presented, it would be:
Forms!frmSample!frmSampleSub.Form.FinanceChargeAmount.Visible = False
Yes, there is a subform - it works in a mirrored fashion to the original - but I'm new at this and don't really understand it well enough to "rephrase" it. I've actually presented a simplified example to illustrate the basic problem - I need to change the property of one control when the...
Some information I can add is that this is an Access 2003 project - it has an extension of .adp. When I right-click the frmExample, and click Design View, I see a form with a grey band that says "Form Header" Below that, there is a grey band that says "Detail". Below that is a grey band that...
I want to correct something about my last post. I'm not talking about referencing a control on a diffent form, I'm talking about referencing a control on a different SECTION of the same form. Detail0 and Detail1 are names of sections on the form frmExample. I've tried the following syntax...
I'm working with packaged software where there the form I'll call frmExample consists of 2 headers and 2 details, called Header0, Header1, Detail1, Detail0. The CustomerID field on Detail1 is bound to the tblCustomer table, and the FinanceChargeAmount field on Detail0 is bound to the tblInvoice...
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.