We're having a problem combining 'nested files' and excluding files from source control.
We're using code generation to create two partial classes for each entity - MyBusinessObject.vb and MyBusinessObject.Generated.vb
We'd like the "Generated" file to appear as a nested file under the manual...
Is it possible to have my assembly read from a config file other than the one used by the application consuming my assembly (without reading it like a regular xml file)? I know in the 1.1 framework you could do this by creating a separate appDomain, but I am hoping that this sort of thing is a...
I have an interface and a class that implements that interface. I want to include XML comments, but where should I put them? On the interface, the class that implements it, or both? Also, I want to include comments on the exceptions that will be thrown. Since those would depend on how the...
My manager wants us to log any operation on any table in our database. The users have access to the database via a web application. The web application logs into the database with a hard coded username rather than the username of the user using the web application. What are some options for...
Are cross-site scripting attacks only a threat against visitors to your site, or could a crafty script kiddie actually cause a problem on the server (like deleting or reading files)?
Adam
http://adameslinger.blogspot.com/
How can I start a .Net application and pass it an object? The object could be anything, a dataset, an xml document, a business object, etc.
Some ideas...
I could serialize the object to a file and have the launching application read from it.
I could post the object to a message queue and have...
On a routine basis, I need to copy upwards of 10,000 records matching certain criteria from one table to three others. My concern is that users could insert rows matching the criteria during one of the operations - causing the subsequent operations to copy a different number of records.
Right...
I'd like to create my own control that inherits from a textbox and has a default value for the Text property. However, I'd also like the developer using my control to be able to override my default value in HTML. The problem is that the text inserted by the developer into the Text property is...
Is there a difference in performance between the following two queries? I'm wondering if using nested joins has any benefit. If so, can anyone explain why? Thanks.
Query 1
Select
p.ProjectName,
d.DeliverableName,
t.TaskName
From
tblProjects p
Inner Join
tblDeliverables d...
I use CSS extensively in my applications, but I still do content layout the old-school way by using tables. I know CSS is probably better suited for this, but I can do it quickly using tables and I never have the time to learn how to use CSS to replace tables (for layout purposes, anyway).
Are...
How would I get a string representation of the value stored in a property's DefaultValue() attribute?
<DefaultValue("MyItem")> _
Public Property ColumnLabel() As String
Get
Return _colLabel
End Get
Set(ByVal Value As String)
_colLabel = Value
End Set
End Property
Adam...
I'm on a project where I noticed that the database has a table with a primary key that always consists of 13 digits. Right now it is a float data type. Would it be more efficient to convert it to a char(13)?
Adam
Whenever I get an unhandled exception in my ASP.NET app, it shows the error in the browser instead of breaking into the Visual Studio.Net 2003 debugger. What do I need to change?
Thanks,
Adam
I thought it was possible to pass parameters to a user control, but I can't find any examples. Am I wrong about this? By parameters, I mean:<uc1:MyControl id="MyControlId" runat="server">
<parameter name="MyFirstParameter" value="val1">
<parameter name="MySecondParameter" value="val2">...
I'm trying to implement the URL rewriting technique found here to basically rewrite a URL from this:
http://localhost/MyProj/TypeXXX/Page.aspx
to this:
http://localhost/MyProj/Page.aspx?type=TypeXXX
It worked for a little bit, but now I get this error that points to my web.config file...
I'm creating an application that allows a user to validate an XML document and update the document where the errors occur. First I load the XML document into a TreeView. Then I validate then document against a schema, which gives me a bunch of XmlSchemaException objects.
The problem is this -...
If I dynamically create a form field with a reference to a JS object in an expando property, what would be the best way to add it to the page? Obviously I can't use document.write() because the JS object isn't a string. Right now I'm creating a temporary SPAN object, adding my custom element...
I stumbled across this link and thought some of you might find it interesting. It talks about how to make an object inherit from another object. For example, I can make a "Developer" object inherit all the properties and methods of the more generic "Person" object. <script>
Person =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.