To learn ASP.NET MVC, I am thinking of creating a community forum like SO where people can rate posts, users etc. and the user can thereby gain points. I just can't figure out if the points should be added to the user profile whenever an action is done (post rated up/down, user created new post etc.) or if it should be calculated from th...
Hi,
I've written a Generic Handler so I can access my server's COM port through javascript.
I'm doing this, because I'm writing a Web Interface to an ESP-88 from BOSE, for internal use. The code must be configurable, and I added routines for both TCP/IP support and RS232.
In a desktop app, the code runs fine, but in an ASP.net 4.0 App...
I have many existing scripts that I need to debug, all embededed from code behind.
I would prefer to use Visual Studio 2008 client side debbging features, but breakpoints can only be set inside the aspx file withing a script block.
The problem is I can't put a breakpoint on the scripts because they are all registered from the code be...
I'm gonna use DataPager as follows :
I have a HTML Table :
<table id="TableBanks" runat="server" border="0" align="center" style="width: 93%"
cellpadding="3" cellspacing="1">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td> MerchantID </td>
<td><asp:TextBox ID="TextBoxMerchantID" runat="server" CssClass="t...
hi,
I'm wondering if I have a web service like this:
Login(username, password)
or a page like
login.aspx?u=username&p=pass
If they were called from a desktop app, which would be more secure. From what i've read a sniffer can read the request and figure out the url. I AM hashing the passwords before putting them in the request, bu...
I need to find a way to accurately calculate the byte size of the text inside a particular textarea. I am working in .Net so I have access to those libraries, but I'd prefer a Javascript solution. How many bytes is each character worth? What would be the most efficient way to count and multiply? Or am I missing a better way entirely?...
I cannot get ASP .NET MVC 4.0 to work when deployed on IIS 7.5 (Windows 7 x64) in Integrated Mode (or any other mode for that matter, but let's focus on Integrated Mode).
I am following these very simple steps
Create a new ASP .NET MVC 2 Web Application
Hit Run. It works.
Edit the project configuration to use my local IIS web server (...
Hi,i found something that is not smart done in the URL routing of .net 4.0 and i need a workaround to make it works
my scenario is the following,,i call this method on the application start event handler in global.asax
void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapPageRoute("ViewEntities","{CompanyU...
I have basic Single Sign-On working across 2 MVC sites (call them SiteA and SiteB) using something along the lines of the following method:
http://forums.asp.net/p/1023838/2614630.aspx
They are on sub-domains of the same domain and share hash\encryption keys etc in web.config. I've modified the cookie so it is accessible to all Sites o...
Hi,
Does anyone know how to handle the next button on createuserwizard control asp.net?
I need to validate some fields before the user can navigate to the next step.
...
When I was using AsyncFileUpload to upload 100KB image, I got no error message, but image not uploaded. I can upload 75KB image succssfully. I am using IIS 6.0.
<cc1:AsyncFileUpload ID="afuImg" Width="400px" runat="server"
UploaderStyle="Traditional" ThrobberID="Throbber2"
OnClientUploadError="uploadErrorImg"
OnClientUpl...
C# is still not OO enough? Here I'm giving a (maybe bad) example.
public class Program
{
public event EventHandler OnStart;
public static EventHandler LogOnStart = (s, e) => Console.WriteLine("starts");
public class MyCSharpProgram
{
public string Name { get; set; }
public event EventHandler OnStart;
publ...
I'm following this example: http://msdn.microsoft.com/en-us/library/ms178210.aspx
And I can get it to work with just a single page and a code behind, but when I add a masterpage, the examples doesn't work properly. Within my master page, I have a head content section and a body content section. It's nothing fancy.
How do i do client ...
Hi I am Using Nicedit My WebApplication..It is Nice.
Normally I am using On Save Button for Content Save to Database using Query.
I am using Textbox after nicedit it converted as TextArea.
Now I Dont Know how get text's from TextBox means Textarea..
becoz i am using the Code is..
protected void lbtnSave_Click(o...
Hi,
This expression is to check number > 1
^[1-9]+[0-9]*$
what is the expression to check if
it's greater than a given value, say
"99" ?
what about a value less than, 99?
Update:
I'm using ASP.NET validation control.
Thanks.
...
I need to do some performance testing for an ASP.NET MVC application and specifically want to measure how many databsae queries each HTTP request results in. The data access layer is using LINQ-to-SQL.
I'd like to be able to automate the tests so am looking for a good way to be able to do a before and after count of the number of SQL qu...
I want to export xml file data to sql database table. Can anyone guide me for this?
...
Hello,
i want to use form authentication.i have 2 different application.both are at different machine.i want to use common form authentication. suppose i have 2 application called "app1" and "app2".
There is one form called CElaunch.aspx page in app2.and i want to use this page in app1. we cant navigate the this page directly ...
Hi , I had web form which I will make wallpapers with images which use user these images as desktop background and I want to know the best way to do this wallpaper form I thought in datalist to do that .Please anyone help me and if I have example that will be well.
...