How do I post the dynamically created partial views to the controller?
My Models Class wrapper:
namespace Diabuddies.DAL
{
public class Exer_Main
{
public Exer_Workout Workout { get; set; }
public Exer_Routine Routine { get; set; }
public Exer_Set Set { get; set...
I want to read data from the XML response from API i.e wunderground API for weather forecasting. I have used the below code to read it.
HttpWebRequest GoogleRequest;
HttpWebResponse GoogleResponse = null;
XmlDocument GoogleXMLdoc = null;
try
{
GoogleRequest = (HttpWebRequ...
I have a question about architecture, can I post here?
I have been a project with three layers: Model, BLL, DAL. And, for exemple, I have customerBLL,ProductBLL, EmploeeBLL inside BLL project
and so on, imagining that in the future I'll have many BLL classes inside BLL project and I decide use only one classe in another project, for exemple, customerBLL.
It's correct creating one project BLL for each group of subject?
For example, inside ProductBLL layer, I'll have ProductPriceBLL, ProductStockBLL classes, and so on.
I am binding jqgrid with dynamic column binding but by following this am not getting SortColumn or sidx.
But when i tried with static column binding it is working fine.
my code for jqgrid binding is
jQuery("#dataList").jqGrid({
url: gridDataUrl,
datatype: "json",
colNames...
I use this to put the question and the answers in the respective array, string[][] pergresp = File.ReadLines(@"C:\Users\Maxim\Desktop\Projecto COMP!\l1.txt").Select(s => s.Split('|')).ToArray();
The question is in possition [0,0], and the answers are in [0,1 to 0,4]
so, what you need to do is count how many questions you have, so what you'd want to do is count how many elements the first dimension of your array has
this is the content of lvl1 txt: Qual e a capital do Brasil? || Rio de Janeiro || Brasilia || Sao Paulo || Curitibia || Brasilia || Quantas sao as Tartarugas Ninja? || Quatro || Tres || Cinco || Duas || Quatro || Como se chama o estadio do Sporting Clube Portugal? || Sporting Arena || Esperanca XXI || Alvalade XXI || Leao XXI || Alvalade XXI ||
(now, you initialize it like string[][], but you use it like [0,0] .... pretty sure you initialize a jagged array and use it like a multi-dimensional... are you able to compile and run what you have so far?)
anyway, you want to count how many questions you have, come up with a random number between 0 to your number of questions, then just access the array w/ that random number and pull out a random question
In the first instance you are trying to create what is called a jagged array.
double[][] ServicePoint = new double[10][9].
The above statement would have worked if it was defined like below.
double[][] ServicePoint = new double[10][]
what this means is you are creating an array of size 10 ...
Got a question. Is it correct that route values that was parsed on incoming request are still alive at the moment when razor "Html.ActionLink" is rendered? I mean, my Html.ActionLink doesnt contain own route vaues but they are somehow substituted in the resulting URL..
yay :) @KendallFrey you mind if i ask a question about excel? the only way i can describe my problem i'm having is by writing it in c# unfortunately :(