How To Write A Script Similar To The Https
Apr 3, 2011if someone in here could write a script similar to the one on https://www.spalding-labs.com/Secure/Order.aspx . . . I have no idea how to or even where to start.
View 1 Repliesif someone in here could write a script similar to the one on https://www.spalding-labs.com/Secure/Order.aspx . . . I have no idea how to or even where to start.
View 1 RepliesSuppose we want to select the data from the database then we write the query for that. Example:
SqlConnection con=new SqlConnection(Connetion name) string selectPkId = @"SELECT PK_ID FROM TABLE" SqlCommand cmd=new SqlCommand(selectPkId ,con);
So,my question is that why we basically use @ before the sql query.If I don't use @ before that then it again work fine (does not give any error), then what is need of using "@"?
I am reading in a file into a string. Then I am writing this string to a stream. I know this code works fine.
The only problem that I have is with the line that write the data in chunks where the parameters is not supported for the Write method.
The line that has the problem is this line. What do I need to change here?
OutPut.Write(buffer, 0, Math.Min(to_write, WRITE_CHUNK));
[Code]....
i am calling a function which is inside Homescroll.ascx.cs from Homescroll.ascx so i wrote on Homescroll.ascx as <% Response.Write(scroll()); %> but all this is in update panel,and i am getting errors. so is their any other way to call function from homescroll.ascx to homescroll.ascx.cs,instead of response.write();
View 3 RepliesWhat would be equivalent linQ query for:
I am using linQ for get these data to silverlight so I cant use execute query in silverlight and have to go with LInQ. can someone point me for easier way to convert similar queries or any tips.
[code]....
I have 8 drop down list used for accounting data entry i display 2 rows in a data table one for debit (positive amt) and one for credit (negative amt) the code is simple and repeated so i know i should not be doing it LOL. Would this be the case for a generic fundtion? or....?
[code]....
I have these two methods on a service:
public Offer GetOffer(int id, string languageCode = Website.LanguageSettings.DefaultLanguageCode)
{
Entities.Offer offerEntity = _db.Offers.FirstOrDefault(offer => offer.Id == id);
if (languageCode.ToLower(CultureInfo.InvariantCulture) != Website.LanguageSettings.DefaultLanguageCode)
{
using (IDocumentSession session = store.OpenSession())
{
Translation.Offer translatedOffer = session.LuceneQuery<Translation.Offer>(Website.RavenDbSettings.Indexes.Offers)
.Where(string.Format("ObjectId:{0} AND LanguageCode:{1}", id, languageCode))
.OrderByDescending(offer => offer.Id)
.FirstOrDefault();
var offerPOCO = Mapper.DynamicMap<Translation.Offer, Offer>(translatedOffer);
offerPOCO.Id = offerEntity.Id;
return offerPOCO;
}
}
return Mapper.Map<Entities.Offer, Offer>(offerEntity);........................................
I'm building an mvc application and the customer asked to build a similar application that have almost the same controllers and views
of course I don't want to copy the same files to make new project , so How can I create the second project without using (Copy & Paste ) on code
of course it goes without saying that I have DAL and BLL so I'm not asking about those two layers , My question regarding the mvc interface layer only
In a classic Tabular MVC View I have put a column that shows or hide some Html.ActionLink() tags for every row, depending on the model.
I was trying to do the same with the razor WebGrid, but not being able to do that.
The code snippet I want to replicate in the grid.Column is similar to this
@if (item.CanDelete)
{
Html.ActionLink("Delete","Delete", new {id=item.id}
}
else
{
Html.ActionLink("Edit","Edit",new {id=item.id})
}
Similar region in C#, is there stuff available for MS SQL?
View 1 RepliesWhat's the best way in ASP.NET MVC to get a few questions related to the current question (like on stackoverflow) without using tags?
View 1 RepliesIam getting an array of list from database to client side(javascript array).Now my aim to place those values in a div one by one and that div should attach to the textbox similar to Autocomplete extender.
View 4 RepliesOne thing I've always appreciated about Java is the straightforward API documentation. Since Oracle took over Sun, it is a little less intuitive to get to, but basically, you go to:
http://download.oracle.com/javase/6/docs/api/
and you are set. Click on your class in the left area (example: String) and boom, you can read a brief overview of the class, see the various constructors, review the methods and return types, parameters, etc. These days I'm 100% C# and .NET but I often have trouble finding a good class API reference similar to that which I'm used to in Java (as I'm a former Java developer). So I thought I'd ask the community which references you all use and if there is something similar to the Java documentation.
i am trying to upgrade my WEB applications from .net 2.0.0.0 to 3.5.0.0. When i open my solutions in VS2008, it prompts me to update the framework to 3.5.0.0 .
But. Not all the dlls are getting updated. some dlls are getting updated to 3.5.0.0 but some remain in older version 2.0.0.0. Also, i could not find some dlls in 3.5.0.0 folder
For example the following dlls are there in 2.0.0.0 but not in 3.5.0.0
System.Configuration
System.Web
System.Xml
ASP.NET MVC 2 and the display of commonly used data.Let's say for example, I wanted to have a listing of "Latest News" items on the right hand of my web page. Back in the day, I would made a user control called NewsList.ascx, put some DB data retrieval code in the code-behind and drop the user control intoI would like to do the same thing, but using MVC. Obviously, I don't want to place DB retrieval code into every controller to retrieve news items for the ViewData.How could I add a "Plugin?" or similar to retrieve the data across EVERY controller?
View 4 RepliesI'm looking for a way to providing users (administrators) of a web application to automatically (meaning it's opt-in to update, but the installation should be automatic when started) update said web application when new versions are released.
The reason why I want an automatic approach is that I want the users to be able to update the web application while it's running remotely, without having to gain physical access to the machine (including RDP).
I could of course write my own code for this, but I would prefer to use something like ClickOnce that has been around for a while. Is it possible to use ClickOnce for this?
Or is there an alternative for ASP.NET applications that I have not been able to find?
It is important that it's the user that does the update and not me, so I don't think WebDeployment is the way to go, but I'm willing to listen to scenarios where this would work.
The users are not system administrators, so I want this to be as fool proof as possible.
I'm using Visual Studio 2010, ASP.NET 2.0 (.NET 3.5). If a solution requires switching to version 4, this is possible, but not preferred.
is there any mechanism similar to HTTP Module in classic ASP?
View 1 RepliesI'd like to know if there is a possibility to display dates in form of a gridview. I.e. one date horizontally (something like a
header) and the other date vertically (on the left side of the grid). The information that "connects" these 2 dates should be shown in the grid itself.
Are there any "list" manager applications for asp.net mvc (or vanilla asp.net) that are similar to say:Sharepoint ListsCreate your own list on google sites would prefer open-source!
View 2 RepliesMy Boss wants me to create a webpage similar to RTA's page. How to do it? If possible give me a sample project similar to RTA.
View 2 RepliesI have a large application in which I have lots of Submit - Delete - Cancel - Add and .. buttons. All of them use a same .Button CssClass.
I decided to reach the interface so that I want to differise buttons interface.
How to Apply a CSSClass to a series of similar objects with a different ID
I should Have similar Delete / Submit / Cancel or ... Button interface all over the application
All of the Delete button id are btnDelete and the same for the rest. (btnSubmit - btnCancel ...)
Note that they are Asp control so that only the last part of their name are btnDelete or ... and before Name, you have a client ID like (MainPage_MainControl_TheSimpleForm_btnDelete)
I'm new to java and android, originally from an asp.net/c# background.I am looking for a config file in java, similar to the webconfig of app config with .net but there doesn't seem to be one.
View 3 Replies am a .NET developer with four years professional experience. In my free time I am looking at building a site that graphically displays relationships between objects, in this case, people. I don't want to spend any money on a web control as this is just for fun. Something that looks like this:
except with people (who know each other, or otherwise). I am having trouble starting this project out. I have the database designed with a People table (ID, Name) and a Relationships table (ID1, ID2), but don't know how to graphically display this information.
So I have been trying to follow serenarules posts about persistence layers, but I seem to be missing something.
The persistence layer is an architectural layer whose job is to provide an abstract interface to information storage mechanism(s).
This makes sense to me, but I am still having a hard time with this.
So in what cases is this necessary? When you are pulling similar data from multiple information sources?
I have a File Upload Control, so i click the 'Browse' button and when i select a file from the select file dialog, i want the file to be shown as a link below the File Upload Control( somewhat similar to gmail). This file should be seen such a way that it can be deleted, if i wanted to. And also i should be able to upload another file from the File Upload control.All these files should be uploaded to a location when i use a button click event in the end.
View 1 Replies