asp.net

raisepostbackevent not firing

Hello everybody. I am building an ASP.NET custom server control. I have implemented both the IPostBackDataHandler and IPostBackEventHandler. OnPreRender I have registered the postback logic: protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (Page != null) { Page.Reg...

How to change the Header Text of Gridview after Databound?

I have a gridview I bound a DataTable with that Gridview Its dynamic so no hardcode Text in desin. I tried to change it after Databound and in PreRender of gridview but no Success. Actually there are Underscores('_') in text and I want to Replace it with space. Below is code <asp:GridView ID="grdSearchResult" runat="server" AutoGener...

GridView UPDATE data

Hi, I am trying to manage ROLES in ASP.NET using ROLES MEMBERSHIP PROVIDER. I designed a GridView to manage EDIT for ROLES. I am not able to update the data when inserted in a TextBox. Belove the code for the event. Could you tell me what I am doing wrong, or maybe send me some good tutorials specifically for MEMBERSHIP? Thanks prote...

How can I use DOT files to export data's?

Hi, I need to export data into a word doc using ".dot" models, with an application written in asp.net. Can you give me some links to learn this trick? I'm sure is it possible without any external libraries. Thanks to the universal knowledge ;-) ...

HTML to Word Doc in ASP.NET

How can I convert HTML to Word Document in ASP.NET? Please tell me a free tool. ...

UpdateProgress Covers Update Panel

Is there any way to get an updateprogress to entirely cover an updatepanel ? (Asp.net .net 4) ...

SQL Server Table Structure, StartDate and EndDate

hi, I have a Tariffs table for international dialing Codes with StartDate and EndDate I'm using ASP.net Application to import excel offers to this table , Each offer contain about 10000 row, so it is a large table (about 3 millions row) what is the faster scenario in SQL Server 2008 to create a stored-procedure or trigger to change the...

Detect that asp.net http headers already sent

I am adding headers to a page as follows: Page.Response.AddHeader("foo", "bar"); Depending upon previous processing, sometimes this fails with "Server cannot append header after HTTP headers have been sent." I am dealing with this by enclosing Page.Response.AddHeader("foo", "bar"); within a try-catch construct. However, to keep things...

Old password still working after password change in asp.net membership

Am using ASP.NET membership authentication in a small website and i just noticed some thing funny during testing. Am trying to enable user to change their login password any time they wish, i dragged a change password control to the form, i changed the password for my test account, but now all passwords are still working. I can login w...

When running Word 2007 in ASP - Is it server-side or client-side?

Hi I managed to run Microsoft Office Word 2007 and programmatically manipulate doc files in ASP using the Microsoft.Office.Interop.Word .Net Component. I used the tutorial found at here The question is: Was the Word application run on the server side or on the client? I was only able to test this on my own computer in debug mode so it's...

How to use a ShortDate string format with Html.TextBoxFor

Using Entity Framework with MVC2, I have a series of date textboxes, that I want to display data from the model in a short date format, but I have to use Html.TextBoxFor in order for the update code to work (Having tried using HTML.Textbox the data never gets saved to the model). <%: Html.TextBoxFor(model => model.Item.Date, String.For...

ModalPopupExtender problem

I had :ModalPopupExtender which display when user didnot register .And when user login it didnot display but some browsers as firefox or safarie :ModalPopupExtender apear and hiden .I tried to add :ModalPopupExtender in updatepanel but i didnot so please how can I do to solve this issue. protected void Page_Load(object sender, Event...

Debug HTTP Module Init Event From ASP.NET Application

Is it possible to debug the init event from a http module? If I set breakpoints, they don't get triggered. ...

CausesValidation to certain fields

I have a large ASP.NET page with many TextBoxes and Validators The problem is that when I click on a button, I want to fire the validation for certain TextBoxes (but not all of them). And when I click on another button, I want to fire all of the validators. ...

AjaxControlToolkit.BlockingScripts missing in Ajax 3 ?

Hi all I have an old project that used an old Ajax control toolkit version we need to upgrade the project to framework 3.5 and Ajax version 3 we have a class that used the old AjaxControlToolkit.BlockingScripts class, but this class is missing in the new ajax version what can be the replacement for this class ? thanks ...

automatic redirection/geo-location and search engine optimization - Detect if its a spider that is accessing site

I have a site who's search ranking has plumetted. It should be quite SEO friendly because its built using XHtml/CSS and has been run against the SEO toolkit. The only thing I can think that may be annoying Google is The keywords are the same accross the whole site rather than being page specific. (cant see why this would be a massive ...

Fill datagrid with paging enabled in asp.net

Hi, I have datagrid with paging enabled that can have 10 rows per page. Also I have DataTable with 16 rows. I want to fill the datagrid dynamically with 'for' loop to go over all the DataTable and fill the DataGrid. I understand that there is a problem when the counter will hit row 11. Do I need to change the page of the datagrid when ...

How to simply update entity in entity framework?

Hi! I'm writing a custom .NET MembershipProvider (not the built in one) and trying to update using Entity Framework. But of course i have no access to (Try)UpdateModel. How can i update it? Thanks in advance. ...

ASP.NET - Security Vulnerability (Cryptographic Oracles) - why html redirect for pre .NET 3.5 SP1

Why does the recent ASP.NET security vurnerability specify an html error page to redirect to pre ASP.NET 3.5 SP1 but an aspx page for later versions? ...

links for firebug on Internet Explorer

i want to install firebug on IE.can you give me the links for free download of firebug ...