Questions for asp.net


8308

How to pass array from Asp.net server side to Javascript function on client side

How do I pass an array I have created on the server side onto the client side for manipulation by Javascript?
2674

Binding an xml node's children to ASP.Net DropDownList

I'm trying to bind the contents of a node of XML to a Drop Down List without much success.
7794

How can I get the size of an object in the HttpRuntime.Cache?

I am currently storing many different types of objects in the ASP.NET HttpRuntime.Cache and I was wondering if there is a way to figure out how big each object is?
6460

WCF Cache vs. Page.Cache

I've got two different, but closely related ASP.Net web applications that use the same data on some pages. In both applications I am using the ObjectDataSource control, have EnableCaching="true", a...
1251

Validating an uploaded file's ContentType in ASP.NET

I'm storing some files in my database and since I'm storing them in binary format and not keeping any other information, I have to make sure that all of them are in the same format so that I'll be ...
7280

How to open website url from windows application(.net) (no javascript)

I want to open website url(in default browser) from my windows application.
8437

good way to query many databases in ASP.NET

What I'm trying to do is run the same SQL select on many Oracle databases (at least a dozen), and display the output in a Gridview.
5952

WCF services not working on the server

WCF service is not working on the server. I am getting following error
632

How to retrieve value from sqldatasource1 to textbox1 using vb.net?

How to retrieve value from sqldatasource1 to textbox1 using vb.net ?
3612

Using LINQ find nearby places from database

We want to receive list of nearby places from database using LINQ in ASP.NET 2012 and would like some feedback on our strategy.
8789

MvcMusicStore No elements in sequence

I am working through the Mvc Music Store tutorial and am stuck on this LINQ query as it keeps telling me that the sequence has no elements. My model matches the model in the tutorial and I have ins...
840

Error with ASPNET RoleProvider

I just installed an application on a win2003 server and I'm getting this error:
4515

ASP.NET Treeview control failing to handle angle brackets in data

I have some data which contains angle brackets in some of the fields.
2810

how to render html tags on gridview asp.net from database

I have asp.net grid view to display techs notes. I am trying to force the grid view to display it as user enterd in text area
8130

Increase the performance of asp.net page

We have one page which is about 300 KB after compression of viewstate. It's loading very slow. We are using telerik tabstrip. There are 8 user controls being loaded for this tab. Is there anyway we...
3494

Is it possible to create an ASP.NET web service fully contained in .svc file?

Is it possible to create a "drop-in" web service? What I would like to do is create an .svc file that can be placed into a web directory on IIS and accessed (and executed) via its URL, without havi...
1382

Need a good ASP.NET menu

I am looking for a good menu to use in an ASP.NET. I am currently using the asp menu. I need
6716

DropDownList in Gridview Binding error Index 1 is either negative or above rows count

I have been trying to bind a drop-down list which is present in itemtemplate of my GridView.
6187

web service session works while debugging but not when its published

I'm finishing up my first web service. It stores data on a dataset that I later need to check up on, so I need to keep that information around.
8860

Return ADODB.Recordset type from .NET to Classic ASP

I have a DAL that I want to return an ADODB.recordset when executed from a classic asp. The object is exposed as a com object and I have a complete dal workin but I am not sure how to return an obj...
1664

best (easiest) way to add dynamic content to a asp.net webforms application

i am working on a asp.net webforms app, and i have to create 'dynamic order lines'
7400

ASP.NET Connection to DB forcibly closed when importing data into table

I am using C# Visual Studio 2005 and SQL Server 2005.
813

decode querystring within context.Request

i have an ashx file that requires some query-string values to deliver appropriate images.
214

A question about datasource objects in ASP.net

When using DataSources in ASP.net applications, paging and sorting along with GridView only works out of the box when using DataSet, DataTable, DataViews if you are using anything else you need to
8165

How do I populate a dropdownlist based on a selection from another dropdownlist?

protected void ddlEnvironment_SelectedIndexChanged(object sender, EventArgs e)
5177

How do I add a value to a TextBox that's inside an ASP:LoginView

I have some DropDownLists and some TextBoxes on a page. Normally I use this to clear and add value to the items:
6791

What is the best way to implement “Copy to new” functionality with FormView control and content templates

I have a FormView control in an ASP.NET page. I use the InsertItemTemplate and EditItemTemplate to provide data manipulation functionality, and it is working very well. I would like to allow the us...
7100

Anything wrong with adding the PUT,DELETE verbs to the .aspx extension in IIS?

I'm using PUT and DELETE more and more w/ my ajax work and wanted to see if it would be a "bad idea" to add these verbs to the .aspx application extension in IIS.
5815

Regular expression for email to allow only two domain

I have to create a regular expression for email id like this
2722

How can I find out why my thread is being stopped in ASP.NET?

Our logs are reporting ThreadAbortExceptions that are stopping our Quartz.NET jobs at seemingly random intervals. From what I understand, this wouldn't normally be caused by something the thread it...
7533

Consideration of points while started to build some open source applications

There are lot of open-source application available in these days which provide various things like blogging, cms, own branded application etc.
1906

.js files not being located by website on Win 2008 Web Edit IIS 7

I have been going around in circles with this for a couple of days now. I usually find what I need without posting.
3572

ASP.NET: Problem with event handlers for dynamically created controls

I've got this problem with dynamically created TextBox.
2752

How to iterate through each property of a custom vb.net object?

How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects?
8701

Why ASP.NET MVC bothers to have a Default.aspx file?

When create a new ASP.NET MVC project in Visual Studio 2008, there is a Default.aspx page by default. It has one line
9222

Rewritepath and IIS Integrated Mode

I have big issue with url-rewriting for IIS 7.0.
5327

SQL Server Database File and WCF

I have a WCF Service that exposes a method GetCustomers(). The internals of the method uses a Data Layer along with a Business Layer to return a List of Customers. Currently I am using an SQL Server
8228

How do I refresh an ASP.NET ListView using jQuery and AJAX?

I have a page with a number of ListViews that I want users to be able to sort and page through. Rather than postback and rebind the entire page each time, I would like to do it via jQuery/AJAX
8703

A strange thing about Nullable Boolean type, And and Or in C#

I have a strange problem about the following codes:
1532

Pass variables and access methods of User Control from CodeBehind

So I have a function renderWidget() in default.aspx.cs. The idea of this is to add a User Control to a page.
3533

ASP.NET sites, hiring external design firms and standards

Hey. We're building a large ASP.NET website, and have hired an external firm to do the design (CSS + protoype pages). In fitting the design to the page, we've found a number of problems that indicate
9740

ASP.NET ListView select and highlight line through checkbox

I am trying to get an ASP.NET 3.5 ListView control to select and highlight lines through checkboxes displayed in the first column. If I use an asp:LinkButton instead of a checkbox, the line selecti...
3858

Request transfered to different ASP.NET website (different domain, server etc)

If I have a Web Server A which receives a request for a page/resource and I want to transfer the processing of that request to a different web server (B), is this possible in the ASP.NET web forms ...
8166

How does <%$ %> and <%# %> work in ASP.NET?

I was using ASP.NET Web Forms and ASP.NET MVC for some period of time.
4367

Easiest way to convert IGrouping to IHierarchicalDataSource

I have a list of business objects that I want to display in a menu. I can quickly use LINQ to created nested groups to match the desired structure but have to manually iterate through each to
3130

Why did my AJAX Accordion control stop working?

I really don't even know where to begin. I was trying to do some stuff with a reportviewer in an ASP.Net web app, and the next time I ran my project, the AJAX accordion stopped expanding on a comp...
6874

UserControl has IsPostBack, but Control does not

i'm trying to solve a bug in Visual Studio, the suggestion is to stop using UserControls and use Control instead..
5600

Sorting Gridview in Visual Basic

I am trying to sort a gridview in visual basic using the following method, however the second line of code (Dim dv as DataView...) throws a NullReferenceException. When I debug the code and step th...
5292

insert multiple xml elements in c#

I want to create XML document with multiple elements inside. The format should be something like this:
1642

How do I edit all rows in an ASP.NET ListView control at the same time?

I would like to know how to put all of my ListView rows into edit mode at once. I am not looking for the traditional behavior of editing each row one at a time. The answer can be in either C# or
2900

Partial postback and update panel problem

i have one label out of update panel and one button inside update panel. in button click event i update the label text. when i run the code and click on button then partial postback occur and button

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.