473,699 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making a custom PageParser


I want to make my own PageParser, to implement some functionality
currently missing from standard one, i.e.:

* Code blocks which are marked with % in first line

% foreach( int c in ... )
% {

% }

* ability to define page methods with code blocks

% void display_s()
% {
<table>
....
</table>
% }

Does anybody know about any sample implementation or anything that
could help me?
Thanks in advance.

--
Misha Bergal
MetaCommunicati ons Engineering
Nov 19 '05 #1
2 2169
Hi Misha,

We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 19 '05 #2
Hi Misha,

Thanks for posting here.
As for the customized PageParser you mentioned, I'm afraid this is
unavailable in the current or the coming 2.0 version of ASP.NET framework.
As for the default PageParser in asp.net it is derived from the
System.Web.UI.T emplateControlP arser , however, this from the MSDN document
this class(abstract) is not intended to be used directly from our own code.
So I think ASP.NET haven't provide the customzie interface for pageparser.

In fact, this is a common behavior in all the common dynamic web content
techniques such as JSP, PHP, ASP... each one will has their own fixed page
code syntax. If customized syntax are allowed , mixed page content may make
the runtime difficult to compile the page source and processing the page
instance.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1546
by: Jony Joe | last post by:
Dear All; I am now making a deployment package using the .net deployment setup project. It is a desktop application that its solution contains 7 projects that generate DLLs and EXEs (executables). The solution generates 2 EXEs that use the other generated Dlls. I used the custom actions method to make the actions after taking some
7
3952
by: hplloyd | last post by:
i have a windows app which has an app.config file in the solution. The config file holds information such as connection string details. When I create a setup project and include the primary output of my solution into it then it all installs perfectly.... My issue is this... I may need to amend the app.config file which I do in notepad on the client machine, however when I need to upgrade the application I remove the program from the...
5
524
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
3
1539
by: Hope Paka | last post by:
I want to use my custom url extension instead of .aspx. I can achieve this by writing a custom handler that implements the IHttpHandlerFactory. In the GetHandler method of the IHttpHandlerFactory i want to construct a Page class instance and load my other controls to it and return the page instance. This is what .net framework does. There is a small difference what i am thinking and the .net framework has done. .Net Framework calls the...
2
1879
by: Charlie | last post by:
Hi: When I drag a my custom server control from the toolbox to design surface it appears invisible except for little green arrow. I can change the width and fill color of control in prop sheet so I can see it at design time, but this interferes with its rendering at runtime. I have seen custom server controls that appear like this at design time... . How do you get it to do this? Thanks, Charlie
2
1308
by: Dennis | last post by:
I have a control that inheirts from "Panel". I want to prevent the user from having access to the MoueUp event. I tried making a sub in my control that handles MyBase.MouseUp but still this event shows up as an event the user can use. Is there anyway to prevent users of this control from getting access to events such as MouseUp. Thanks. -- Dennis in Houston
1
1894
by: Mutley | last post by:
Hi, I have written an HttpHandler to process page requests for a custom file extension. The handler gets called as expected and after searching the web for examples I have used a method called GetCompiledPageInstance from the PageParser class for getting the web page within the ProcessRequest method of the custom handler. I then ran a performance test requesting the custom page mutliple times (the custom file for the test was an aspx page...
8
1788
by: Hansen | last post by:
Hi I have a form with multiple labels and textboxes and listboxes that need to be made visible and not visible when buttons are clicked. Is there anyway of grouping them together so that I have less lines of code instead of 100's of lines stating: LblA.Visible = True LblB.Visible = True LblC.Visible = True
5
7304
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class SyncHttpHandler: IHttpHandler
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7750
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.