by kkikta
13. April 2008 03:49
In the past year I have become a huge fan of source control my personal fav is probably subversion but I am working with Surround SCM which is good but I wouldn't recommend it for open source. In any case it has this nice GUI that all of a sudden stopped working. After a week or two I finally said screw this I need to figure out whats wrong since Surround does not have a web front end.
I started my normal process to fix these types of problems like repair, uninstall, reinstall and that didn't work. So I found that Surround works on Java so I uninstalled/reinstalled Java. Nothing seemed to be working finally I started just randomly checking out processes that were running on my rig. I noticed one process I didn't recognize
CLI.exe first I thought that looks harmless enough probably some .NET process but I googled and found that its an ATI Configuration app or something. I had recently replaced the ATI video card on this rig with a gforce so I thought well while im uninstalling I might as well hit this too since its not needed anymore. After I reboot and load up Surround... it WORKS! #!$FV#QAWF@$ What the hell!!!!1
Now I don't rant much online but this really pissed me off to know that I endured 2 weeks because some damn ATI driver for a video card that wasn't even installed was causing the problem. In any case hopefully this might help some else should they end up in my particular situation. Cheers. ;P
ef82cc3d-0c18-4898-a218-2dcda18e3930|0|.0
Tags:
General
by kkikta
1. April 2008 20:19
Today I was working with a few items in an edit template and ran into a situation where I needed to disable one of the controls based on information in another control. I quickly found that this can't really be done with an onload or in the design. I eventualy tied a function to the OnDataBinding and was able to disable a text box. The reasoning for this is that the EditTemplate is not available until the control is in "Edit" mode.
Ex.
<asp:DataList id="dlTest" onEditCommand="dlTest_EditCommand" onUpdateCommand="dlTest_UpdateCommand">
<EditTemplate>
<asp:HiddenField id="hdfEditCritera" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TestCritera") %>' />
<asp:TextBox ID="txtEditTest" OnDataBinding="TextBox_Enabled" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "TestData") %>' />
</EditTemplate>
<ItemTemplate>
<asp:Lable ID="lblText" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "TestData") %>' />
<asp:LinkButton id="lnkEdit" runat="server" CommandName="Edit" text="Edit" />
</ItemTemplate>
</asp:DataList>
<%
protected void TextBox_Enabled(object sender, EventArgs e)
{
DataListItem EditItem = dlTest.Items[dlTest.EditItemIndex];
if (((HiddenField)EditItem.FindControl("hdfEditCritera")).Value.StartsWith("Test", StringComparison.InvariantCultureIgnoreCase))
((TextBox)EditItem.FindControl("txtEditTest")).Enabled = true;
else
((TextBox)EditItem.FindControl("txtEditTest")).Enabled = false;
}
%>
In this example if the hidden field started with "test" then the textbox would be enabled if not the its disabled.
17f1f9d6-5186-431a-a7ba-e6a8cee08ca5|0|.0
Tags:
.NET