asp.net

Is it possible to get the favorites list from the browser?

Hello, Is it possible to read a user's favorites list using asp.net? ...

ASP.net Delphi dynamic imagebutton onclick event

I'm having a bit of trouble with an old delphi.net application. I need to show some thumbnail images on a specific location on the page, and when the user clicks the image show the image. The images are rather small so I havn't bothered with thumbnail generation. The problem is that I can't get the onclick event working. Here is m...

Dynamic control creation

Hello. I read about the dynamic control creation in ASP.NET this piece of text: ...When using dynamic controls, you must remember that they will exist only until the next postback. ASP.NET will not re-create a dynamically added control. If you need to re-create a control multiple times, you should perform the control crea...

Encrypt my framework and code

hi, i am creating my own CMS frame work, because many of the clients i have, the have same requirements, like news module, newsletter module, etc. now i am doing it fine, the only thing that is bothering me, is if a client wants to move from my server he would ask me to gibe him his files, and of course if i do so the new person who wi...

tinymce and Jquery UI dialog working nicely

I'm having some problems with Jquery UI Dialog and TinyMCE. Passing data to a text area works well with UI Dialog and Jquery. So setting data in text area like this works fine: $("#MessageDialog #messageDto_Body").val(messagedata.Body); $("#MessageDialog").dialog("open"); When I attach a tinyMCE editor to the text area...

ASP.NET - Conditionally link CSS file.

I want to conditionally link a CSS file base on the user's Membership role. An administrator should link my admin.css file while everybody else (other roles and anonymous users) should display my global.css file. Can this be done? ...

URL Rewriting in Response Filter

We are attempting to rewrite some URLs in our response for an outside proxy server. We noticed that the response is being broken up as it goes through the response filter. We then use regular expressions to locate the URLs and rewrite them. The issue we ran into is that the way that it is broken up (not exactly sure how it gets segmente...

I find using the session object (.net) an evil practice, am I being too harsh?

Asking your opinions on the session object, I never use it (only forced to at work) because of its issues when scaling out the server. I realize you can go out of proc and have sql server manage sessions, but I just don't like that idea of it. I would rather build a better database design around the issue, than just throw things in ses...

Manipulating the tree on the client - please advise

Here is my scenario. I am going to have a page with the treeview displayed. A user can add and delete nodes: when the user clicks on the node, a pop up will come up with a form, where a user will enter data, this data then gets saved into the database, and the pop-up script comes back with the id (from the database). This id needs to get...

Getting index of a gridview when hyperlinkfield is clicked

Hi, I have a web app(ASP.NET 2.0 using C#) that I am working on. In it, I have a gridview with a hyperlinkfield on a page(My_Page.aspx). When the Hyperlinkfield is clicked, it shows details on the same page. <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="My_Page.aspx?id={0}" ...

Set DataSource on controls within asp.net UserControl?

I have created my first asp.net UserControl that I will use in several places throughout my app. It contains a FormView to display fields of the record in a DataTable. It all seems fine, except, I can't figure out how to set the DataSource on the FormView that is within the UserControl. I want to set the DataSource in a method in code-b...

Which JavaScript framework does Visual Studio natively support?

Is it jQuery? Is there a way to integrate support for the excellent ExtJS or YUI libraries? Any news on whether Visual Studio 2010 will support another JS framework? ...

Progress Bar for calls to SQL from .Net

I'm wondering if there is a tried/true method for reporting the progress of a DB call from a .Net application to its user. I'm wondering if it's even possible to actually indicate a percentage of completion, or is the best/only approach to simply display a "loading" animation to indicate that something is happening? Also, does SQL2008...

Setting GridView's DataSourceId to "", causes GridView to lose...

Hello, If I bind GridView to SqlDataSource, then the first time page will be created, GridView will display columns retrieved from data source. But if on postback I set GridView.DataSourceID to null or to an empty string protected void Page_Load(object sender, EventArgs e) { ... if (IsPostBack) ...

How access Jquery TreeView on the server?

How do I access Jquery Treeview inside the .aspx file upon form submit? also, Can I add nodes to Jquery Treeview on the fly? (on the client side) I am using asp.net web forms, c# EDITED: someone mentioned the following in one of the questions: "on form submit, someone is going to have to write code on the client to collect that data a...

Controls not retaining values after postback when FormView set to insert mode

I am setting the CurrentMode of a FormView to insert mode using the ChangeMode method in the Page_Load event like so: if(!Page.IsPostBack) { MyFormView.ChangeMode(FormViewMode.Insert); } Within my FormView's insert template I have a DropDownList control with it's AutoPostBack property set to true. I also have several other DropDo...

Why should derived classes handle an event without attaching a delegate?

Hello, Q1: “The ListControl.OnSelectedIndexChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.” A) If I understand the above quote, then if we derive a class from ListControl, we should instead of subscribing to Sele...

WebRequest.Create Exception Problem

I just recently started having a very severe problem when using WebRequest.Create(string url) I am on a shared server, and recently the server company announced that it had to change the trust level in IIS from Full to Medium on all Windows web servers due to some windows security issue. As a result when I try to execute WebRequest.C...

FormView ConvertEmptyStringToNull and binding

I'm using a FormView with an ObjectDataSource and binding using <%# Bind("WhateverProp") %> - and all of my nullable columns are coming back with default values of the type in them. It appears that the FormView object doesn't have a ConvertEmtpyStringToNull property like the other binding containers do. I've found articles suggesting...

why I don't see generated IDs for server side controls?

Hello, I'm little confused here now. Let me explain: I've seen people talking about adding a button or some other control to the page in asp.net (3.5) and when the control renders it changes the Id of that control, eg. Button1 becomes Button1_somethingsomething which prevents them from using jQuery and what they end up using is somethin...