|
So you need a doughnut picker then.
|
|
|
|
|
Help is not found here,
We all just come here to play.
QA will reply.
--- The Lounge Haku
|
|
|
|
|
What did you just ask?
This is not our task!
Go to the Q & A mate.
A little uglier attempt at a haiku
|
|
|
|
|
As long as you follow the tradition and commit suicide afterwards, it may be as ugly as you wish.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
hahaha, maybe in about 100 years I will consider suicide
|
|
|
|
|
You need to turn it off then back on again.
|
|
|
|
|
Where are you stuck?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
(Edited as I now understand the issues better.)
I have a problem running our RemoteApp from a Windows 7 client, using a non admin user account. It's fine from Windows 8, and its fine if we run it under an admin user account.
Background
Installed remote desktop gateway under Windows Server 2012 R2 on a VirtualBox VM. The server manages a sub-domain under our company domain e.g. megabuck.com so the subdomain is WIN094263478.megabuck.com. (I'm not allowed to mess about with our domain server, for obvious reasons.)
Installed our app on the server PC, and published it as a remote app. I made sure there was an external manifest file to disable virtual store, which otherwise screws our app. Note that our app is a C++ one.
The app can be run remotely (as a remote app) from a Windows 7 client using an admin user account. It fails with a non admin account, as our app tries to create files in the program files folder, but the server prevents this.
Ideas? What is going on? Our only workaround is to set the users group as the owner of the program files installation folder.
modified 11-Nov-14 7:58am.
|
|
|
|
|
how can i send sms using AT commands in php?
|
|
|
|
|
On Windows Server 2012, how do I configure my Remote Desktop Session Host? I want to change the licensing to per device. I can see the session host in the Server Manager when I select my collection, but see no configuration method.
SOLVED: It is damned hard to navigate RD but I finally found the setting. Phew.
modified 7-Nov-14 4:38am.
|
|
|
|
|
hey am from melonstudios.in............am getting few errors for my code pls suggest me code or idea for create a page like
www.retale.in its an example my page should look likethis thats y almost like rid tiles with few categories
|
|
|
|
|
You need to ask a specific question.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Have a go at developing the website yourself using whatever technology you are familiar with, and when you get stuck, then post a specific question here.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|
|
Hi,
I created dropdownlist in my view and controller as below. If ViewBag.CategoryList is null, it is throwing exception. how to handle the exception. Please guide me. Thank you.
<div class="span3">@Html.DropDownListFor(m => m.Category, (IEnumerable<SelectListItem>)ViewBag.CategoryList)</div>
Code is:
DataTable dt = registrationDAO.GetParameters("PSTND");
List<SelectListItem> positions = new List<SelectListItem>();
foreach (DataRow dr in dt.Rows)
{
positions.Add(new SelectListItem { Text = dr["PARAM_VALUE"].ToString() });
}
ViewBag.CategoryList = positions;
|
|
|
|
|
I have a question about validation. I'm a long time Windows developer, and I'm diving into MVC 4.5 now.
Until now I have purposely avoided using error validation attributes because validation doesn't belong in the UI - it belongs in the BL - Where business rules are supposed to be enforced. Requiring a Customer Entity to have a Customer Name is a RULE, so it's validation belongs in the BL.
But a lot of the MVC examples I see have this type of data entry validation in the MVC project's models. It just doesn't sit well with me because you're then forced to maintain validation (AKA business rules) in two places - the UI AND the BL.
When the business rules change (not IF) then you now must recompile TWO layers of the app, not just the BL.
I'm curious what you experienced MVC people have to say on this.
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
I'm not an MVC expert, but I'm diving into it with my employer. I've come across this article[^] and I believe it may be what you're looking for. The validation can be done in the service layer, which can be a separate component, if I'm not mistaken.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
|
|
|
|
|
Hi,
I have been working with MVC since last 4+ yrs.
I not a big fan of Data Annotations and attributes for everything. (It is really cool in many cases but not al least for validations.)
For validations, I use JQuery validations and NOT data annotations.
MVC do not force you to use attributes for validations and you can always avoid it.
JQuery has many good libraries for all kind of validations.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
CODE IN .ASPX.CS FILE :
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.Drawing;
using System.IO;
public partial class Main_frmIndex : System.Web.UI.Page
{
CommonBL BL = new CommonBL();
protected void Page_Load(object sender, EventArgs e)
{
AssignData();
}
private void AssignData()
{
DataSet ds = new DataSet();
ds = BL.GetDataSet("Select top 2 id,Product_Category,Category_id,Prd_Name,Prd_Pack,Prd_Details,Prd_Indication,PackImage,ProductLogo,pId from tbl_Products Inner join tbl_CategoryMaster On tbl_Products.Category_id = tbl_CategoryMaster.pId where tbl_Products.Active= 1 and tbl_Products.DeletedFlag =0 and tbl_CategoryMaster.Active= 1 and tbl_CategoryMaster.DeletedFlag =0 order by tbl_Products.UpdatedDate desc");
StringBuilder strShow = new StringBuilder();
strShow = strShow.AppendLine("<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>");
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
if (i == 0)
{
strShow = strShow.AppendLine("<td width='50%' class='rightline' valign='top' align='left'>");
}
else
{
strShow = strShow.AppendLine("<td width='50%' valign='top' align='left' class='padl10'>");
}
strShow = strShow.AppendLine("<table border='0' width='100%' cellpadding='0' cellspacing='0'>");
strShow = strShow.AppendLine("<tr><td class='subheader vat padt10'>" + ds.Tables[0].Rows[i]["Product_Category"] + "</td></tr>");
strShow = strShow.AppendLine("<tr><td class='padt10'><img src='../Uploads/Products/" + ds.Tables[0].Rows[i]["PackImage"] + "' width='124' height='114' alt='' /></td></tr>");
//strShow = strShow.AppendLine("<tr><td>" + ds.Tables[0].Rows[i]["Prd_Name"] + "<br/>" + ds.Tables[0].Rows[i]["Prd_Details"] + "<br/></td></tr>");
strShow = strShow.AppendLine("<tr><td>" + ds.Tables[0].Rows[i]["Prd_Name"] + "</td></tr>");
strShow = strShow.AppendLine("<tr><td class='padr5 padb15'><a class='more' href='../Main/frmProductDetails.aspx?id=" + ds.Tables[0].Rows[i]["Id"].ToString() + "'>more...</a></td></tr></table></td>");
}
strShow.AppendLine("</tr></table>");
lblShow.InnerHtml = strShow.ToString();
}
}
|
|
|
|
|
|
As mentioned before, all you have to do is view the source of the generated page and you'll see exactly what is happening and then you can fix it.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I'm following an example from a book, and it has this simple css sheet:
body {
.field-validation-error {color:#f00;}
.field-validation-valid {display:none;}
.input-validation-error {border:1px solid #f00; background-color: #fee}
.validation-summary-errors {font-weight: bold; color #f00;}
.validation-summary-valid {display: none;}
}
On the first line, the field-validation-error, if I hover over the starting period, I see the error
"Missing a property name before the colon "(':')" in the "(property) : (value)" declaration"
There's also a squiggly at the end of the line that shows
The block is unclosed; '{' expected
If I remove the line, then the next line gives the same errors.
What am I doing wrong here?
If it's not broken, fix it until it is
modified 3-Nov-14 16:59pm.
|
|
|
|
|
That's not a very good book - you can't nest rules like that. Remove the body { ... } :
.field-validation-error {color:#f00;}
.field-validation-valid {display:none;}
.input-validation-error {border:1px solid #f00; background-color: #fee}
.validation-summary-errors {font-weight: bold; color #f00;}
.validation-summary-valid {display: none;}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That did it.
Thanks
If it's not broken, fix it until it is
|
|
|
|
|
That IS a good book, but the sample isn't for CSS but LESS!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
תפסיק לספר לה' כמה הצרות שלך גדולות, תספר לצרות שלך כמה ה' גדול!
|
|
|
|
|
If it was a good book, it should have made it more obvious that the example wasn't pure CSS.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|