What is the 'html-in-font' page called? [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Simple enough question.
What is the 'aspx' or 'ascx' page called? I need the correct term to properly search google or define a question on here that should be fairly simple to answer, but I'm sure I'm not using the correct vocabulary so my question and google searches are not netting me anything.
To be clear, the 'code-behind' page is written in c#, I want to know what the page that would contain HTML and <% %> tags would be called.
I'm asking because another question of mine was answered very poorly and then ignored by everyone else and I think it's because I'm not sure how to name that page correctly. Going round the houses slightly but once I got my terms correct I can move to the next stage of solving my problem.

aspx page is actually the webform page where you define the markup like '<%' or html code. To keep things simple, we get the facility of having a seperate 'code behind' where we can write c# code. However, in aspx (webform) we can also write c# code, i am sure you must be aware of that.
ASCX page is nothing just a User Control page.
I hope i have answered your question. Just for information of whoever reads this post, ASPX is the enhanced version of a classic ASP page whose file extension used to be 'asp'. So when microsoft introduced ASP.NET they needed something that would reflect the advancement. So they named their page ASP+. As the windows doesn't allow a + sign as a file extension, they tilted the '+' sign and made it 'x'. This is how ASPX was derived.

I've always refered to the page as the "markup" page is that what you are after?

Related

Url Mapping with asp.net [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm creating a site, and i need to have my urls mapped . I want to avoid losing css during mapping. I want something like this..
http://www.vitagamer.net/Game.aspx?id=12
to
http://www.vitagamer.net/games/this-is-a-game-name/
now I've been thinking about the following algorithm..
receive the requested url..
break into parts, and search database for id associated with "this-is-a-game-name".
serve the http://www.vitagamer.net/game.aspx?id=12 page
I've been looking on the web but i'm confused. How do I do the mapping?
how many ways are there?
is there a difference between rewriting and mapping?
Update
I also need to add hyperlinks to my pages that are shown like
http://www.vitagamer.net/games/gamename/
should I just do things with strings? or there's a more efficient way.
As you seem to be on Asp.Net WebForms, I would suggest writing a HttpModule to catch the incoming requests and rewrite the URLs.
This is a duplicate question and I've found my suggested answer as the second one here: ASP.NET URL Rewriting
You should look into Microsoft.AspNet.FriendlyUrls to easily use routing and get "friendly urls" or "extensionless urls" for ASP.Net Web Forms.
Here's a primer from Scott Hanselman
IIS 7 has support for URL Rewrite, you can use IIS interface to manage URL(s):
http://www.iis.net/downloads/microsoft/url-rewrite

ASP.NET MVC Template built in with Visual Studio [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
does anyone know awesome templates for Visual Studio integration. I have found some here http://mvccontribgallery.codeplex.com/, but they are dead. I would like get the same for free or for money.
Thank you.
Here http://pixelsinspired.com/ is only one application template, but it looks that the rest is coming soon. Ready to go designer templates with CSS/HTML and basic application utils like logging and etc.
Depending what you're building with ASP.NET, you could always use a basic HTML theme, and cut out the middle part, make a master page and views. If there's re-usable elements, break them down into partials.
Assuming you're not using some CMS software, you'll probably be needing to customize the views to match data coming from your controllers.
One of the advantages of ASP.NET MVC vs WebForms is that's much closer to other templating languages. It wouldn't be that bad to convert an erb,twig or smarty template to ASP.NET. I'm guessing that most of what you're really looking for is the markup and CSS.

Why is System.Windows.Forms.MessageBox not working in my ASP.NET Application? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to use a MessageBox to display a yes/no question, however it is not working. If they are any alternatives on opening a dialog box, please let me know.
Maybe the fact that it is a codebehind file makes a difference?
Maybe the fact that it is a codebehind file makes a difference?
Yes it does. If you could display a Windows Forms MessageBox from an ASP.NET codebehind file, it would at best be displayed on the server, which isn't much use.
You need a javascript alert, or if you want to be more modern a jqueryui dialog or similar. Google if you need more details.
System.Windows.Forms.MessagBox
class will not show a messagebox in an asp.net application. You would need to write a javascript function. Check out the following link to raise various types of messageboxes.
http://www.codeproject.com/KB/miscctrl/PopUp_Window_With_Buttons.aspx

How to read a specific number from a HTML page [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
for example , if I wanted to set the Index value from this page:
http://ca.finance.yahoo.com/q;_ylt=Agfc5O8HHTlOLgX.q6V4HEtyzJpG;_ylu=X3oDMTFkdnZqMHBkBHBvcwMyBHNlYwN5ZmlNYXJrZXRTdW1tYXJ5RnJvbnRwYWdlBHNsawNzcHRzeA--?s=^GSPTSE
to a variable, how can I do that??
I am VERY NEW to programming, I would really appreciate if you explained every line.
My point isnt to get it done, I want to understand it.
Thank you very much in advance!
If you look at the source code of the web page, you find that the index number is within a span tag which has a unique id: <span id="yfs_l10_^gsptse">13,702.33</span>.
This means that you can scrape the page and then single out that individual tag.
You need to start by connecting to the host and downloading the page. The way in which you do this depends on which language you're using. There are plenty of tutorials around - just search for "[language] web scraping".
Then you need to create a Document Object Model from the html source code - again, this depends on the language, it's easy in some and difficult in others. Once you've done that, simply search for the tag with an id of yfs_l10_^gsptse and grab the content.
Hope that helps - obviously there's a lot I haven't said, but it depends what language you want to use.

how to use Thick box to asp.net web site [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hello friends I m new for this thick box so some one can help me ...........
Thickbox, or any other jQuery or MooTools based pop-up is JavaScript based and hence runs client side. Because of that it needs to sit in the HTML element of your page (this is the bit in the source view of Visual Studio), as opposed to the server side c# code in the .cs file. The fact that you're building the site with asp.net is irrelevant.
I know as you say its little bit difficult to work with c# and source code of asp.net but yesterday i just try to do that and hope fully its work very nicely and thanks for your reply and
if I want to use shadow (Opening the Image in zoom view) effect for the my image gallery web site then what is the next procedure for that in Javascript

Categories