I am trying to create a ASPX page using VS.NET. I notice that when it generates a table or image it uses px instead of percent to set the size property. Is there a way to force VS.NET to use percent?
I am trying to create a ASPX page using VS.NET. I notice that when it generates a table or image it uses px instead of percent to set the size property. Is there a way to force VS.NET to use percent?
1.getting rid of empty statement
Hi, This must be almost the level of Daily WTF but my mind is totally blocked with this one. First, I have a list of interfaces private List<IFlowImplementation> flowImpl; In this list lies interfaces of type IFlowImplementation and IGuidingImplementation. IGuidingImplentation is derived from IFlowImplementation, like this: public interface IGuidingImplementation : IFlowImplementation Now, I have this dumb piece of code: foreach (IFlowImplementation fi in flowImpl) if (fi is IGuidingImplementation) ; else fi.ScrollLeft(); What above code does (and it does it correctly) is, It loops thru a list of interfaces and calls ScrollLeft() on each interface that is not of type IGuidingImplementation. Obviously I want to GET RID of that unnecessary empty statement ";". So folks, how to do it? And remember that one can't use this... foreach (IGuidingImplementation gi in flowImpl) ...because there'll be a run-time casting error when the first non-IGuidingImplementation is reached. Cheers, -pom-
2.Getting rid of stored procedures
3.Getting rid f objects left open by webservice
I have a web service that calls a COM object. When the service is called it leaves copies of the COM object running on the server. Reading through the newsgroup I see tantalizing hints at methods like Close and Dispose but that's all they are. What are they methods /of/? I've so far failed to find any meaningful clues on MSDN either I've tried putting Dispose(); in both the service code and the caller code but to no avail. Can someone tell me the whole of the spell needed to make my unwanted objects go away please? -- Stuart See headers for PGP Key. A lot of money is tainted. It taint yours and it taint mine.
Hello there, I have a problem which has got me really scratching my head trying to figure out what is going on. I have a page enabled for web parts where users can add, remove and edit web parts that I have constructed. The problem lies in removing web controls from the page. When the user clicks on the Close verb for a web part, the control is removed and I now have a blank page - everything appears on the surface to be OK. However, if I put a breakpoint on my web part control in OnInit the method still fires even though the control is no longer present on the page. The page is completely empty, yet the control's code is still firing. If I add a second control then remove it using the Close verb, the OnInit fires twice on my empty page! If I switch the trace on for the page and look at the Control Tree, I can see that my control is present under the web part manager: ctl00$mainContent -ctl00$mainContent$ctl00 -- ctl00$mainContent$WebPartManager1 ---ctl00$mainContent$WebPartManager1$wp182617350GenericWebPart ----ctl00$mainContent$WebPartManager1$wp182617350GenericWebPart $wp66237375usercontrols_kpistatussummary_ascx Can anyone shed any light as to what is happening here? When the user closes a control I want it to completely vanish from the page until such time as they add another instance from the catalog. Why does my control's code still fire when it is no longer present/visible on the page? Potentially useful facts: I have my own PersonalizationProvider class but this is calling to the standard SQL server tables and sprocs. I have subclassed the WebPartPartManager but have only added a couple of custom properties. I have sub-classed the WebPartZone in order to control which verbs are displayed etc Other than this problem everything else seems to work just fine. Many thanks in advance for any insight into what is going on here. Steve Camsell XXXX@XXXXX.COM
5.Getting rid of error message
I have the following validation code which is working well besides if I I don't select a summary level I will get the error then when I select one I go to the next page. When I hit the back button I have the error message please select summary level again. How do I get rid of that or is there another way I can do radion button validation? Dim strMessage As String If RadioBtnAll.Checked = False And RadioBtnRib.Checked = False And RadioBtnDib.Checked = False And RadioBtnSpouse.Checked = False Then strMessage = "Please Select Report" End If If RadioBtnNat.Checked = False And RadioBtnRgn.Checked = False And RadioBtnArea.Checked = False And RadioBtnDoc.Checked = False Then strMessage = "Please Select Summary Level" End If Dim strScript As String = "<script language=JavaScript>" strScript += "alert(""" & strMessage & """);" strScript += "</script>" If (Not Page.IsStartupScriptRegistered("clientScript")) Then End If Page.RegisterStartupScript("clientScript", strScript) End Sub
6. Getting Rid Of Validation Warning Caused By Title Attribute In Web
Users browsing this forum: No registered users and 56 guest