I have this code where if the value is 1 then format the out put to yes else no.
When I run my page the datagrid just displays the numerical values 1 and 2. When I run in debug mode my breakpoint at ** doesn't run. So I can't figure out what is happening...
** protected void MyDataGrid_Item DataBound(objec t sender, DataGridItemEve ntArgs e)
{
if (e.Item.ItemTyp e == ListItemType.It em)
{
Label...
User Profile
Collapse
-
Get values from datagrid in edit mode
I have a datagrid where I get 2 values in edit mode and pass these to a function in another class.
I seem to be passing a NULL value to my Function.
I figureed this out: this link helped..
http://www.dotnetspider.com/qa/Question32587.aspx... -
thanks everyone, with a combination of Right$ and String.Split, I have got what I need. Txs again. -
vb.net: strip path
I have a path like this: /Folder/1/
How can I strip away all the / and Folder to leave me with just 1 ? -
Loop to create new folder
I need to create a new folder every time the upload folder has 10 files uploaded to it. So when folder1 has 10 files, folder2 is created and becomes the upload folder, and when it has 10 files uploaded to it folder3 is created and so on.....
Problem is that my code creates all the next folders all at once. I need it to create the next folder when it is required. i.e. when the previous folder has reached 10 files.
If... -
I know the Protected Sub AllPendingImage s_UpdateCommand works because when I remove the PAGING code the code fires and the DB gets updated.
When I re-add the paging code and enter edit mode on my page, I think that the id value gets changed to _Page (don't know why) and the update command doesn't fire because the value is not an integer. I have wrapped the code in a Try/Catch but that doesn't throw up any errors - so I'm stuck. Any ideas would...Leave a comment:
-
gridview vertically
can a gridview be designed to show data vertically rather than horizontally? I'm not having much luck putting columns into rows without creating bad HTML. -
Datalist with Edit template and custom paging
Is it possible to have a Datalist with an Edit mode (<EditItemTempl ate />) and custom paging?
I can get <EditItemTempla te> mode and custom paging to work seperately but not together. I can delete a row from the datalist, but once I go into edit mode the UpdateCommand fails. Is this possible because I am going around in circles with postback or not Postback?
No activity results to display
Show More
Leave a comment: