Topics
-
- 2 replies
- 1.2k views
first a little background. over the past year i have slowly been trying to move toward an oop thought on each new project i get. so my understanding isn't complete newbie but pretty far away from what i would call intermediate skills. my question how do things like implementing custom editors or ibindinglist on business objects\collections which i do for sole purpose of making it easier for the ui to interact with the business object. On it's face this would seem to breaking some rules but the business object doesn't need to know anything about the ui\presentation it just proving some nice "plumbing". Therefore, to me it's ok not much different than providing a…
Last reply by barski, -
- 2 replies
- 3.5k views
I have a class which inherits from the PropertyDescriptor Class. I use this, among other things, to alter certain of the attributes of properties at run time. The PropertyDescriptor's Attribute collection is readonly at run time, so you need to create your own propertydescriptors from scratch to do this. If you inherit PropertyDescriptor, you have to override lots of its functions, and in order to return the correct value for each of those functions, I'm holding onto a reference to the original PropertyDescriptor in the custom one. This works, but it seems very duplicative and just wrong, intuitively. When I call MyBase.New I send all the attributes for the new custom pro…
Last reply by rbulph, -
- 1 reply
- 1.4k views
I'm am wanting to login to a website and do some things on the website like check for information and stuff. How would i download things off the website. not like html and blah blah but is there is way to download an image while making the page request to save to the desktop then load it to the form... Its a captcha image and i've tried several things, none have worked yet. I am able to download the image just unable to download the captcha image that matches the one on the page request.
Last reply by MrPaul, -
-
- Administrators
- Leaders
- 7 replies
- 1.8k views
I recently had a rough old time trying to work out why the TimeSpan's Add method wasn't working correctly. I eventually worked out it was because I was having a blonde moment and rather than actually adding a TimeSpan, it returns a new instance with the TimeSpan added. Basically I'm wondering what design decision(s) lean towards making a method work in such a manner? I believe this follows the Factory design pattern? But I just cannot see why it was choosen in this case. To me at least the name of the method seems to imply it will add it to the current instance, not return a new instance with it added. If it was going to behave like this I would have expected a method…
Last reply by MrPaul, -
-
- 1 reply
- 1.9k views
How can I change the text of a textbox in a form of a VB2005 application, By clicking a button in a form of an other VB2005 stand alone application?
Last reply by MrPaul, -
- 1 reply
- 1k views
Hi, I have a script which executes perfectly with not errors, however it simply does not work! Dim cb As New OleDb.OleDbCommandBuilder(TableForm.da) Dim thenewcol As New System.Data.DataColumn thenewcol.ColumnName = nameofcol.Text TableForm.ds.Tables("PeriodicDB").Columns.Add(thenewcol) TableForm.da.Update(TableForm.ds, "PeriodicDB") TableForm.setup() Public Sub setup() ds.Clear() con.ConnectionString = "PROVIDER = Microsoft.Jet.OLEDB.4.0; DATA Source = " + path Try con.Open() Catch ex As Exception lblStatus.Text = "Error!" lblLink.Text = "Details..." …
Last reply by FZelle, -
- 1 reply
- 1.9k views
I get the following error with the following code. Can anyone tell me how to fix it? What file do I give permissions to? My end goal is to print a report that is inside a MS Access file ERROR: Server Error in '/WebApplication1' Application. -------------------------------------------------------------------------------- Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. ASP.NET is not authorized to access the re…
Last reply by Mike_R, -
-
- *Experts*
- 2 replies
- 981 views
Can you use Visual SourceSafe 6.0 with Visual Studio 2005?
Last reply by kcwallace, -
-
- 0 replies
- 1.5k views
How to create MULTIPLE ATTACHMENT? Hi everyone in this forum. I was was creating a user control with a attach file button. I need this button to upload file from user computer. After upload 1 file, the file will display and can be delete. User can click on attach file button to add another file. So how to make this work? Firstly, i can't use <INPUT> to browse the file and upload. Only want to see a button only after click and multiple upload. Can anyone help in this situation? Thanks.
Last reply by MuZee, -
-
- Administrators
- 1 reply
- 1.2k views
Can someone tell me how to use a css to customize the look of a control. Specifically I want to customize a gridview in VS2005
Last reply by PlausiblyDamp, -
-
- 0 replies
- 823 views
Hello, I'm currently forced to work with VS Express (C# + Webdeveloper). Both lack the default project templates which ship with the regular Visual Studio. Is it possible to get these or free third party templates? How am I supposed to use the express edition without having even the webcontrol library template?
Last reply by Malfunction, -
-
- Administrators
- 1 reply
- 905 views
I am working for a company that has a ~100 aspx pages that are all designed using VS2003 (C#). We are considering an upgrade to 2005. From your experience, what potential issues might one face in this migration.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 976 views
Can anyone recommend a good boot camp for MCAD certification? What are your thoughts on boot camps in general? Thanks, Bernie
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.4k views
Hi All, My current web hosting provider does not allow me to assign a subfolder as an application directory for ASP.Net web apps. I have to contact their tech support and have them set the folder that I specify as a web application folder in IIS from their side. They use H-Sphere as their control panel, but their current version doesn't allow user-side changes like this. They have mentioned to me that I could do this through Visual Studio when I publish the app, but I've never come across anything that gives the option of creating a web application folder during the publish procedure. Is this possible, and if so how? It's an inconvenience to have to get ahold …
Last reply by dakota97, -
- 0 replies
- 2.2k views
I've written a bunch of applications that post and recieve information to php scripts sited on an apache server. On some computers I've noticed a dificulty in connecting and recieving any replies back from the php pages. I've used both the following methods and am getting the same result on both of them :- Dim res As String Dim myWebClient As New WebClient myWebClient.Headers.Add("Content-Type", "application/x-www-form-urlencoded") res = System.Text.Encoding.ASCII.GetString(myWebClient.UploadData(URL, GetFunction, System.Text.Encoding.ASCII.GetBytes(DataString))) Return res Dim Res As String Dim My…
Last reply by aidygus, -
- 0 replies
- 1.1k views
I am recieving a error message when I run my application that reads System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLAnchorElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface. at My.UserControls.HTMLView.ExtractControls.ExtractInfoFromToolStrip(HtmlElement element, ToolStrip toolStrip…
Last reply by nigel123, -
-
- Administrators
- 2 replies
- 2k views
Hi, I want to post an XMLHTTPRequest to a server for the screen scrapping purpose. but it always throws an exception . :confused: {"The download of the specified resource has failed.\r\n" } [system.Runtime.InteropServices.COMException]: {System.Runtime.InteropServices.COMException} System.Object: {System.Runtime.InteropServices.COMException} _className: null _COMPlusExceptionCode: -532459699 _exceptionMethod: <undefined value> _exceptionMethodString: null _helpURL: null _HResult: -2146697208 This is the code I have written. MSXML.XMLHTTPRequestClass lobjRequest = new XMLHTTPRequestClass(); string lstrNull = null; object lobjNull =…
Last reply by nilanka_shani, -
-
- 0 replies
- 1.1k views
I have two domain controllers on one domain. Server A is running windows 2k and server B is running windows 2k3. I have transfered the FSMO roles over to server B and plan on down grading server A to a stand alone server. Can I proceed with this plan or are there other factors I need to consider before hand. Thank you.
Last reply by Nic, -
- 0 replies
- 919 views
How can you copy the contents of the PrintDocument which a PrintPreviewDialog contains to the Clipboard?
Last reply by rbulph, -
- 2 replies
- 1.2k views
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. This is the error that I am frequently getting. I am not hosted on a web farm or a cluster it is running on VM Ware but I don't know if that makes a difference. The page I frequently get this error on has many controls including a Multi-View which seems to be more of a pain than it's worth at this point. But that's the way it's done so I will have to stick with it. I get the error only when posting back to switch between views. …
Last reply by scaldwe,
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online