asp.net-3.5

Which is a better method for storing images - folder or SQL Server as binary?

Hello, I am planning the development of a photo gallery application for a client. I am developing the app in asp.net 3.5 and would like to develop it so that I can re-use the application across multiple platforms using various front-ends. Basically, I am wondering what are the dis-advantages and advantages of storing images in the datab...

WebResource.axd not rendered in HTML

Hi I'm having problems using the updateprogress control in ASP.NET. I've successfully created a small project using this control successfully, but when I created a simple .aspx page in my solution using the same code then it doesn't work. There is a mismatch in the rendered HTML code, where it doesn't work it is missing sections, e.g. ...

Upgrading to ASP.NET 3.5

I have a server with some asp, asp.net 1.0 and 2.0 running on them. Now I'm planning to host 3.5 apps on them. Do i have to make any changes to server other than installing framework to make it handle all my previous version apps? Do i have to install new IIS or i can use same iis for 3.5? Do i have to install ajax newer version to...

Problems using the UpdateProgress control

Hi I've inherited a web application which heavily uses Anthem.net. There is one operation which is acting slow and I've been asked to add a loading icon to signal the user that information is being fetched. I started working on using the asp:updateprogress control which works normally on the page with asp:updatepanel. But when the trig...

Modify the Asp.net Scriptmanager Ajax History

Using the Ajax-History Function of the Asp.net Scriptmanager in Asp.net 3.5 is a great way to support cross-browser history for Ajax-enabled applications. So we are using this functionality in our newest project (a asp.net 3.5-WebForms-Application). The most important issue for us in doing that are clean urls though. So as we are only ...

not able to find nunit.framework while using icsharplibrary

Hi, I am trying to code for unzipping a file after uploading it on the sever and using following library to achieve this: http://downloads.sourceforge.net/sharpdevelop/SharpZipLib_0855_SourceSamples.zip But i am not able to add reference nunit.framework in my application. Where can i find this framework? I am not able to find it...

How to Import Namespace on ASP.net Page

Hello All, I have created a Class named SearchableGridView in my App_Code directory. I'm using <Assembly: TagPrefix("MyApp.WebControls", "SearchGridView")> Namespace MyApp.WebControls I have referenced it in web.config as: <add namespace="MyApp.WebControls"/> I have also included the following on my content page: <%@ Import Na...

how to clear gridview

I want to clear my gridview. I have 2 GridViews and Has Select Button On It. on Selecting this button that item goes into the second gridview. now the question is how should i clear the second grid view. I am trying the clear method but clear method is not found in my visual studio.. ...

System.DirectoryServices.AccountManagement Performance Issue?

The following C# code (.NET Framework 3.5) returns name and description of all users for an AD Group "xyz". It works great as long as it returns a few number of records. But, it is very slow when it returns more than 100+ records. Any suggestions would be greately appreciated. Thank you in advance! var context = new PrincipalContext...

Namespace or type specified in project level imports does not contain a public member

Hi All, I have an ASP.NET 3.5 web application project in which I'm trying to implement a searchable gridview. I originally started the project as a web site and converted it to a web application. After conversion, my class ended up in the folder Old_App_Code and is called SearchGridView.vb. Imports System Imports System.Collections I...

What for System.Web.Extensions ?

By default ASP.NET 3.5 Web App project has references to assemblies System.Data.DataSetExtensions.dll and System.Web.Extensions.dll. With System.Data.DataSetExtensions everything is clear for me, it contains such useful extension methods as DataTable.AsEnumerable() and DataTable.CopyToDataTable(). And what about System.Web.Extensions.d...

How to obtain app.config of a different application and modify it

Hi, I have two windows application. eg ., FormA and FormB The app.config of FormA is as below <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="company" value="DSRC"/> </appSettings> <connectionStrings> <add name="test" connectionString="Testing Connection String"/> </connectionStrings> ...

Asp.net using AutoCompleteExtender

I want to use AutoCompleteExtender with textbox to auto complete user's entry from mysql database. but the problem when I run the code and enter a litter should call the webservice method but the problem that the service method return nothing here is my code so please advice me. <body> <form id="form1" runat="server"> <div> ...

How to Reference a Hidden GridView Field in CodeBehind

Hi, I have created two hidden fields in my Gridview control per the code below: <asp:SearchGridView ID="MySearch" runat="server" DataSourceID="EntityDataSource1" ShowFooter="True"> <SearchFilter> <asp:ListItem Value="PartName">Part Name</asp:ListItem> <asp:ListItem>NSN</asp:ListItem> </S...

asp.net-3.5 c# gridview databound

I have a query which return rows with specific fields SELECT First_Name, Midle_Name, Last_Name, Phone_home, Cell_home, ZipCode_Work, Phone_Work, Cell_Work FROM contact_info WHERE (Last_Name = @Last_Name) and here is my code to bind this query to datagridview control. protected void btnSearch_Click(object sende...

Using delegates to render html blocks in asp.net

I thought of a neat hack this morning, probably not original, but I haven't seen it before. I don't consider it good practice, but can help when you need to render a block of code repeatedly around your page, and don't want to touch other code or create other files (partial views or components). In your .aspx file create an anonymous d...

ASP.NET Error: Value of System.Web.UI.DataSourceSelectArguments cannot be converted to Integer

Hi, I have declared BindData as: Private Sub BindData() 'hfSearchText has the search string returned from the grid If hfSearchText.Value <> "" Then EntityDataSource1.Select += " where " & hfSearchText.Value End If Dim dv As DataView = DirectCast(EntityDataSource1.[Select](New DataSourceSelectArguments()), DataView) 'hfSort has the sort...

Help with C# HttpWebRequest URI losing its encoding

Having a problem with HttpWebRequest decoding my encoded URL. var requestUrl = "https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2example%2Ecom%2F/crawlissues/"; var request = (HttpWebRequest)WebRequest.Create(requestUrl); When looking at end request URL is becomes: https://www.google.com/webmasters/tools/feeds/http:...

Can i view the raw request made by soap wcf call

I am making a SOAP request using WCF to a third party service. The service requires that I sign the request, which I think I am doing but I get the error: Could not create SSL/TLS secure channel So I am wondering if there is a way to see the raw xml that is being sent so I can see where the problem is? ...

what is the meaning of global key word in .ascx designer files

I am having a web application created in asp.net. In that we are having designer files for my user controls. In that controls are defined like following. protected global::Common.Controls.ETextBox txtDummy; what is the meaning of global key word in above statement ...