asp.net

Looking for Aspose .NET Slides Alternatives

I'm developing an ASP .NET web site that will allow users to view and print Microsoft PowerPoint slides. Right away, I knew that Aspose had a product that would likely allow me to do this. What I'd like to do is look at alternatives just to say to management, "Yes, I've looked at the alternatives and they are...." I can't seem to fi...

GridView paging in C#

Hi all, I am using PageIndexChanging event for handling GridView paging in C#. But don't know how can to use PageSize/PageNumber/PageCount there. In other word my code is forced to return all data always. Note following code: protected void grdList_PageIndexChanging(object sender, GridViewPageEventArgs e) { grdList.PageIndex = ...

how to remove user account from active directory in asp.net

Hi All, how to remove user account from active directory programmatically in asp.net? Please help me id this. Regards, Abhimanyu ...

Format a string using a string pattern

Hello, I have a displayFormat pattern "$###,###,###;-$###,###,###;#"( it can be different too) and I want to reformat the value in the AspxTextbox after deleting the ',' on GotFocus and LostFocus events by calling the following JavaScript function : function TextBoxFormat(ctrl, e, displayFormat, charactersToRemove) { var value = ctrl....

cascading dropdownlist not working

Hello, i tried to change an cascading dropdownlist example http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx But i get always the message "Microsoft JScript runtime error: Object expected" Maybe someone has an idea? <asp:Content ID="Content1" ContentPlaceHolderID="cont...

MVC or Webform , which is the way to go??

Possible Duplicate: Biggest advantage to using ASP.Net MVC vs web forms I'm soon gonna develop a reporting solution. Would be glad if some one let me know , which is the best way to go. Web forms or MVC? ...

How to create a Dynamic JNLP if JNLP is deployed on IIS ?

I have to pass SessionID from my .NET WebApplication to the Java Swing Desktop App. I am invoking the Java Swing Desktop App using JNLP. The user is to authenticate in the .NET WebApp & then the session id is to be passed to the Java Desktop App. By Dynamically generating JNLP we can pass session id. Although can we do dynamic generation...

Is the ASP.NET cryptographic vulnerability work around a BIG LIE?

This question is somewhat of a follow up to How serious is this new ASP.NET security vulnerability and how can I workaround it? So if my question seems to be broken read over this question and its accepted solution first and then take that into the context of my question. Can someone explain why returning the same error page and same st...

Unexpected token error when using XmlDataSource asp control

I have XML like this: <?xml version="1.0" encoding="UTF-8"?> <viewentries timestamp="20100923T130205,90Z" toplevelentries="8903"> <viewentry position="1" unid="A4958CC88435D1A8422577A7004422E8" noteid="4DF15A" siblings="8903"> <entrydata columnnumber="0" name="$59"> <text>63722</text> </entrydata> <entrydat...

MVC2: Non-view aspx page in iframe

I have a contradiction to deal with: I need to make a stylesheet load for a reporting object (for ASP.NET -- it requires runat), however, it won't compile when I have <% %> tags in . I need the <% %> stuff in to load stylesheets and jscripts for the rest of the page. So, I'm going to load the reporting object into an wrapped in a n...

what will happen when autopostback is true and when it is false ?

after Postback whether data go to server when it is true ? I am confused with autopostback properties............. please explain ..... ...

Why does my button not show up?

Hello, I have a partial view where I render, if the user has choosen an option, a button that permit the user to generate automatically a value for a certain field. Please give a look at this picture to understand what I mean: This is achieved using the following markup on the partial view <%= Html.LabelFor( model => model.IssueCode...

Execute function on specific key stroke in VB

I'm developing a web application that displays items from a work queue to a user. When an item is selected I have the app lock that item out so no other user can select it. By hitting the back button in the app it unlocks the item. I want to be able to unlock the item if the user hits the backspace key. I know what code I need to unloc...

Best practices with Forms Authentication and Routing?

My site (WebForms, C# 4.0) is using Forms Auth and by default requires login: <authorization> <deny users="?"/> </authorization> I allow unauthenticated access to the public folder (http://siteurl.com/member/public): <location path="member/public"> <system.web> <authorization> <allow users="?"/> </authorization> ...

Setting Page Title from an HtmlHelper class

I have an HTML Helper that essentially renders static content read from HTML files (inside of a vdir). There are cases when the HTML file has a title element defined and in such cases, the current page should use the given title. The content inside of the body should be rendered where the Helper class is referenced in the View. This is ...

C#: Datagrid to Excel .Cell border is missing in the created excel file

I am trying to create an excel file from datagrid in my asp.net page using the below code.I am able to create the excel file.But the created excel file does not has the cell borders.Without the cell borders,it looks like a word document. My code is Response.Clear(); Response.Buffer = true; Response.ContentType...

CreateChildControls issue with custom control

Hi, I have a custom control that creates a textbox on CreateChildControls. I'm trying to set the value of this textbox (trough a property of the control) on the load event of the page that uses the custom control. Unfortunately at this point CreateChildControls haven't been executed yet and the textbox is null. I called EnsureChildCont...

Need help with logic on how to assign the correct value to a textbox

I am passing in a value to the form that I ultimately assign to a textbox using javascript. The value is a calculation based on values from another page/form. However, the textbox is editable. When reloading the form with the previously saved data, I don't want the value of the textbox to be overwritten with the pre-calculated value ...

Does ASP.NET default to STAThread or MTAThread?

Here is one of several sources that say ASP.NET defaults to single-threaded apartment, and that you have to set "executeInMta" to true in order to override this behavior (EDIT: As everyone has pointed out, I am wrong here - this refers to classic ASP. I thought there was more documentation backing this up for ASP.NET, but I was wrong): ...

MVC ActionLink add all (optional) paramters from current url

the very famous actionlink: <%: Html.ActionLink("Back to List", "Index")%> Now, this link is in my Details view. The Index view is a search page. The url of that looks like this: http://localhost:50152/2011-2012/Instelling/Details/76?gemeente=Dendermonde&amp;postcode=92**&amp;gebruikerscode=VVKSO114421&amp;dossiernr=114421%20&amp;o...