With Windows Presentation Foundation (WPF) you can lay out text on a path, then animate the individual points defining the path and watch the characters bounce around in response.
MSDN Magazine December 2008
View Complete Post
This month Charles Petzold explores techniques for generating 3D text in Windows Presentation Foundation.
MSDN Magazine October 2007
I have a block of XML text I need to show the user (so they can copy/paste the XML from the screen)
I use StringWriter() to make the XML a String but when I use Response.Write(xmlString) I get the following error
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.Details: Error parsing near '<?xml version="1.0" '.
I guess IE does not like rendering XML in the middle of a page?
is there anyway to show the XML data in the middle of my ASPX page?
Many thanks! :)
I need to display some XML in a flow document in read-only mode. Would like to render it with the black, red and blue formatting based on the contents / keywords. I know you can set the foreground color with span elements.
Is there a way to achieve this in a object oriented / dynamic way ? Like you set the content of flow document/paragraph element and it automatically parses the text and sets the foreground color for specific keywords. I am thinking of starting a prototype project with the help of converters - not sure if it can give an extend-able model (for maybe T-SQL someday). May probably have to inherit from flow document and create a custom / user control.
Any thoughts, help or tips would be greatly appreciated.
I get the following error on last line below (working on remote host): 'E:\web\sfcascom\ls_admin/uploads/images/001.JPG' is not a valid virtual path,
Note that the slashes go in different directions
I've tried a number of things but nothing seems to work. Thanks-
Partial Class Protected_imageupload
Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
' Initialize variables
Dim sSavePath As String
Dim sThumbExtension As String
Dim intThumbWidth As Integer
Dim intThumbHeight As Integer
Dim sFilename As String = ""
' Set constant values
'sSavePath = "images/"
sSavePath = Server.MapPath("~/") + "ls_admin/uploads/images/"
sThumbExtension = "_thumb"
intThumbWidth = 160
intThumbHeight = 120
' If file field isn?t empty
If FilUpload.PostedFile IsNot Nothing Then
' Check file size (mustn?t be 0)
Dim myFile As Http
Please let me know is there anything else i can do i really would like use this effect.
P.S all the effect have the same render problem, and i am using ie8 under compatibility mode.
Hi, I'm searching now for hours but couldn't find it.
In my menu i have several buttons which (by a <a href..) should go the a part of an article that is in the same form.
Menu button : What is a database should go to the page default.aspx and in there is an article published. A part of this article is having a piece of text about "what is a database"
Menu button: how to make a query should go to this same article in the same page but then to the part that is have the piece about the query. The next could be an example of what i'm doing:
<ul> <li><a href="default.aspx ?????>what is a database</a></li> <li><a href="default.aspx ?????>what is a query</a></li>
Where my question marks are, there should be a connection to that particular piece of text.In each article part there is an ID="text1" and the second part id="text2"
How shoudl i do that, Should i use a question mark.Please give me some guidance how to structure the <li> statement or a pointer where I can read about it.
I format lines in a .aspx file (source view) the way I can use them, and if I switch to design view or view in browser or debug, the many lines get reformatted to flow all onto one line.
I can't seem to find the correct setting to keep this from happening.
I am hosting my ASP.NET application on a Windows 2003 Server.
To browse to my application one has to type the path :http://serverName/applicationName
I want users to only type applicationName on the web adress area.I believe there is something to do with alias and CNAME on DNS records that can adress this.
Any help on how to go about doing this will be highly appreciated.
I know this is probably a very basic question but how do I keep a column's text values unique in SQL server (ie for a unique username)? The column is not an integer it's varchar(50), and it's not the primary key but I could make it the primary key if recommended.
The front end could handle it; where the user would enter text, it's validated, then a query is done to see if that username is available. If so, then user can decide to choose it and an insert is done, if not they pick a new username and process repeats. With this approach, the responsibility of keeping the value unique solely rests on the front end, nothing on the database side.
Is this the correct way to handle this?
How to set SearchRoot Path in Active Directory in this
Functionality: We have scenario that
1<sup>st</sup> hit one LDAP server with some 'fixed user
name' &' fixed password ' and filter data
with specific User name(which given by user) getting 'User dn'.
After that we hit Next LDAP server based on the 'User
dn' getting from 1<sup>st</sup> server.
(So, in my case 1<sup>st</sup> LDAP
server works like as Load balancing server but functionalitywise it is
hi want to write urdu in text box of my application if anyone has the solution how to do this kindly let me know
Hi i developing multi language website
using Master pages
Page_Load i set the Text property of Button Control from Resource file
Button1.Text = GetLocalResourceObject("Button1")
then in the button click event i cnage the text of the Button control
Button1.Text = GetLocalResourceObject("Button1_new")
but the text doesn't change and no error messgae
what is the problem how to solve this