Menu
  • HOME
  • TAGS

Remember selection from Dropdown menu in Webmatrix

razor,webmatrix,asp.net-webpages

I figured it out. It is the strangest thing, in one of my comments I had the following <!--The user's input.....--> After I removed the ' from the word user's, everything worked as needed.

Why does this var REQUEST [“name”] method always return null?

asp.net,razor,null,request,webmatrix

Modify the enctype of your form to application/x-www-form-urlencoded (or delete it).

Orchard 1.8 Getting 404 Not Found Error - Deployed via Web Matrix

orchardcms,webmatrix,permission-denied,file-not-found

Solved it myself. It seems I had to add full permissions to every single folder in Orchard Root (even Core, Config, bin etc...) not only the mentioned 4 ones. If you googled yourself and you stumble accross this try that out. I'm currently removing some of the permissions again step-by-step...

Cant Search SQL DB from Front End

html,sql,webmatrix

Your problem deals with the WHERE clause of the sql SELECT statement: SQL WHERE Clause. The WHERE clause accepts many comparison operator, but always you must specify the column to search and use the OR operator to chain many search conditions. Another problem is that the = operator searches for...

ASP.NET Web Pages (Razor) change html code if condition is true not working

c#,asp.net,razor,webmatrix,asp.net-webpages

You can also try this <li>@Html.Raw(active=="test" ?"<a href='?log' id='button'>TEST</a>" : "<a href='?test' id='button'>TEST</a>")</li> The point is Razor always encodes output, you need to tell it not to do it using Html.Raw() helper...

Where should I save databases created in WebMatrix for them to work with my website that is not developed within the same program?

mysql,sql,database,webmatrix

It can. It is just a "best" practice to save items in "standard" folders, making it easier for other developers to find things when they work on the project. You can attach any of the database (if sql) to a engine on your machine, etc.

foreach into a table

razor,webmatrix

So a friend explain me and it worked this is what we get: We had to create a class. public class Equipamento { public Equipamento() { // // TODO: Add constructor logic here // } public string Nome { get; set; } public string Serial { get; set; } public...

Is there a canonical way to save an existing site as a template in WebMatrix?

webmatrix,webmatrix-3

WebMatrix site templates are Web Deploy Packages. I've written about how to create one for WebMatrix here: Creating A Custom Template For WebMatrix. You can get some more detail on Web Deploy Packages for the IIS site here: http://www.iis.net/learn/develop/windows-web-application-gallery/package-an-application-for-the-windows-web-application-gallery

Cannot start WebMatrix with Administrator privileges at StartUp

startup,webmatrix,administrator

Actually method number 2 is working. However, the GUI of WebMatrix is not showing up.

Manually deploying Umbraco website on IIS - dashboard, js and css not working

iis,iis-7,umbraco,webmatrix,umbraco7

Umbraco needs to run in Full Trust mode. Make sure that your IIS is configured for Full Trust. On Features View --> .NET Trust Levels --> Full (internal)...

WebMatrix.WebData.WebSecurity with MS Access database

webmatrix,asp.net-webpages

the message is very clear , the file is not exist in the path ! did you check file's path?

Insert statement with Output Clause

c#,sql,sql-server,webmatrix

As I saidDatabase.Execute method returns the count of records affected by the SQL statement. So you were inserting one row and getting 1 as a result. The Execute method is used to perform non-query commands on a database, such as the SQL Drop, Create, Delete, Update, and Insert commands. https://msdn.microsoft.com/en-us/library/webmatrix.data.database.execute(v=vs.111).aspx...

Web Deploy 3.5 Install Error - #2738

wordpress,dll,vbscript,windows-7-x64,webmatrix

So, I discovered a solution to this issue that hasn't been covered well online, so I'm posting it here. A steadfast solution to resolving this error if running Windows 7 64-bit OS: Open your registry editor Start -> Search -> Type "regedit" In the editor, click on: HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\Wow6432Node\CLSID{B54F3741-5B07-11cf-A4B0-00AA004A55E8}\InprocServer32 Check the...

Webmatrix Database Helper in MVC Applications

c#,asp.net,asp.net-mvc,database,webmatrix

The Database helper is a simple wrapper around ADO.NET. As such, in theory it should be more performant than using Entity Framework (assuming your queries are well written) but the main downside is that the result of Database helper methods are dynamic types which are resolved at run time, so...

C# Get MAX value

c#,webmatrix

photoso would return a collection of data to your. To get one object, use its name in the Collection. Just like accessing an object in Array or List using its Index number. You code is as photoso - 6 WebMatrix.Data.DynamicRecord and Int Try this code instead var photoso = db.QueryValue("SELECT...

Is it possible to download an sdf umbraco database from Azure and convert it to Azure SQL

database,azure,umbraco,webmatrix,umbraco7

In the end i created a new umbraco project using webmatrix, created a new template site with an sql database and executed the sql query from the old sdf. database in that database, then I migrated it to azure with few modifications regarding clustered keys and it worked

Using HttpContext in a C# function

c#,asp.net,razor,webmatrix

A minor change in code worked for me instead of calling argument HttpContext context in the function added new variable as var currentContext = HttpContext.Current code was like: public static void Upload(string fileSavePath) // Removed (HttpContext context) { var currentContext = HttpContext.Current; /* Continue code from here */ } Thanks...

Setting up Outgoing Email settings in Webmatrix

email,razor,webmatrix

On the line WebMail.SmtpServer = "stmp.gmail.com"; should it be "smtp.gmail.com" ?...

WebMatrix: increasing upload_max_filesize in php.ini

php,windows-8.1,webmatrix,iis-express

There should be a PHP folder in the directories you listed above. Inside this directory will be a version number directory. In that directory will be the php.ini. ie PHP\v5.4\php.ini Alternatively create a new php file in webmatrix and add the following line into it: <?php phpinfo(); ?> Run the...

List/Array of dates to be used by jQuery

jquery,asp.net,arrays,razor,webmatrix

If you are looking for dates only then this is what you need to select var getBooked = db.Query("SELECT myDate FROM Property_Availability WHERE PropertyID = @0" , rPropertyId).LoList(); This returns a list of dates. I'm adding sample on how to call your method and get and process this list from...

Update textarea with button click

c#,asp.net,razor,webmatrix

If you don't want to use any client side script, you could try this solution: @{ var dateHeader = DateTime.Now; if (IsPost) { dateHeader = DateTime.Parse(Request["curDate"]); if (Request["submit"] == ">") { dateHeader = dateHeader.AddDays(1); } else if (Request["submit"] == "<") { dateHeader = dateHeader.AddDays(-1); } } } <form action="" method="post"...

Hide Web Page From Public - WebMatrix 3

c#,razor,webmatrix

I agree with Louis, you should get this book here which helped me a ton. http://www.apress.com/9781430257523 The literal answer you are looking for concerns the use of authorization attributes you place above controller actions or controllers themselves. So an action might look like this [Authorize] public ActionResult UserAccount(Guid id){...} By...

Redirect all pages to holding page - Azure Website

asp.net,.htaccess,azure,iis-7.5,webmatrix

You should use an App_Offline.htm file when you take your site offline for maintenance. If you add a file with that name to the root of your Web Pages site, the site will be unloaded by IIS and the content of the page displayed instead. As soon as you remove...

INSERT statement for One to Many relationship

c#,sql,webmatrix

If I understand your question right, you're trying to accomplish two things: Get the gameId of the newly inserted record in Game_Information Use that gameId in the following insert statement to Game_Notes While there are countless ways to do this, using an "output" value would be one suggestion. Something like:...

Howto check if user is part of any roles?

razor,webmatrix

If you're trying to implement the security of your website, then you can read the tutorial provided on the ASP.NET Web Pages official website, they have a well written set of tutorial in their hands. Secondly, the piece of code that you're sharing if(!WebSecurity.IsAuthenticated) Would only check for the LoggedIn...

Is it possible to run classic asp and webpages (webmatrix c#) on the same site?

c#,razor,asp-classic,webmatrix

You can run the two environments on the same site, but, you cannot, at least not easily, share session state between them. It’s not something that I would recommend doing. That said, so long as you don’t need to share the session state between your existing homepage, and the upload...

Enabling jQuery Intellisense inside JavaScript file in Webmatrix

javascript,jquery,intellisense,webmatrix

Usually, in Visual Studio you can use reference directive in the beginning of the file. It will include a script file in the scripting context of the current script file. And IntelliSense will be enabled. Since WebMatrix is microsoft as well, I believe this should work too: /// <reference path="JS/jquery-2.1.0.js"...

Canvas tag is not working in Webmatrix

javascript,html5,canvas,webmatrix

This is not a problem concerning the Web Pages framework and WebMatrix, but the Canvas API. Before to instantiate the drawImage() method the code must wait that the image is loaded. You can accomplish this by using the onload property of the image object as in the example that follows:...

How to fix a PHP website on localhost that shows as a directory and not a website?

php,webmatrix

Rename your PHPPage.php to index.php Only index.php is run automatically instead of showing the dir structure...

What is the difference between Wordpress and Webmatrix

wordpress,webmatrix

WordPress is a standalone Content Management System. WebMatrix is a web development tool which can be used to author PHP files (which is what WordPress uses). You would only do that if you wanted to customise your WordPress system, but most users do not need to do that. You do...