Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Michael Evanchik #1
Datagrids Item Templetes not found by compiler
Basically im using a mutltiline textbox in a datagrid since i cant get
text to wrap in a grid. If i refer to the textbox by id in any vb code
the compiler says the object does not exist. If instead i refer to the
value by the datagrid cell im getting a invalid class error from the
same code i have always used to get values from a cell. Here is the
code i am talking about....
This is my datagrid code
---------------------------------
<Columns>
<asp:EditCommandColumn EditText="" UpdateText=""/>
<asp:BoundColumn DataField="id" HeaderText="id" readonly="true" />
etc etc etc
<asp:TemplateColumn>
<ItemTemplate>
<asp:TextBox id="txt_desc_g" Text='<%# DataBinder.Eval(Container,
"dataitem.job_description") %>' Columns="85" TextMode="MultiLine"
rows="18" Runat="server" visible="True" ></asp:TextBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
If this is an a subroutine
--------------------------------
sub test
txt_desc_g.text = ""
end sub
The compiler tells me txt_desc_g.text doest not exist
In turn i use the code that works fine for non template columns...
-----------------------------
txtstr = e.item.cells(2).controls(0)
tempstr = txtstr.text
Im gettin an error invalid cast?
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Michael Evanchik Guest
-
Dreamweaver Templetes
I am using dreamweaver templetes and i don't want the template tags to be seen outside of dreamweaver. Is it possible to remove the template template... -
"Item not found" error
How do I get around the recordset error "Item not found" due to a field not being listed? I run several queries according to what the user selects,... -
Change style of a single row of the item list of datagrid, based on a field value of current item...
Sorry for the long subject guys, but I don't know how better I can resume the matter... Anyway, I have my datagrid showing items of an order. I... -
Field name is valid, but getting an "Item cannot be found.." error
The field name 'articleid', which is an identity/primary key , is not being recognized in my recordset as I get an " Item cannot be found in the... -
Compiler Error Message: The compiler failed with error code 128.
Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me...



Reply With Quote

