Jquery - WebForms Site Sample?

Mar 4, 2011

What I'm looking for is a good sample of an open source WebForms site which contains demonstrations of some best practices, design patterns etc. Just want too look how experienced people apply their knowledge to build websites which can be shown to everybody without shame :)It would be good if the samples show these technologies: IoC, Entity Framework, Unit testing (with mocks), jQuery. The small samples which demonstrate the particular technology are useless as I've already examined many of them.My goal it to improve the existing huge WinForms application, so I'm not interested in ASP.NET MVC for the time being

View 1 Replies


Similar Messages:

JQuery :: Need A Site Url From Where Will Get Exact Sample Using Jquery?

Jan 25, 2011

today i visit a site and saw that when i scroll down then images are getting fetch from server and being visible in the page. the site url is[URL]. please have look at the site and scroll down then u will see the effect that load images at run time when user scroll down.please tell me someone how could i do this. i need a site url from where i will get exact sample using jquery. please let me know if anyone have knowledge for the effect. i want to load image and text both dynamically when user scroll down.

View 3 Replies

Web Forms :: Publishing Sample Webform Using Webforms?

Jun 18, 2010

I am a newbie at ASP.NET and I am testing ASP.NET Webforms using Microsoft Visual Web Developer 2010 Express to create a sample webpage that allows me to add/delete/edit some tables in a grid directly to a MSSQL2008 database.I did follow te steps on the sample video 'Build Your First ASP.NET Application with ASP.NET Web Forms' on http://www.asp.net/general/videos/build-your-first-asp-net-application-with-asp-net-web-forms an this works fine on my local machine, I am able to add/delete/edit tables in a gridNow I want to publish the webform and database to my webhosting provider and after this my problems started. I founding problems publishing the webfiles using a normal FTP user wich I can use correctly using any other FTP clientI also getting a error when publising my database. I am connecting via the databaseserver IP or host using a normal SQL authentication that works fine at any other connectionscript.What is going wrong?1) Does anybody have a clue what is going wrong?2) Does anybody have a manual or something to publish a ASP.NET Webform from your local machine to a live Windows server?

View 10 Replies

Website - Webforms Physical Site Structure With Dynamic Site Map

Feb 2, 2010

I am having a little difficulty trying to wrap my head around site structures. I have quite a large asp.net site, for which: Admins can see a user list, Each user can have many accounts, and for each account can have many items. I can picture this as a breadcrumb trail of editing a particular item. User List > Mr Bob > Accounts > BOB77 > Items > Item32 > Edit

User List = All the users Mr Bob = A user the administrator has selected from the User List Accounts = A list of the user's accounts 12BOB = The administrator has selected the account named 12BOB Items = A list of the items an account contains Item32 = The item that the administrator selected Edit = The action that the administrator wants to do. I can picture how this would look like if it was using ASP.NET MVC with the URL, but I am unsure how to map this out using Webforms, and in the physical filesystem.

This is what I have thought up about how I am guessing the physical structure would look like. Will this have to use session variables to achieve what I am trying to do?

/Users/User/Edit.aspx <- for editing a user
/Users/User/View.aspx <- for viewing a user
/Users/User/Accounts/Default.aspx <- for viewing all accounts
/Users/User/Accounts/Account/View.aspx <- for viewing an account
/Users/User/Accounts/Account/Edit.aspx <- for editing an account
/Users/User/Accounts/Account/Items/Default.aspx <- for viewing all items in an account
/Users/User/Accounts/Account/Items/Item/Edit.aspx <- for editing an item

Where can I read more about this kind of setup in a web application? Or, can someone point me in the direction of an available project that has this kind of layout?

View 1 Replies

Web Forms :: Way To Automatically Generate Barcode Into Site Codeproject Sample

Jul 23, 2010

I'm using the following codeproject to build an asp.net website and so far everything is good. My only problem is after the barcode is generated, a huge whitespace exist to the right of the barcode. I've been playing with this and am unable to resolve it. Details below:

Link to Code Project Article:
http://www.codeproject.com/KB/aspnet/AspBarCodes.aspx?msg=354380

View 2 Replies

AJAX ::site Or Sample Code To Use Modalpopup To Prompt For Session Ending

Apr 12, 2010

looking for some sites or links to samples of using the modalpopup to display when session is about to expire.similar to godaddy.com.If it cant be used anyother solutions available to accomplish the same thing have an application we are building that they want to have something similar to that on the pages.They want to warn / prompt that their session is about to expire.Similar to online banking.


View 2 Replies

Javascript - Customizing Webforms Site Timeout?

Jan 26, 2011

is it possible to set a user defined timeout value on an asp.net website...i have a table that stores the time out value for each user of my website...i need to set the time out based on who logged in...i know that the default aspnet timeout setting is 20 mins of inactivity...is there any way i can circumvent this...and yes i do need to show a modal when the timeout expires and need to reset the timeout value if the user wants to continue the session or log them out if they choose not to continue...

View 1 Replies

NET WebForms - Processing String Parameters Across All Pages On Site

Jun 25, 2010

Working on an ecommerce site which will be integrated with a 3rd party vendor--that vendor uses different identifiers for stores than we use internally (i.e. their store ABC123 is our 001-321). I'm researching the best approach to inspect incoming requests for reserved query-string parameters that indicate the request is using their identifiers and map the identifiers back to our identifiers (so if the request is example.com/&theirId=ABC123 I want to transform the request to example.com/&ourId=001-321). To do this mapping I need to inspect the provided ID, execute a lookup against the database or cache, and forward the request to the specified page--limiting the modifications to just the query-string parameters (other parameters will need to be maintained, as with the details of the HTTPHeader, etc). So far I'm researching a few different approaches: Implementing it in a base Page (which already does too much, but has the benefit of our Logging infrastructure and some other injected dependencies) Implementing it in an IHttpModule Using URL RewritingUsing URL Routing (looks like routing isn't what I want, feel free to offer insight if you think it still fits) Performance cost is a consideration: the actual number of times this translation will occur will be very small compared to the number of requests not requiring it--perhaps 1%. However for another integrated site we will perform this mapping on nearly every request--would a different approach be better suited to this scenario from the previous?

View 3 Replies

Webforms Site Using HTTPCookie With 100 Year Timeout Times Out After 20 Minutes

Jun 11, 2010

I have a site that is using Forms Auth. The client does not want the site session to expire at all for users. In the login page codebehind, the following code is used:

// user passed validation
FormsAuthentication.Initialize();
// grab the user's roles out of the database
String strRole = AssignRoles(UserName.Text);
// creates forms auth ticket with expiration date of 100 years from now and make it persistent
FormsAuthenticationTicket fat = new FormsAuthenticationTicket(1,
UserName.Text, DateTime.Now,
DateTime.Now.AddYears(100), true, strRole,
FormsAuthentication.FormsCookiePath);
// create a cookie and throw the ticket in there, set expiration date to 100 years from now
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(fat)) { Expires = DateTime.Now.AddYears(100) };
// add the cookie to the response queue
Response.Cookies.Add(cookie);
Response.Redirect(FormsAuthentication.GetRedirectUrl(UserName.Text, false));

The web.config file auth section looks like this:

<authentication mode="Forms">
<forms name="APLOnlineCompliance" loginUrl="~/Login.aspx" defaultUrl="~/Course/CourseViewer.aspx" />
</authentication>

When I log into the site I do see the cookie correctly being sent to the browser and passed back up: However, when I walk away for 20 minutes or so, come back and try to do anything on the site, the login window reappears. This solution was working for a while on our servers - now it's back. The problem doesn't occur on my local dev box running Cassini in VS2008.

View 3 Replies

.net 4.0 - Upgrade Webforms Site From .net2 To .net4 | Accessing Referenced DLL Woes

Jan 24, 2011

I have an asp.net2 WebForms project which worked fine, including referencing a dll compiled for .Net2.

Problem is that I have now recompiled the dll for .Net4 and have also 'upgraded' the VS2010 asp.net WebForms project to .Net4 and the asp.net WebForms application won't access the dll.

The first time the dll is called I get System.NullReferenceException: Object reference not set to an instance of an object.

The new dll is accessed by other WinForms applications OK.

Whatever the problem is, VS2010 freezes and I need to use Task Manager to close it down.

View 1 Replies

AJAX :: Make ToolkitScriptManager On Site.Master To Work With Other Webforms In Subdirectory?

Jan 2, 2011

I got a a problem when using ToolkitScriptManager on masterPage with other webForm in SUbDirectory. Everytime I run other webform in the SubDirectory there was an Error "The ScriptManager must appear before any controls that need it". Then I added ToolkitScriptManager to that page I got another Error "Only one instance of a ScriptManager can be added to the page". hmmmm then I removed the ToolkitScriptManager from the MasterPage, It's worked for that page.

on that SubDirectory I had a webConfig file.

<?xml version="1.0"?>
<configuration>
<location path="MyPage.aspx">
<system.web>

[Code]....

View 2 Replies

.net - ASP.NET Webforms With JQuery?

Jul 14, 2010

avoid using MS AJAX completely while developing ASP.NET Webforms applications and use jQuery/jQuery Tools instead?

View 5 Replies

Jquery - How To Use Ajax With Webforms

Mar 16, 2011

Is there any way to use ajax I'm using Jquery for this) with asp.net webforms without having to run through the pages life cycle?

View 4 Replies

Jquery - Uploadify Not Working With WebForms

Mar 4, 2010

I'm trying to use Uploadify in a ASP.NET webforms project. The problem is that my script is not calling the generic handler. Here is the script.

[code]....

View 4 Replies

Jquery To Display Success Message In Webforms...

Feb 9, 2010

I have started using jquery in one of my new asp.net webform application... I want to display a success message after an insert on a button click event... Here is my link button..

<asp:LinkButton ID="LbOk" runat="server" CssClass="regular"
onclick="LbOk_Click" OnClientClick="return validateEmployee();" >
</asp:LinkButton>

And my OnClick Event:

[code]....

View 1 Replies

Jquery - Http Post To Code Behind In Asp.net Webforms?

Jan 12, 2010

How can I call a method in the code behind from a jQuery post in asp.net webforms?

In MVC it's simple, I just do this:

$.post("/MyController/MyMethod", { data: somedata; }, function(result) { alert(result); });

but I can't figure how what to put for the first parameter if I wanted to call a method in the code behind in webforms... for example, if I have a method called doSomething() is there a way to stick some location in there so that it will call doSomething() and return data to the callback?

View 1 Replies

Jquery - Return HTML Or Data From The Server - ASP.NET Webforms

Dec 8, 2010

I am working on a page that has multiple sections and each section looks 'almost the same'. Having said that, I want to build the HTML on the server and render it for each section on the initial page load. On subsequent actions, I would do a ajax call and have the server return json data.

The other option is to 'hardcode' the HTML on the aspx page and have the JS do the necessary customizations for each section. The third option is to use an UpdatePanel and do everything server side.

Based on what should I be choosing what approach to use? What approach would you use for a page like this (think of it as a large page having sub sections on it)

Edit: One section has HTML such as user's name, and a table where users can add dependents. Another section is almost the same except its for a 'contractor' so there's additional HTML such as previous work history, but this one has name (readonly) and a table to add dependents just like the first one. Other sections have more or less the same HTML. A user can delete dependents as well, when that happens, I need to update the database and update the section to reflect one less dependent. I was hoping to make any subsequent actions as ajax calls that interact with the server and the database

View 3 Replies

Way Of Creating Tabs Like Ajax Control Tool Kit In Webforms Without Using Jquery

Mar 3, 2011

I saw some example in google..and all of them with jquery...is there any way of creating tabs like ajax control tool kit in webforms without using Jquery...its not a requirement..i want to know the best way of doing it..I am very new to MVC and I know its not posibble to use Ajax control tool kit in mvc...I just noticed in this asp.net site My Profile page got some cool tabs..can anyone know how to do something like

View 3 Replies

JavaScript - JQuery DataTables Server-side Processing Using WebForms?

Aug 20, 2010

jQuery DataTables server-side processing using ASP.NET WebForms.

Solution:

Darin Dimitrov answered the question using an example which pages and sorts, but doesn't do any searching.

Here's my basic modification of his work to make searching work on his example:

[code]....

View 5 Replies

Jquery - Post Data From Text Fields Created Clientside Using Webforms?

Mar 17, 2011

I am trying to send data from text fields created on the client side (via jquery). The problem is the data from those text boxes is not being post back ( I'm using asp.net webforms)

I have used fiddler to view the post back data and it isn't there for those generated text fields.

I'm surprised no one figured it out. I was switching from server to non server controls I forgot to give the non ones a name field..........

// Add answer field
$('#addAnswer').click(function ()
{
count++;
var html = '<p>' +
'<input id="answer' + count + '" type="text" maxlength="255" runat="server" />' +
'<a id="removeAnswer" class="removeIcon" href="#"><img class="removeIcon" src="/Content/images/minus.gif" /></a>' +
'</p>'
$(html).appendTo('#answers');
return false;
});

View 4 Replies

How To Create A Web Site Using C#(not Used Asp.net) ,xml,xsl,xquery ,xpath ,jquery

Nov 13, 2010

how to create a web site using c#(not used asp.net) ,xml,xsl,xquery ,xpath ,jquery

View 3 Replies

JQuery :: Build Search Engine In Site Content?

Aug 1, 2010

I would like to create personal web site including search engine in my site content. I don't know algorithem how to build it yet. how to build my own search engine?

View 1 Replies

JQuery Object Expected Error In .net Page With Master Site?

Oct 27, 2010

The error i get seems to be centered around jquery finding what it's in (window,document, etc.). Right now i'm just trying to implement the jQuery datepicker. the project has a master page, where i placed my script references.

<head runat="server">
<title></title>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />[code]...

I have tried document and window for jquery context, but they both throw the same error.

View 1 Replies

JQuery :: Get External Site Page (view Source) Using JavaScript

Jul 30, 2010

I am developing one asp.net application and I have a requirement that I need to fetch html of page: [URL] I can easily do it with asp.net code using httpwebrequest but I have to do it from client side either using javascript or JQuery or any other thing. This is required becaues REQUEST TO GET PAGE [URL] MUST COME FROM CLIENT AND NOT FROM SERVER DUE TO IP ISSUE.

View 4 Replies

Lost Connection Does Not Return Error With JQuery AJAX On Live Site But On Dev?

Nov 16, 2010

I am using the following code to post data from a asp.net 2.0 site to an asp.net 2.0 web service that post the data to a server:

$.ajax({
type: "POST",
url: "SynchroniseCustomers.asmx/synchroniseCustomers",
data: JSON.stringify(customerObj),

[Code]....

Thing is, if I run this locally and drop my internet connection the web service returns a 500 error (like I want it to do) and deleteCustomer(customer.id); is not called. However, on the live site if I drop my connection the web service does not return an error and deleteCustomer(customer.id); is called even if I don't have a connection to the internet (customer gets deleted from local database without being posted to the web server).

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved