vb.net

ASP.NET VB.NET how do i modify HTML at runtime

Can anyone tell me how to modify HTML at runtime please? A user has pasted a table from Word into a text editor control (FCKEditor) The editor control automatically converts to HTML however I want to change the HTML before saving to database. So, I want to make this <table width="600" height=100> into this <table> before saving ...

ASP.NET MVC 2.0 Unused Model Property being called when posting a product to the server?

i have my auto-generated linq to sql classes, and i extend this class using partial classing (instead of using inheritance), and i have properties that that i've put in later which are not part of the database model and should not be. these are things like "FinalPrice" and "DisplayFinalPrice" - in the dbase, there is only RetailPrice and...

How to determine minimum height and width requirements for the area where devexpress xtracharts pie will draw itself?

How to determine minimum height and width requirements for the area where devexpress xtracharts pie will draw itself? More info here: http://community.devexpress.com/forums/t/88775.aspx ...

download binary file from database

I have a binary file in database. How i can make a download of this file in header of page when a button is clicked Any ideas?? ...

get the installed path of a vb.net application

Hi guys... I'm nearly ready to distribute my vb.net application. I have several picturebox files which are loaded currently from c:/temp I need to change this directory to one that will be OK to use when the user installs it to their PC. My question is how can I do this? Is there a way to get the installation path, then use that withi...

Viewing underlying XML response when using xml-rpc.net

Is there a way to view the actual underlying xml data that the cookcomputing.xmlrpc.net library returns? From what I can tell, it is only exposed via the xmlrpcstruct that the object creates based on the xml. However, I am getting XmlRpcInvalidXmlRpcException exceptions, and am trying to understand the problem. I am using an https c...

ASP.NET MVC 2.0: Using Partial Classing or Inheritance on Database/Object Model?

I ask this because i'm using Partial classing to extend my db model, and in doing so some snags i've run into using inheritance and also snags i've run into declaring my db model in another class as a property and just using it like that ie: Public Property DBModelClass as DBModelClassType - however, doign direct partial classing has wo...

Does HttpWebRequest automatically take care of certificate validation?

I'm using an HttpWebRequest object to access a web service via an HTTP POST. Part of the requirement is that I: Verify that the URL in the certificate matches the URL I'm posting to Verify that the certificate is valid and trusted Verify that the certificate has not expired Does HttpWebRequest automatically handle that for me? I'd as...

Memory leak with WPF & ItemsControl (VB.NET)

I have an ItemsControl that uses a DataTemplate to display properties in my customClass that implements INotifyPropertyChanged... Pretty straightforward... Some items in the DataTemplate use CommandBindings (such as buttons), and a few have some code-behind (yuck). When I empty the ItemsControl and set all instances of customClass =...

VB.NET Interfaces

I am not quite clear as to why or when to use Interfaces. Can someone post a complete, simple and small example of an Interface using VB.NET in a Console Application. How is it extensible? ...

VB.net WebBrowser and AJAX List Options

I'm writing a VB.net program for a website that uses the AJAX Lits options http://www.ajaxdaddy.com/demo-dhtml-autocomplete.html Whats more is that the website has used additional arguments in the function that i'm not exactly sure what they are calling, and there a trigger that executes an action that must be click, tabbing and returni...

MSMQ - Message Queue Abstraction and Pattern

Hi All, Let me define the problem first and why a messagequeue has been chosen. I have a datalayer that will be transactional and EXTREMELY insert heavy and rather then attempt to deal with these issues when they occur I am hoping to implement my application from the ground up with this in mind. I have decided to tackle this problem b...

how to populate different records in row of a Grid?

Helo, I have a two Grid where I have to display some records from the table. The table consists of employee names ,manager names and their comments. Now on the first gird I am fetching data of employee names. Now on the second grid I have to display data of manager names and their comments. The data is on the same table. On show button o...

Read Resources from a dll

Hi, I've two VB 2008 projects - one is class library project and another is winform project. In class library project, I've defined some strings in the project resources (project properties > Resources tab). I build that class library project and get the dll from debug folder and added up as a reference in my winforms project. Now, I...

Better way to Handle error

I recently migrated a VB6 app to VB.Net. Entire VB6 dependency are removed . And the code was working fine just for a single module mean to say like for WinApp it is working fine. Now my requirement has been changed, now the same class will be accessed by multiple application , it might a Windows App, Web App or a web service. So I am ...

Determine the real type of file vb.net

I have a asp.net vb.net app, with a upload file control, when i upload the file i can get the type of file the extension : .(extension), But if the user change the extension how i can get the real type of file? Any ideas?? ...

Sharepoint 2007: How to create a content page usinf webservices

Hello to all, I'm trying to create a new content page in sharepoint using the sharepoint webservices. Does anyone achived that ? Many thanks ...

Hosting Silverlight App in VB.Net WinForm application

Hi , I have a silverlight app and winform app. My requirement changed to Display the Silverlight app inside th WinForm app developed in VB.Net on a form. Is there workaround for the same. ...

Strong name validation failed on VB.NET Assembly

I have a VB.Net 1.1 application works just fine after compiling in Visual Studio. However, I want to use ILMerge to combine all the referenced assemblies into a single executable just to make it easier to move around. After I send it through ILMerge and try to run it I get the error "Strong name validation failed for assembly.exe" .....

Can anybody help me with the syntax of setters and getters?

i have set mName, mContact and memail as my variables.. and i want to use them in setter and getters.. can any body help me doing so? only want to know the syntax.. regards.. ...