gridview has selection enabled so .cells is null I have found temporery solution for my problem. If gridview column has property visible set to false it wont be databinded.
GridView1.Columns.visible = true;
Now GridView1.SelectedRow.Cells.Text have value. I'm still waiting for any other ideas.
+ You can access from the datasource which is bound to the gridview, it means you need to repopulate the datasource.
+ You can persist the value bound to the invisible bound field somewhere else so that you can access it later, for example in the DataKeys collection, in an extra column which you can make it invisible at the client side with the style settings.
+ Keep using the current column, but instead of using the Visible property to hide the column, you can set the style to make it invisible.
i have a little problem, i deployed an application "web services" in my provider. this application should get data from a data base already deployed also. the problem is that i can't get the data, the connexion to the web services goes just fine but i have an error telling me that the data are in format HTML and not XML.
Often when you receive an error indicating the response is in HTML format and not in XML format you are receiving a server error. A server error will be returned in HTML format because it doesn't know or care that you are trying to reach a web service. These errors are often service unavailable, access denied, or file not fount type of errors. Can you use a debugger or an HTTP sniffer to get the exact data that is being returned?
I create datalist,
what mistake this code,
Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton).Attributes.Add("onMouseOver", "window.open('webform1.aspx');"))
I have a custom control with two properties and one overrided method render .. whenever i assign DataTable to one property i preserves it but when the render function is called its value is null
here is my code
IN HTML i m embedding it as <MyBar:ucMenu ID="UcMenu1" runat="server" />
and in code behind
protected ucMenu MyBar = new ucMenu();
on top of class
can you please tell me why my datatable refernce to null in render even i have ref it to datatable from property
I m setting through code behind and value is not null when i set it to XMLDataSource property. It assigns the value correctly because i have checked through debugging. I think there is some problem with declaring the control .. isnt it?
R A M
Last Visit: 31-Dec-99 19:00 Last Update: 1-Dec-23 13:43