Refer To StaticResource In Plain XAML? (without Markup Extension)

Jul 4, 2010

I am setting a validation rule on a series of textboxes. I'd rather not create a new instance of my custom validation rule for each TextBox.[code]

View 1 Replies


ADVERTISEMENT

.net - WPF Markup Extension Not Working?

Apr 14, 2011

I'm trying to create a VB.Net Markup Extension per this blog post but in vb.net

<Application x:Class="Application"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

[Code]....

View 2 Replies

Xaml Writer How To Remove Xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

Sep 17, 2009

I need to use the xaml writer to convert in string some controls. What I get is a string like this for example

[code]...

View 1 Replies

Enums Via Markup In .NET?

Oct 4, 2011

I have an enum and a usercontrol, both in the same assembly (a plain .NET 4 web site). In the Constants class:public Enum CrudOperations Add Edit Delete. This controls the columns in a GridView on a UserControl via a property on the UserControl

[Code]...

In C#, I've specified the columns to show with markup as Mode="Edit,Delete", but in VB.NET, this does nothing. The only way I can get anything to show is with the codebehind, but if on the containing page I use userGrid.Mode = CrudOperations.Edit And CrudOperations.Delete, I get all the columns (there's also a delete column), but userGrid.Mode = CrudOperations.Edit Or CrudOperations.Delete shows nothing.

View 1 Replies

Get The PDF Markup Along With The Text?

Mar 15, 2012

I am writing an application that has to read and interpret data stored in some PDF files. The reading part is done but I am only able to get a dump of all the words on a page and not the format of the words. What I mean is that if I have to extract a table, I am getting the numbers in the table but not the markup which defines the table.Further, there is some formatting used which displays a few of these numbers within parentheses (meaning that those numbers are negative) but the parentheses themselves are not part of the text. Hence, I am not able to distinguish between positive and negative numbers present in the PDF table!

How do you get the PDF markup along with the text? Is a PDF similar in structure to an XML with tags used to markup tables etc.? If not, then, is there a resource which describes the salient features of the PDF DOM?I am using VBA and the Acrobat library (AcroExch etc.)

View 1 Replies

Use An Extension Method Instead Of Just Creating Non-extension Sub Or Function?

Dec 3, 2009

Why would I use an extension method instead of just creating non-extension sub or function?

For ex, I could have an extension function called IsNullOrEmptyOrAllSpaces on String, which does a check as its name implies. Or I can write a stand alone function that does the same thing. Other than having the extension show up in Intellisense, is there any advantage? Is a call to the extension quicker/more efficient than a call to a regular function?

View 8 Replies

ASP.NET Usercontrol Property Value Does Not Run Markup

Apr 27, 2011

Well i have a usercontrol with a property "ClientScript" and in the aspx file where i use the usercontrol i set the value to [code]the problem here is that the is litterly passed to the property and not parsed first and replaced by the ClientID..I had the same clientscript applied to a buttons OnClientClick and there it worked...Must i apply some sort of attribute to the property to get this working? [code] i know that im saving to a local variable and that it will be cleared on reload and so on but thats not the problem here.

View 1 Replies

MessageBox With Markup In Forms?

May 3, 2012

I want to show a MessageBox in a VB.NET application that has special markup for its text. More specifically, I want to display an unordered list. I tried doing it by wrapping the text in HTML tags (which Java Swing supports for example, if I'm not mistaken) and working with <ul> and <li>. This did how to do it without creating a completely custom messagebox class?

View 1 Replies

.net - Markup Page With A Bunch Of Checkboxes?

Jun 18, 2012

In my classic asp app, I have a markup page with a bunch of checkboxes. The checkbox control ID is bscv.Once a user checks a box and clicks submit, the value is processed on the next page called next.asp.Based on the value of the checked box, I display the correct dropdown.I use the following code on next.asp to display the correct dropdown.

If bsvc = "master" Then
' only master was checked
' "If the user checks only master checkbox, ...txtmaster with 2 options... is displayed."
%>
<select id="txtmaster" name="txtmaster">
<option value="">-Select a service-</option>
<option value="1">1</option>

[Code]...

View 2 Replies

Forms :: RichTextBox Markup Formatting?

Jul 29, 2009

I am trying to bind a RichTextBox to data from an XML file where text within a paragraph may be tagged with formatting tags. As an example the text may look like this:"The size of the area is 5000 m<superscript>2</superscript>".Text may also contain other formatting tags such as <bold> or <italic>:"The quick brown fox <bold>jumps</bold> over the <italic>lazy</italic> dog".

View 5 Replies

Using Markup Tags To Become Bold In Preview?

Apr 20, 2011

The way markup works for those that are unfamiliar is similar to html. For example, in HTML, <strong> is bold and </strong> closes the tag. In Markup, [b] is bold and [/b] closes the tag. Similar yet different.My form consists of 1 Richtextbox named RichTextBox1 and WebBrowser named WebBrowser1.In order to use HTML I use the following code:

Private Sub RichTextBox1_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles RichTextBox1.TextChanged
WebBrowser1.DocumentText = RichTextBox1.Text
End Sub

View 2 Replies

Asp.net Mvc - Why Does Normal Markup Inside An @Using Html.BeginForm Need An @

Apr 19, 2012

When I make an HTML form for MVC 3/VB with the Razor engine, I would expect to be able to do it like this:

@Using Html.BeginForm("Action", "Controller")
<fieldset>
@* Other form code and values *@
</fieldset>
End Using

But if I do that I get "BC32035: Attribute specifier is not a complete statement. Use a line continuation to apply the attribute to the following statement." I need to add an @ character before the opening tag to avoid this error.

View 3 Replies

HTML Color - Markup Generator / Editor

Apr 21, 2011

With my recent new project with HTML/Markup generator/editor, I have run into a roadblock. Basically here is my code for replacing markup with HTML. The way this works is that the webbrowser has the same text as RTB1. Since the Webbrowser supports HTML, it automatically converts to the style that is specified in RTB1. [Code]

View 4 Replies

Include Dynamic Markup In Inline XML Without It Being Encoded?

Aug 13, 2009

I would like to create a HtmlHelper function for a specific kind of dropdown that appears on many pages in my app. I'm basically just trying to add some decoration around the existing DropDownList function, but it's being encoded.[code]....

but I'd rather make use of VB's inline XML. How do I get the results of DropDownList to not be encoded?

View 1 Replies

VB Extension Property Instead Of Extension Method

Mar 16, 2012

I saw this post and I want to know if this is possible in VB. So like extension method, do extension properties exists in VB.Net? Here I've read they do, but cannot find any examples.

View 3 Replies

VS 2008 Hide Extension When It's Not Used As An Extension?

Dec 9, 2011

If i have an extension ... say...

vb
<System.Runtime.CompilerServices.Extension()> _
Public Sub Invert(ByVal b As Bitmap)

is there any way of hiding this from inteli-sense if it is not used as an extension?so that pressing ctl+space only triggers it if you go "bitmap.Inve.." rather than prompting on "Inve..."?

View 2 Replies

Markup Code Inside Custom Server Control?

Dec 29, 2010

I'm new to custom server controls and I'm hoping to use them to build various 'modules' for different sites I build to cut down on duplicate code.

I'm familiar with custom user controls in which I can create an .ascx & .ascx.vb file which can then be imported into an .aspx page and used freely.

However, with custom server controls I cannot find a way of using markup/html code. Is this possible at all or must all code be created programmatically?

View 1 Replies

Output Data To Text File In Asp. Markup Code?

Sep 27, 2010

I downloaded some sample code which includes a database query within the markup code. It makes a query to the database and displays the results of the web form and I would like to divert the output to a text file and I am not sure how to do this?Can this be done from here or would it just be easier to code it in the source and make a new connection to the database?

Sample code:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringIP %>"
DeleteCommand="DELETE FROM [ip-to-country] WHERE [ID] = ?" InsertCommand="INSERT INTO [ip-to-country] ([ID], [BeginingIP], [EndingIP], [TwoCountryCode], [ThreeCountryCode], [CountryName]) VALUES (?, ?, ?, ?, ?, ?)"

[code]....

View 1 Replies

Returning Plain Old XML With WCF?

Nov 15, 2011

How can this be so difficult and why? Returning simple XML with no Name Spaces and an XML decaration. Creating the XML using XML Writer is easily done and if I output it to a file then great. How on earth can you return the contents via WCF. Using an XML Element is no good as you loose the XML declaration and using a string is no good as the output is wrapped up in a <string> element. Can't return an XML Document as it can't be serialised.I know that there are many posts on this site, but none answer the question. I am using VB.NET (boy I wish I had the time to learn C#) and I cannot get the Data Contract to work either even using IXmlSerializer. An example of the output I need to send back via WCF

View 4 Replies

Asp.net - Error: EntitySet 'Building' That Was Specified In Page Markup Does Not Exist On The Container

Apr 4, 2011

I've setup an ItemTeplate like so in a GridView:

<asp:TemplateField HeaderText="Building">
<ItemTemplate>
<asp:Label

[Code].....

I'm receiving the error:

EntitySet 'Building' that was specified in page markup does not exist on the Container.

There is definitely a Building entity in the pbu_housingEntities?

View 1 Replies

Trigger A Rebind Of Gridview From Javascript Or JQuery On Markup Page?

Sep 11, 2009

Is there a way to trigger a GridView rebind from an html markup page using jQuery or jscript?

I have an ActiveX download control which passes all events via jscript.

So, a have a download complete event on the markup page but not the code behind.

Here is the main aspx page:<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">

<script type="text/javascript" src="aurigmaiuembed.js"></script>
<script type="text/javascript">
function FileDownloader_DownloadStep(Step){
//The file list is going to be downloaded - "2 = About to Start"
if (Step == 2){

[Code]...

View 1 Replies

.net - Process Plain Text File

Apr 12, 2012

I'm trying to use VB.NET to process a very large plain text file (2 GB). It is a database and has a field delimiter of SOH and a record delimiter of STX.

I want to separate the fields and records of the file.

I would normally read each line of a text file and then use the split function to separate out the fields. I can't use this approach as there isn't always a delimiter on every line.

Is there any way to read a file until STX is found (rather than one line at a time)?

View 2 Replies

C# - Generate HTML From A Plain Text?

Apr 24, 2012

I have a desktop application displaying text in a read only RichTextbox component. Some words in the text needs to be highlighted depending on a text analyze that was previously executed.Now I need to create a web version of this application.I know there's a couple of Rich Text Editors available but I would like to know if there's a library or a simple way to generate an properly tagged HTML string from a plain text and a list of word to highlight?

View 2 Replies

Cant Use Better Qualifier As One Intended To Be Used Is A Plain ObjectStore Only

Jul 1, 2009

I have a solution in which I have included three projects, say X Y Z..Now one of the projects X refers to the namespaces A.B.ObjectStore and another namespace ObjectStore..Now when the ObjectStore namespace is used the compiler thinks it is A.B.objectStore.I cant use a better qualifier as the one intended to be used is a plain ObjectStore only.

View 1 Replies

Change The Plain-looking Arrows In The RowHeader

Feb 15, 2012

I have a DataGrid table like this: [URL] How could I change the plain-looking arrows in the RowHeader into row number (Like 1,2,3...)?

View 4 Replies

Converting The Xml Format Into Plain Text

Jun 14, 2011

I have a program, that allows writers to save there quotes. The quotes are saved in a xml file. Everything works as it should but when I load a saved quote it still comes up in xml format. I need to load a saved quote in a plain text format and I also want to be able to give the output file print functionality. I was thinking of making the output file a html file which opens up in a web browser, this of course already has print functionality, is this at all possible.

[Code]...

View 4 Replies

Display XML Correctly When Converting RSS To Plain XML?

Jun 8, 2012

So basically, I have this RSS feed in hand. I converted the RSS into XmlDocument by the following:

Public Function GroveHallFromRss() As String
Dim webClient As System.Net.WebClient = New System.Net.WebClient()
Dim ourUrl As String = "http://abc.123.org/RSSSyndicator.aspx?type=N&

[Code]....

So I'm wondering how could I display the converted RSS as any other XML file with the nodes styled. (but not rendered and displayed by browser as RSS, but only styled XML)

View 2 Replies

Send Plain Text Via Sockets In .NET

Sep 9, 2011

I'm writing a replacement for an old library we use at the office to communicate with a rather clumsy and old custom-made C++ framework that takes requests via sockets in order to communicate with a bunch of other systems. The problem is that it will only take plain text messages containing a string which must be formatted in a very specific way.The problem I'm facing is that I haven't found so far a way of sending plain text through the socket. The Send method of the socket will only take byte arrays, and while the listening point receives the data, it gets there completely scrambled, and there's no way I can mess with that in order to convert the byte array back to plain text. I need to be able to send plain text, not byte arrays.[code]

View 1 Replies

Convert UnicodeEncoding Output Into Plain String?

May 11, 2012

i'm currently converting a delphi code into .net they have this encryption in their database I have decrypted but the problem is the output is in byte array.

Private Function EnDeCrypt(ByVal Value As String) As String
Dim transformed = Encoding.Unicode.GetBytes(Value).Select( _

[code]....

Result : º»¯³¶½ = e d p l i b(unprintable chars) my problem is how to convert the output to string?

View 1 Replies

Plain Text Emails Arrive Blank

Feb 7, 2012

I am using Visual Studio 2008 Pro to create a web application in Visual Basic. This app takes the information filled in by a user and then sends it to various people. Some of these people get the email in HTML, the rest in plain text. However, whenever I use the code below to send the plain text email, when the email arrives in my Outlook 2010 Inbox it is completely blank. If I leave the code alone and change only .IsBodyHTML from False to True, it works (it sends the email formatted for HTML).[code]Also, if I create an entirely new web app, using only this code, it sends the email correctly as plain text.

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved