asp.net

how to make grid footer lines to none in gridview

i want to disable Footer gridlines in gridview.How can we do this ...

HttpContext.Current.Session is throwing exception(Object reference not set to an instance of an object.) in business class

In our application we have to access session objects in business class. We are using HttpContext.Current.Session to get the session value. In some cases it returns the value but mostly its throwing a null reference exception(Object reference not set to an instance of an object). We have the following code Try If HttpContext.Current.Sess...

ASP.net Beginner question: How to get rid of this error ?

Trying to create a simple login page in Asp.net C# but getting some error... I googled about the error... Tried all the solutions but to no avail... What am I doing wrong? The error is: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible...

Can I use loop in <%#Eval ()%> block

I want to print series in one cell of gridview sccording to condtiotion. I have used condition from ternary operator like <%# Eval("Sequence").ToString()=="R" ? "Sequence1" : "Sequence2" %> but i want to print series instead of string Sequence1 and Sequence2 by loop. Have any idea. ...

how to access autogenerateSelectButton in asp.net

if i make autogenerateSelectButton as true then it display the select button in all rows of grid. but i want to access that "select" so i have to write code for that which i have done in which there is common functionality of all the select but i want to access that particular row which is selected by user. how to do it? ...

using .FooterStyle{border:0;} doesnot removing the footer lines

I try for this for removing gridlines for only footer FooterStyle CssClass="FooterStyle" /> on grid view and add .FooterStyle{border:0;} but it is not working ...

dynamic grid view loses binding when post back occurs ?

dynamic grid view loses binding when post back occurs ? I have a dynamic grid View with template fields and bound fields as columns for the first page load all binding looks fine.values are populated in all columns when I trigger an event such as selected index changed in Drop downlist present in the column header(inside template...

date validation

I have a textbox which is used to enter the date.Now when the user enters the date in the specified format I have to validate at client side itself,if user gives other than the current date.(current date is the "actual date" when the user makes the entry) ...

'Cast object of type' error - resolved by IIS recycle

3rd party ASP.Net web site and web service installed. The code appears not to log errors to server log or custom error log. User receives the following critical untrapped error message: "System.Web.Services.Protocols.SoapException: Unable to cast object of type 'System.Security.Principal.WindowsIdentity' to type 'Library.Security.Iden...

Where can I find the CSS behind standard asp.net controls?

So for example, I have a lovely button control: <asp:Button ID="Button1" runat="server" Text="Button" /> Which when renders, is a lovely dull grey, nice and rectangular, etc, etc. I know I can apply a new CSSClass to amend the CSS of said control, but where can I find the original CSS properties for this? I appreciate this is a stup...

Could not load type "something.something"

We have a custom app in SharePoint and each morning we receive this error, by recycling the app pool the error seems to go away for the rest of the day. We have set the app pool to automatically recycle each evening and morning but this doesn't seem to help in any way. ...

Decoding HTML in ASP.NET MVC 3

@ in asp.net mvc 3 preview 1 automaticly encodes html, is there an alternative way to let there be html? think of this scenario: @view.BestSitesEver.Replace("stackoverflow", "<h1>StackOverflow</h1>") That would just print out: <h1>stackoverflow</h1> ...

Routing on local filesystem (for example on Server.MapPath)

I'm about to begin to use the asp.net module found at http://nathanaeljones.com/products/asp-net-image-resizer/ The module works like this: localhost/files/image.jpg.axd?width=400 (the module identifies this and resizes the image image.jpg). The problem is that I'm not just using images that is on my filesystem, I'm also using files th...

Create Visio diagram in an ASP.NET application

Hi everyone! I need to create Visio diagrams on the server-side. But Microsoft strongly discourages usage of automation in server scenarios. What should I be looking at? (SharePoint 2010 services is not an option for me). Thanks in advance. ...

How to embed jquery library in asp.net custom server control?

I emebeded jquery library in custom server control. but it's not working. it throws "object expected error". the complete code listing is given below. jquery-1.4.1.js is rename it to jquery.js using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Web; using Sys...

ASP.NET MVC 2 - Organizing

Hey there, I'm having a ASP.NET MVC 2 Project where I'm making some management system... The thing is that I have 4-5 controllers that are all related to a specific thing in the management system and having 4-5 diffrent view folders dosent make it any easier.. Any suggestions? Since its "a part" of the management system I dont really se...

fedex rate calculate using web services

I want to calculate the fedex shipping rate using web services in asp.net i have get stuck ...

ASPxGridView rows per page

Hello, How can I set maximum number of rows per page to 5? Default is 10. <SettingsPager PageSize="5"> ... doesnt work thanks for help ...

Asp.net creating tab delimited txt file

I have to create a tab delimited txt file from a query. I want to call an HttpHandler that returns my txt file as a stream, I don't want to create the file phisically. 1st question: what is the best practice to create the tab delimited txt file from a query result? I have to fetch all rows and create the file manually? 2nd question: H...

How to develop program/website and minimaze DB dependecies using C#.NET?

How to develop program/website and minimize DB dependencies using C#.NET? For example I have made some changes in my DB, after that I must rewrite half a project. ...