I am wondering if ASP.Net MVC 2 is a good choice for my current project. I want to build a social site that will allow for plugins or modular apps to be added on to it. An example of what I am talking about would be socialengine.net or even Joomla.
I was thinking that mvc areas would make good modular apps to plug into a core app but wo...
Hey everyone, I am trying to (temporarily!) do some ASP.NET and C# compiling on my iMac.
Haha, it's so funny trying to do this on an iMac, it feels so.. wrong!
Anyway, I've found that Mono is the best way to do this, in my opinion.
I have a simple ASP.NET page with the following code:
1 <%@ Page Language="C#" %>
2 <html>
3 ...
Hi all,
i just started using ASP.Net Ajax and AJAX-enabled WCF Service to replace AjaxPro.
Is is possible to do something like this?
var service = new Services.UserService();
var pageId = service.GetPageId("123",PageIdCallback);
if (pageId=="abc"){
//Redirect
}
function PageIdCallback(pageId) {
//I don't want this
}
pageId will ...
Seems like Microsoft updated the Anti XSS library today:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=f4cd231b-7e06-445b-bec7-343e5884e651
In addition there is a new release of the Web Protection Library
http://wpl.codeplex.com/
Are these two downloads the same thing? What XSS library should I be using?
Are there ot...
I have a about 6 or 7 text boxes which needs to be validated to make sure they are not empty from server side code. So how I usually do this is, check each textbox 1 by 1 to ensure that they are not empty. Are there any other efficient methods to do this? I have searched on SO and have found out that adding all the textboxes to a list an...
Suppose 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 ...
hello all,
i have table contain two column id and word .
word column may contain one word or two or three ex ( computer , computer software , computer software computer )
i want search the text if it contain any word in that table .
thank you .
...
Is it OK to use threading.sleep in an intranet web application to display AJAX loading (in production environment)? Off course, the application works fine without it but all works too quick for the end user or even a developer to notice any difference.
What is the recommended approach ?
...
How to get the response (which is a redirect instruction) of a request from server side?
For example if I put www.abc.com in the browser the browser automatically gets redirected to www.xyz.com.
Now I need to get that redirect url from server side. i.e. need send a request to www.abc.com in response it returns a redirect url www.xyz.com,...
Hi all,
I'm having a strange issue with getting my GridView - RowDataBound
method to compile. I've got a simple GridView with the following:
<asp:GridView ID="gv_View_Documents" runat="server" AllowSorting="true"
DataKeyNames="DocumentName,Description" AutoGenerateColumns="false"
OnSorting="gv_View_Documents_Sorting" OnRowCanceli...
I have this simple ASP.NET page here:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tree.aspx.cs" Inherits="CoconutTree.One" %>
<html>
<head>
<title>Planting Trees</title>
<script runat="server">
protected void Page_Load(Object Source, EventArgs E)
{
string msg = "Let's plant some trees!<br/>"; ...
this code is giving me error:
error in converting datatype nvarchar to bigint
this is my table values:
@customer_first_name nvarchar(50),
@customer_last_name nvarchar(50),
@customer_address nvarchar(max),
@gender nchar(10),
@date_of_birth datetime,
@customer_email_id varchar(50),
@customer_occuption varchar(50),
@customer_phone_...
Hi all,
I was wondering, though I have got quite a few articles in this regard and all of them are for previous versions of XNA or not what I need, is it possible to embed an xna game in a asp.net website???
Means like there are several websites (game portals) having several games of may b flash or java. But is it possible to embed your...
I want to get count of all Retweets for a specific Tweet from Twitter. I used Twitterizer
...
Suppose In database their is column called INCOME_PER_DAY. I bring data of this column in the gridview .
Now My question is that I want to find the total sum of the column INCOME_PER_DAY using C# .how to do this?
Please tell me.
...
HI,
Simply hired provides APIs for accessing job info programmatically.
please have a look at the following URL.
Simply Hired API call
When i make a request with this URL.
I get some thing like XML. But this doesnt begin with a XML tag . The SImply Hired API provider have also given the DTD to validate against.
E.g Response from s...
Hi all,
I try to use Cufon fonts in my web page. I have master page and in head tag I have this:
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/GeosansLight_500.font....
Hi, I'm sure this is simple but I can't quite find out how to do it in Visual Studio. How can I specify the DLL names in the \bin directory when the application is deployed - even with "Use fixed naming and single page assemblies" option checked, it still appends "random" characters to the DLL name.
...
Hi All,
I have added a bcc field to my email that I am sending out and getting the error in the subject line. Everything works fine when I comment out the BCC line so I am not sure what is wrong. Here is the code I am using (it is in Delphi .NET but the principal is the same as C# and VB):
procedure TEmail.SendEmail(From, SendTo, CC, S...
Hi all, i have a problem so hope you guys can help!
I have a string in code behind like this
string html = "<asp:CheckBox ID=\"CheckBox1\" runat=\"server\" />";
So how to insert it into aspx page and when the page is rendering, it convert my string as i write it own in the webpage
Hope you guys can help
Thanks in advance!
Let me sa...