Modify ASP Literals With "Code Behind " In .net
Mar 31, 2010
I have a form which will display general data about a branch. Once you select contacts - then the form will display specific into about that branch. I am trying to add a phone number display to the page, but am having a hard time.
[Code]...
View 1 Replies
ADVERTISEMENT
Apr 27, 2011
Is it possible to modify or add code or module into a windows application after deployment?
View 5 Replies
Sep 21, 2009
I've seen this great example of serial communication in VB.NET[URL]..I try to use it in a project I am working on but somethings are not clear to me.1: Now the send and received data is shown in one RichTextBox but I would like to split this into two RichTextBoxes (RtbSend and RtbReceived).It is unclear to me how and were data is assigned to the RichTextBox?
2. the received data is shown in the Richtextbox as one long line, I would like to get a new line for every send message.So for example: I I send "test" four times, I would like to see:The example describes that "comPort_DataReceived" is executed when data is waiting in the buffer. Where can I see the eventhandler responsible for this? How does it know data is waiting?The problem is this kind of coding is a bit to difficult for me. I want to understand the code before I implement it into my project. I understand most of the code but this is unclear to me.
View 10 Replies
Sep 22, 2011
mostly the data inside the datatable is always typed by ourselves, while in this case, i want the computer itself do caculate or whatever and then input in this table and finally the chart will get the data inside the table and then draw the line automatically.is there any sample codes for me to know....(Above is just a simple idea, actually my project is to record the time spent in 2 status(working and idle) and then do the database table. but the GUI should look similar to the image above)
View 5 Replies
Dec 6, 2009
Is it possible? Self modifying codes based on users choices.
View 3 Replies
Apr 2, 2011
When debugging a program and then we take it to a line breakpoint,then I want to modify the code again.but could not and such message appears in the image which I attach.What can we edit code program at the time of the process of debugging.This can be done in visual basic 6 ide?
View 2 Replies
Apr 15, 2010
How can I modify the below code to get a result as it is in the vb6 [code]...
View 9 Replies
May 15, 2012
Let say I have the following classes[code]...
If I wanted to say, alter the code definition of the automatic property X (at runtime, perhaps in Sub New), such that I could throw the PropertyChanged event
View 2 Replies
Apr 10, 2008
modify the VB6 code to VS 2008 for delete command?
View 11 Replies
Feb 23, 2012
I've written a for loop to generate several new text boxes and numericUpDowns when the application is run.
The text boxes / numericUpDowns are generated with a 2-dimensional array. My question is: How do I handle when the text boxes / numericUpDowns are modified?
If you would like the code, just request it and I'll add it here.
View 1 Replies
Sep 6, 2009
I got the below code from Deborah Kurata one of the msdn moderator on her webpage. Her code is to save the form size at runtime but i would like to modify it to save the buttons which i have dragged and drop. I tried to modify the code but i tend to when i put the Dim theButton = DirectCast(sender, Button) under the form load method. It put there cannot cast object. something like that.
Public Class Form1
Dim tm As New Timer
Dim Index As Integer = 0[code].................
View 1 Replies
Aug 22, 2011
code:
<span>Public Structure UUID
Public Data1 As Long
Public Data2 As Integer
Public Data3 As Integer
Private m_Data4() As Byte
[Code]...
View 1 Replies
Jul 3, 2010
SELECT ContactID, FirstName, LastName, Male, Female, Email, Address
FROM Contact
WHERE (FirstName LIKE @FirstName + '%')
The above query works and returns values on first names that begin with whatever item I type in a text box.
How can I modify that code to search for items containing specified characters instead of just searching for items that begin with the specified characters. I would still need to use a wildcard because it is a search field. see below for an example
For example can I query the FirstName column to display people who's name contain the letters "an" in that order a before n but anywhere within the word e.g.
- Anna
- Jane
- Samantha
View 7 Replies
May 29, 2011
modify code to insert the data to MS SQL and save changes when click save button for the second time?
View 14 Replies
Jul 13, 2009
I did the following
Imports System.Data
Imports System.data.OleDb
Public Class Form1
Dim con As OleDb[code].....
By this i can fetch only one row(the last row) of the access....how to modify the above code to fetch all the rows starting from the begining from the database..........
View 9 Replies
Jul 28, 2009
I have a class called Profile that has some simple properties and then it can have a collection of ProfileItem that again has some simple properties and then it can have a collection of ProfileItem (RECURSION). Now I am trying to generated a very simple save function using XML Literals that come with VB.NET (3.5).
[Code]....
View 1 Replies
Sep 2, 2009
is there a way to enable IntelliSense for XML literals in VB9 (VS 2008)?The ideal source of IntelliSense is an XSD document, but I can use anything else format to do it.
View 2 Replies
Oct 2, 2010
Is it possible to use variables like <%=person.LastName %> in XML string this way?
XElement letters = new XElement("Letters");
XElement xperson = XElement.Parse("<Table><Row><Cell><Text>
<Segment>Dear <%=person.Title%> <%=person.FirstName%> <%=person.LastName%>,
[Code]....
If it's possible, it would be a lifesaver since I can't use XElement and XAttribute to add the nodes manually. We have multiple templates and they frequently change (edit on the fly).
If this is not doable, can you think of another way so that I can use templates for the XML?
[URL]
View 1 Replies
Feb 26, 2012
How do I use character literals in VB?I get error for following code:
op as Char
op = '+'
[code].....
View 1 Replies
Aug 30, 2010
I am using XML Literals and Linq to XML to read/write data to an external system.[code]The client now wants to put the url in a parameter table so the table can change to point to a test server or a real server. I assume that I cannot put a variable in my Imports statement.So how to I access the correct URL from a variable?url...
View 13 Replies
Dec 7, 2009
I'm using the following function to brighten up color values (it's a lambda in my code, but that shouldn't make a differende):
Function ReduceDistanceTo255(ByVal i As Byte) As Byte
Return i + (255 - i) 2
End Function
It won't compile, since the compiler interprets 255 and 2 as integers rather than bytes, making the result of type Integer. Unfortunately, there is no Byte type character, so I cannot just write 255B or something like that.There are a few obvious workarounds to the problem:
Function ReduceDistanceTo255(ByVal i As Byte) As Byte
Return i + (CByte(255) - i) CByte(2)
End Function
and
Function ReduceDistanceTo255(ByVal i As Byte) As Byte
Return CByte(i + (255 - i) 2)
End Function
[code]....
The first one is just plain ugly and hard to read, because every literal needs to be CByted. The second one performs calculations in integers and then converts the result to Byte, which is OK, but not as elegant as a pure-Byte operation. The third workaround doesn't require CBytes, but it's drawbacks are obvious.
View 3 Replies
Jul 26, 2010
In VB.NET I can easily embed strings into XML literals using <xml><%= "my string" %></xml>. How can I embed an XElement instance? I know I can use methods on the XElement, XNode, etc classes, but I'd like to do it in the XML literals if possible.
View 2 Replies
Nov 6, 2009
I am constructing some XML using XML literals. I have a function which returns an XElement.
Function RootElementFormattingFunction() as XElement
Return <Root Data="foo"/>
End Function
In reality it is a bit more complicated than that, but it is called from several places. Now I have linq sequence which generates a set of nodes which I want to make children of the XElement returns
[Code]...
View 1 Replies
May 3, 2011
I'm trying to use the builtin XML literals feature to create/read xml files using my own schemas, but I don't see a way to cast an abstract XElement from a base type to a more derived type.The schema/xml below shows in general what I'm working with, but using XML literals only allows me to use the base type in the IDE, so the xml below is treated as a collection of elements of the base type, instead one of the base type and one of the derived type.
<schema targetNamespace="Test" xmlns="Test">
<xs:complexType name="Base" abstract="true">
<xs:attribute name="Id" type="xs:int">
[code]....
View 1 Replies
Jul 16, 2009
Is there any other way of removing a specific tag other than looping through every tag and checking a certain value? I would assume this could become of timely process if there are many tags.
[Code]...
View 3 Replies
Jun 5, 2009
As basic as this is, it took me a few minutes to figure out, so wanted to share with the rest of the community to avoid anyone else from wasting their time.
I am attempting to generate the following XML string using VB.NET XML Literals
<Books>
<Book Name="The First Book" />
<Book Name="The Second Book" />
</Books>
[Code]....
But the compiler is complaining about the quotes that are supposed to surround the attribute value. I tried using single quotes, two double quotes, nothing works.
View 1 Replies
May 4, 2009
My problem is that I want to include control structures in the embedded XML. Specifically, I want to include or exclude an entire element (not just its contents) based on a boolean expression. The question extends to other control structures as well though.
I'd expect the <% %> syntax to support inling of code but that doesn't seem to function in VB.net's implementation (as opposed to the <%= %> for inlining the result of an evaluated expression, which does).
Here's some very simple code by way of example only.
Public Class Foo
Private bar As String = Nothing
Private baz As String = Nothing
[code]....
I'd much prefer to use the format of getXMLBad() if possible. In this short example it doesn't seem critical, but in much larger examples, the inlining of the logic is more readable and maintainable than the "assembly" style in getXML(). This especially true when the logic is in the middle of large block of static XML and when coding to a very strict or complex schemas.I'd be interested in the capability to extend this to Looping constructs as well.
View 1 Replies
Mar 23, 2012
Currently am working on a project that requires me to create some XML for use with a graphing plugin. I'm using XML literals and LINQ to SQL as follows
Dim x As XElement = _
<chart caption='Aantal aanvragen' xAxisName='Dag' yAxisName='Aantal'>
<%= From d In dailies Select _
[code].....
View 1 Replies
Nov 22, 2011
Dim task As XElement = <task>
<body>body</body>
<optional><%= myVar %></optional>
[code].....
View 1 Replies
Sep 2, 2009
I have a masked textbox on my form for a phone number. I want to store its value in my Database without the literals as the database field for that phone is only 10 characters long. How do I store this value in the database field without any literals.
View 3 Replies