Proper Gridview Alternative - Highly Customizable

May 7, 2010

What is the proper alternative to Gridview in ASP.NET? By proper I mean highly customizable, css and JQuery friendly.

View 1 Replies


Similar Messages:

Cache Access In Highly Concurrent Systems

Nov 16, 2010

Suppose I have two threads(Thread1, Thread2) where the threads are accessing the cache for a given object such as in the code below nearly at the same time:

Dim expensiveToGetData = Cache("ExpensiveDataKey")
If ExpensiveToGetData is nothing then
'because the cache has expired
ExpensiveToGetData = LoadExpensiveDataFromDataSource()
Cache("ExpensiveDataKey") = ExpensiveToGetData
end If
ProcessExpensiveData(ExpensiveToGetData)

Isn't it possible for both threads to load the cache because they both requested data from the cache that was nothing/expired? I've run some tests on a local machine and it seems that the cache is being loaded more than once. Is this a normal pattern?

View 2 Replies

Tools And Technologies For A Highly Secure Web Application?

Sep 25, 2010

We're planning to build a web application that needs to be highly secure because a lot of money and reputation is at risk. Therefore I'm looking for tools and technologies that in that endeavor. The tools and technologies should prevent things like SQL injection, cross-site scripting vulnerabilities, remote code execution etc.

Our team has a solid knowledge about such vulnerabilities. But every developer makes mistakes, and a simple mistake shouldn't lead to a security vulnerability. They should be prevented or detected by web application framework, application server, programming language, security library, code analyzer etc.

A simple example: If you insert data into HTML, it needs to be escaped so it's properly displayed and not misused for injecting scripts. Some web application frameworks put this burden on the developers. If they forget the escaping in one place, they've got a security problem. A good tool wouldn't just do the escaping automatically, it would even prevent the developers from doing it forcefully.

I'm not looking for recommendations regarding the firewall (we have a good one), hardening the operating system (that's part of the plan), use of encrypted communication (it will be the only option) and secure authentication (a hardware token will be used). Rather, the recommendations should center around the application server and the web application software to be built.

We also fully understand that writing secure software is more than just technology: It involves knowledgable people, management attention, time and money and software quality processes. So far, this is not the problem and not the focus of this question.

I should mention that we have a certain bias towards Java and .NET.

So what tools and technologies or combinations thereof can you recommend us?

View 5 Replies

C# - Apply Customizable Skins To A Website?

Feb 23, 2011

I'm writing a SaaS application with a web front end written in ASP.NET. I'm not much of a designer, and my ASP.NET knowledge is not yet at the expert level - I usually focus on server side stuff - but I have a basic master page and style sheets, which do the trick.

Now I want to offer my customers the ability to customize their web site with their own style sheets, colors, background pictures etc. so that their customers will log onto their portal at mycustomer.mydomain.com and see the skin that "mycustomer" has chosen.

View 1 Replies

Web Forms :: Customizable Text Format Control For Page

Mar 2, 2010

How can I create a text format control the same like the one we write in asp.net website when we write a new post

View 3 Replies

Alternative To Gridview And Updatepanel

Mar 18, 2011

Gridview has problems in an updatepanel. So i was thinking if there is an alternative for preventing postbacks with the gridview.

View 15 Replies

Web Forms :: Using Table As Alternative To GridView

Aug 4, 2010

I want to populate the information into a table from a data source. I don't want to use a grid view. How do I do this?

View 14 Replies

Gridview - Alternative Row / Select Commands?

Mar 16, 2012

In a gridview, how does one create/add more than one button where each does something different?

I need 3 buttons for each row in a gridview.

Each will open a different target page/url when clicked on. I've done this in classic asp but how does one do it in asp.net using gridview? Or should I be doing something else? Maybe a repeater or some other control? I would need sorting and paging too.

I am trying to duplicate the functionality of this classic asp application I created years ago:

[URL]

Search for street name="oaK"

The results of the search is what I need to duplicate in asp.net.

I have the basics done but can't figure out how to make additional buttons in the gridview of the results do different things in this asp.net application:

[URL]

View 3 Replies

Nutshell Customizable Grid - Remove Columns And Save Preference And Show Saved When Logs Back Again

Jan 10, 2010

I bind my data to say GridView or Datagrid or Repeater and give user the ability to remove columns and save his preference and to show the saved preference when he logs back again. (In nutshell Customizable Grid.) How to go about it?

View 2 Replies

Gridview Image Button Alternative Text

Dec 29, 2010

There is a AlternateText property in image-buttons so that while hovering mouse on image buttons, alternate text could clarify the functionality of the button. I want to do so with ASP.net standard gridview and show a text while mouse being stopped on buttonfield button that I've added to my gridview. But such a property does not exist and my searches using Intellisense reached nowhere.

View 1 Replies

Forms Data Controls :: GridView Pager Not Showing Proper Number Of Rows?

Sep 9, 2010

I have created an out-of-the-box (default everything) ASP.NET Dynamic Data Entities Web Site using VS2010, C# and the .NET Framework 4. Created an ADO.NET Entity Data Model based off a MS SQL 2008 R2 database and registered that EF data model for my dynamic data. Everything works great except for the one change I would like to make. By default, the GridViewPager.ascx file provides the values 5, 10, 15 and 20 in the dropdown for GridView's "Results per page" option. I would like to change that to 10, 20, 30 and 40 - with 40 being the default selected option.

I went to the code behind file and modified it to have the values I am wanting. Those values now show in the dropdown, and work if I select them. Problem: when the page is first rendered only 10 rows will show. How can I change this?

View 3 Replies

Forms Data Controls :: Creating Alternative Text For URL In Gridview

Jun 30, 2010

I created a database with ID, Title, Content, Date, ImgLnks, Image and Imagecaption and i'm using ObjectDataSource to populate the data. The field "ImgLnks" displays a new blank window with URL. This column is entered as text, inserted into the database and displays as clickable link in the gridview. My question is, is there a way that I can put an Alternative Standard Text in this column instead of displaying the clickable link like [URL] etc.? Text like, "Visit Page".

View 4 Replies

Forms Data Controls :: Gridview With CSS For Alternative Page (Header Works Fine)

Jul 13, 2010

Did you have any issue to show background images in a gridview with IIS 7. I've exactly applied this [URL] and I've no idea why, my css works for the header but not for:

PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"

The alternative row has no background image and the pager too but it works for the header. But when I browse the website online from my laptop, without IIS it works fine. When I check web developer tools from i.e., I've the backround image written in the css so it should come up.

View 1 Replies

AJAX :: Modal Popup Extender And Link Button In Item Template Of GridView - Finding Alternative

Jun 25, 2010

In my Application I am using one Modal popup extender. I have one Grid View with Item Template containing Link button. I want to set Target Control Id of Popup extender to link Button of the Item Template. As it is inside the Item Template I can not access it directly in the page.

So Is there any alternative to achieve the same functionality.

View 1 Replies

Forms Data Controls :: GridView In Excel - Alternative Row Style Color Is Crossing The Boundaries From Right Side

Feb 10, 2010

data the exporting from grid to excel sheet correctly but the alternative row style color is crossing the boundries of excel sheet from right side.

View 1 Replies

Forms Data Controls :: GridView Alternative - Facilitating Data Input

Mar 5, 2010

I have been using Gridviews throughout a website I am currently building, however one particular requirement is to display two tables side-by-side that butt up against each other for the purposes of data entry. One person inputs numerous entries on the LH table whilst a different person will respond to one or more rows in any particular order (ie row 2 may addressed but row 1 might stay blank for a period of days). As far as I am aware, a GridView (or two) won't suit this requirement for the reason (from my still new understanding of GridViews) of not providing the ability for a 'respondee' to address any row in any particular order. Whilst I could add a button to each GriView row which displays a detailsView/FormView horizontally in line, I would still have to populate the Gridview with empty rows for those rows not addressed plus this 'fudging' just doesn't bode well concerning DB management.

It just seems adding two asp tables side by side then somehow working out how to automatically present a new row for data entry for the left hand table and creating a second table being the same size as the first (according to its number of rows) would be the way to go, then the task of data gathering/uploading to the DB. How best address the requirement - there maybe better ways for facilitating data input as opposed to using side-by-side controls, however it is the clients request. Also I don't want to go expelling copious amounts of time to fully customize a gridview when simply creating some sort of dynamic table would be sooo much quicker and easier for this once off. I have tried some searching, however not knowing where to start is problematic as 99% Google results return GridViews (as you would expect).

View 3 Replies

The Proper Use Of EnsureChildControls()?

Sep 21, 2010

Most often I use it when I am accessing a property of a composite control that depends on a child control.But I have also added it to OnInit of a control so I could make sure a hidden field was added correctly. Just a minute ago I called it in RenderControl because I was having an issue rendering a calendar extender and it fixed it. I am starting to get a little confused on when I need to and when I don't need to call EnsureChildControls and when I should call it.

View 2 Replies

Converting VB To C# - What Is Proper Syntax

Jul 6, 2010

I am trying to conver this to C# but Item is not a method in C#

Repno is a string variable of 3 characters

First if rep is not null

then

confirm that Repno the field salespnno from the query.

[code]....

View 2 Replies

Architecture :: A Proper DI Implementation?

Feb 27, 2011

I'm fairly new to dependency injection but it seems like a proper DI implementation will be fairly complex.

For example, DI requires a centralized class that manages the configuration and resolves the dependencies at runtime.

DI is also based on the concept of using interfaces. For example, a SpecialLogger should use an ILogger interface.

The centralized DI manager class will need to register types - for example, associate ILogger to SpecialLogger.

SpecialLogger will also need to implement the ILogger interface so SpecialLogger can be used through the DI ILogger interface.

Therefore, it seems like a sln using DI will need multiple projects to support DI. Here is an example for logging:

* MyCompany.MyDivision.Framework.DI.Management - this would have the DI manager where dependency types are registered and resolved at runtime
* MyCompany.MyDivision.Framework.Logging - this would have the implementation of a logging class. The main logging class would need to implement ILogger.
* MyCompany.MyDivision.Framework.DI.Interfaces - this would have the ILogger interface.

Interfaces would need to be stored in a separate class library from the DI manager because both the DI manager and SpecialLogger use the ILogger interface. Since the DI manager associates SpecialLogger to ILogger a circular reference would be encountered without a separate class library to store the ILogger interface.

View 1 Replies

Proper Way To Populate Dropdownlist Based Off Another Value?

Dec 21, 2010

I'm running into a minor issue with some ASP.Net code I'm working on. For simplicity sake lets say I have two dropdownlists, one that is full of various items and another that is full of other items, but based off the selected item of the first dropdownlist. I currently set variables into hidden inputs to check to see if the item in the first dropdownlist has changed and if it has to change the second dropdownlist, but I'm also having to check to make sure that if something else causes a postback to NOT repopulate the second dropdownlist as to not lose what is currently selected by the user. This check also allows me to make sure that when I navigate away from the page, the correct values are selected and not something replaced by a postback repopulation.

I'm new to ASP.Net/HTML/CSS/Javascript and the like. I know while what I have works, it isn't even close to being the correct way to do things. correct my ways and figure out the BEST way to solve this current problem. Some good ASP.Net tutorial websites would be nice too as I need to keep improving my skills with it.

View 2 Replies

Input String Not In Proper Format

Jul 26, 2010

i am taking string value from textbox name txtLastAppointment no. and want to convert it to int and then store it in databse using Linq to sql but i am getting error "input string was not in proper format" my Input string is 2.

My Code is.
objnew.lastAppointmentNo=Convert.ToInt32(txtLastAppointmenNo.Text);

View 2 Replies

C# - Best Way To Get The Proper Modules Section From The Web.config?

Jan 19, 2011

The code I've used to get the HTTP Modules is basically

HttpModulesSection modules = ((SystemWebSectionGroup)config.GetSectionGroup("system.web")).HttpModules;
// Depending on what we need to do...
//modules.Modules.Add(CreateSomeModule());
//modules.Modules.Remove("SomeOtherModule");

This worked fine up until IIS7. The migration command %SystemRoot%system32inetsrvappcmd migrate config "website/" moves the modules into system.webServer, so my code is now updating the wrong section. Is there a built in way to get the proper module section that should be modified? Or do I have to add a check for the Request.ServerVariables["SERVER_SOFTWARE"] and return system.web/system.webServer depending on the string I get back?

View 1 Replies

C# - Proper Way To Handle Several Automatic Redirects?

Dec 14, 2010

I have a website that basically allows customers to build a cart with an item that can be configured. A user will pick an item, and they'll be prompted to pick the first option they want, they get sent to the second step where they pick their second option, etc. The number of steps and the number of options are variable, as they are defined by the client. Usually the item only has 2-3 steps with 5-10 options. However, in order to make it faster for the customer, if there is only one option available for the given step, it will automatically be chosen and the user will be sent to the next step.

A client decided to set up an item with 10+ steps with only one option for each step. This results in the entire process automatically choosing everything. FireFox doesn't like this, as it gives the error Firefox has detected that the server is redirecting the request for this address in a way that will never complete. I haven't checked IE or Chrome, although it probably gives similar errors).

What's the best way to fix this? Right now the process is basically User picks item user picks option if there is more than one option available. Otherwise the website does step 3 itself. POST to add the option to the cart Redirect to Page.aspx?step=# repeat step 2-4 as many times as necessary

Is there any change I can make to the code or page so that FireFox doesn't think I'm in an endless loop?

View 2 Replies

Errors Not Viewable Despite Proper Configuration

Feb 27, 2011

I'm having the classic (dare I say typical?) error on the ASP.NET production server, which tells me that I can't view errors. Below the error displayed below, are things I've already tried. In IIS Manager (6.0), the application is located under one of the web sites in "Web Sites". It is indeed a web application, as opposed to a virtual directory (it has that gear icon). When trying to view the error from the localhost (i.e. the server itself), it doesn't find the application on its path, even though the root web site works just fine from localhost. It is clearly not a firewall issue because first of all, the firewall is turned off, and second because the root web site works fine from localhost. Heck, I even tried connecting through telnet and that worked fine and dandy too, so it is most certainly and very clearly not a firewall issue. Basically, I just need to view the error at all. I won't have to fix this problem if I can just see the error and fix it, because obviously there is something wrong in the code itself... I just don't know what, because IIS/.NET won't tell me.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".

So what I've already tried is what the error message itself suggests by setting the customErrors thing to "Off". In fact, it always was on "Off" so I didn't have to change anything. I've made sure that the web.config XML is valid. Another common reason for this error is that the .NET run-time is set to version 1.1, not 2.0. I've also made sure that this is correctly configured to 2.0. I'm running it in an independent application pool, meaning that there are no other applications at all, much less 1.1 applications, on the same application pool. I've made sure that EVERYONE can do ANYTHING to the files and directories in the application itself. I understand the security ramifications here, I'm just trying to get it working at all, and then I'll constrain the access rights afterward, one step at a time. But in any case, everyone can read those files.

View 2 Replies

C# - Proper Implementation Of N-layer Architecture?

Feb 28, 2011

I have been learning C# for the last year or so and trying to incorporate best practices along the way. Between StackOverflow and other web resources, I thought I was on the right track to properly separating my concerns, but now I am having some doubts and want to make sure I am going down the right path before I convert my entire website over to this new architecture.

The current website is old ASP VBscript and has a existing database that is pretty ugly (no foreign keys and such) so at least for the first version in .NET I do not want to use and have to learn any ORM tools at this time.

I have the following items that are in separate namespaces and setup so that the UI layer can only see the DTOs and Business layers, and the Data layer can only be seen from the Business layer. Here is a simple example:

[Code]....

Am I completely off base? Should I also have the same properties in my BLL and not pass back DTOs to my UI? what is wrong and what is right. Keep in mind I am not a expert yet.

I would like to implement interfaces to my architecture, but I am still learning how to do that.

View 4 Replies







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