rss feed Rss FeedAsp.net Coder
learn asp.net & visual studio 2008,this blog share our study record.there are a lot of solution and source code of building web application using asp.net
I might be doing something wrong, but if you have a MaskedEditExtender with Mask="99/99/9999" and AutoComplete=true and Century="2000", and you enter a date like "12/31/01", wouldn't it make sense to reformat this date to "12/31/2001"?  What ... more >>
Posted in Ajax

Custom Membership Provider - C# Template

wongLung  PostAt:Wed, 26 Nov 2008 12:28:49 GMT
Hello Everyone.I was wondering if someone could help me with a little problem I have.I've watched the video on creating a Custom Membership Provider and have found it to be very informative.  However, I have tried to create my own by creating a C# class file in my project but I can't ... more >>
Posted in Security
Howdy smart folks, I am processing a file uploaded by the user to the application. A number of steps are used to process the file, and each of these steps is handled by code in different classes. Here's my question:Is there a pattern that can be used to track the status and flow of these ... more >>
Posted in C#
Hi,When im going to run asp.net website its giving this error.Unable to start debugging on the web server. Unable to connect to the web server. Varify that the web server is running and that incoming HTTP request are not blocked by a firewall. please help me to solve this problem.Thank ... more >>
Posted in Asp.net Upgrade

Emailing and other processing

drjon  PostAt:Wed, 26 Nov 2008 12:09:55 GMT
Hi.I am usually pretty good at designing applications and architectures and so on but I am a bit iffy on this one, when it is ASP.NET 1.1 Basically, I am creating a forum. Obviously when someone replies to a topic, an email is sent out to other contributors of that topic to notify that ... more >>
Posted in Architecture

how to save image in oracle blob field?

powerZ  PostAt:Wed, 26 Nov 2008 11:37:04 GMT
Hello All,I m using vb.net2002-03. Can you tell me the code how to store the image in the oracle blob field?i tried but not succeed..so storing path temporarily..i want to store image it self in to database and also want to reirieve from the blob field...I think i've to read that image in to ... more >>
Posted in Ado.net

How do read Rows in a Dataset

rocky  PostAt:Wed, 26 Nov 2008 11:32:38 GMT
HiHow can I read individual Rows/Columns in a Dataset returned by a Webservice?Imagine that I send a single Row with 3 columns eg Title, Keyword and Description and I need to extract the 3 columns and use them in my web-page. Any help would be appreciated. Many ... more >>
Posted in Xml WebService
Most seem to agree that using DataSets in ASP.Net applications are a bad ideal.  However, it is probably the easiest way to perform batch updates.  I have a senario where I need to pull a set of records, make the same change on three fields for each record, and then update it in ... more >>
Posted in Architecture

In C# why are strings immutable?

wongLung  PostAt:Wed, 26 Nov 2008 11:01:37 GMT
Strings in c# are immutable, meaning they can't be changed. Hence any operation on them results in a new instance being created.I was wondering why did they make strings immutable? Come to think of it, creating every new instance for any operation on strings actually means overhead, then why ... more >>
Posted in C#
in one ascx control there is a button, and i write onclick event of thatnow in onclick event i written        Page.ClientScript.RegisterStartupScript(this.GetType(), "Error", "<script ... more >>
Posted in Asp.net Starter
I have a .sql file that has insert statements in it. It can be imported into DB using sqlplus editor.The syntax is SQL> @sql file path.I want to import it through C#.NET into DB. Can anyone suggest some way? ... more >>
Posted in Ado.net
Hi i am trying to create a crystal report using C# coding but instead of creating a web application under new project i decided to choose create an asp.net website with C#. The problem is i get:-The report you requested requires further ... more >>
Posted in Report Service

Developing a Custom Web Control (ASP.NET 2.0)

Robert  PostAt:Wed, 26 Nov 2008 10:34:48 GMT
Hello, I'm making a whole bunch of website components (news system, screenshot viewer, etc) that I want to be able to use across multiple websites with ease.First question:1. How do I create a custom web control? I created a new project in Visual Studio 2005, but i'm not sure I understand it ... more >>
Posted in Custom Controls

problems while creating my custom AJAX extender

ben  PostAt:Wed, 26 Nov 2008 10:17:16 GMT
Hi all I'm getting the following error's when i run my ajax-enabled -website . i have named my extender as 'CodesetExtenderCs' 1.  Expected '}'2. 'CodesetExtenderCs'  undefined  I have given the namespace in  my .js file as    ... more >>
Posted in Ajax

Distinct Recordz?

kklung  PostAt:Wed, 26 Nov 2008 10:09:44 GMT
Hi, Wish if some one could help me I have a table which contains name, tel, emaili need to import only records which have distinct email.I do need need to import data of all three fields but only which has distinct email.So need only records which have distinct email.Please help ....... ... more >>
Posted in DataControls

vs2005 Preview Data using Guid not working

kklung  PostAt:Wed, 26 Nov 2008 09:48:58 GMT
when I use the Preview Data feature of dataset designer in vs2005 and the proc takes a GUID as the value parameter. I keep getting an error that says "failed to convert parameter value froma string to a guid"I tried passing it in ... more >>
Posted in Asp.net Upgrade

adding pixel spacing in html

Robert  PostAt:Wed, 26 Nov 2008 09:47:51 GMT
hi,Is there anyway of adding a pixel space in html as it is done by the &nbsp with spaces? I′m strying to place a label in an exact position but I′m a couple of pixels short.THX in advanced, Malcolm ... more >>
Posted in Asp.net Starter

find difference in month and year in sql server 2005

lisa  PostAt:Wed, 26 Nov 2008 09:33:04 GMT
--find day,month,year --for day select datediff(d,'01 may 2008',getdate()) -- --for month select datediff(m,'01 jun 2006',getdate()) -- --for year select datediff(year,'01 jun 2006',getdate()) above working fine but suppose difference is 1 year 4 month and 2 month 15 ... more >>
Posted in DataControls

Page cannot be displayed - 401 2 2148074254 1872 520 0

sun  PostAt:Wed, 26 Nov 2008 09:23:30 GMT
In my Asp.net web application, in one particular web page(Report Page), on clicking the submit button, after sometime i am getting the Page cannot be displayed error message. Even after i unchecked Show Friendly HTTP message option in IE -- Options, i am getting the same error message. In this ... more >>
Posted in Security

Reg: How to transfer the CDB files to the Pocket PC 2003

Jess  PostAt:Wed, 26 Nov 2008 09:12:47 GMT
Hi,   I am developing the windows Pocket PC 2003 application. In this application we have CDB files for database connectivity. We need to check the application functionalities in the Pocket PC 2003 emulator.In my Desktop PC I have the some CDB files.   How to transfer these CDB ... more >>

Passing Structure to Web Service Error

Lee  PostAt:Wed, 26 Nov 2008 09:01:40 GMT
Hello, I have written a Web Service to do some address verification. I am able to call this with a utility from Crosscheck Networks called SOAP Sonar. My web service works perfectly. I have since been working on a Web Form to Call the web service. I have added the web service to my new ... more >>
Posted in Xml WebService

asp.net profile

kaven  PostAt:Wed, 26 Nov 2008 08:58:47 GMT
I want to implement profiles for my members. Is there some way to expand the default fields in the create user wizard. I want to add some fields like delivery adress and postcode. Can I add these fields to the create user wizard. And do I have to use the asp.net profile provider to modify these ... more >>
Posted in Security

Why use Clustering?

ben  PostAt:Wed, 26 Nov 2008 08:57:33 GMT
I've read over the web that enterprise level applications demand increased availability and flexible scalability of services. So if we group two or more servers so that their combined power can be utilized for enhanced performance as well as for providing better data storage, such a ... more >>
Posted in Architecture

UpdatePanel Triggers inside findcontrol?

Dick  PostAt:Wed, 26 Nov 2008 08:40:00 GMT
i have RadPanelBar server control and inside that control i have dropdownlist and other controls....i wrap up the Ajax UpdatePanel to it and i could not able to find the dropdownlist when i write trigger events for that dropdownlist.how would you do that?<asp:UpdatePanel ... more >>
Posted in Ajax

Froogle API Code error

ary  PostAt:Wed, 26 Nov 2008 08:30:19 GMT
Hi,I have created a webpage froogle api but the items dont go to froogle api base center as expected...The code is shown below...wht error have i made.... plz suggest...Imports SystemImports System.WebImports System.IOImports System.XmlImports System.NetImports System.DataImports ... more >>
Posted in Asp.net Starter
hello friendsi have table1 and 200 coulumn of table1 :) i have 647.600 records. i entered my records to table1 with for step to code lines in one day :)i select category1 category2 and category3 with select code but i have just one index.. it is productnumber and it is primarykey..So my ... more >>
Posted in DataControls

Different languages - implementation

nancy  PostAt:Wed, 26 Nov 2008 08:21:59 GMT
I'm thinking of making a multi-language site. The question is: How do I implement the different languages?My idea is to store all languages in a seperate .xml-file in a languages-folder. Att runtime all languages get read into cache. All translations would be in String.Format style, because all ... more >>
Posted in Deployment

ahhhhhhhhh, add SQL record

Bee  PostAt:Wed, 26 Nov 2008 08:02:14 GMT
someone please tell me how to finish this form on contact.aspxcontents of code.bvsapon clicking save nothing happens.  help please ... more >>
Posted in Asp.net Starter

User Control Validation

Linlin  PostAt:Wed, 26 Nov 2008 07:59:36 GMT
I created a user control with form fields (name, address, city, state, etc.)  I dropped two user controls on one page, one for Shipping, and the other for Billing.  I have validation within this user control, but they fire twice.  If I fill in Shipping's address and not Billing's ... more >>
Posted in Custom Controls

SubText Setup with SQL Database

ben  PostAt:Wed, 26 Nov 2008 07:47:59 GMT
Okay,    I downloaded SubText and thought that I had it fully setup until I got an error at the beginning of the Install.  I get the following ... more >>
Posted in DataControls

How to get the ROW max value using Crystal Syntax

Robert  PostAt:Wed, 26 Nov 2008 07:40:26 GMT
Hi there, Its easy to get a column Max value in crystal reports by using the summarize option.But, in my case, I need to get the ROW's Max value.I tried to declare a global variable Global Numbervar max;and test each value like hisif {table.field} > max thenmax := ... more >>
Posted in Report Service

createuserwizard nullrefrence exception

cjfeng  PostAt:Wed, 26 Nov 2008 07:19:45 GMT
Hi I am having some trouble adding custom fields to my database using the following code. When CreateUserWizard1_CreatedUser() fires my CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("FirstName") function is returning a null and I get an object refrence not set to ... more >>
Posted in Security

checkbox not retaining its value on postback

ary  PostAt:Wed, 26 Nov 2008 07:11:47 GMT
I am using ASP.NET 1.1 (non mobile controls).I am finding that regardless if I use the ASP.NET server control or HTML control for the check box it will not retain its checked status on post back.A simple test proves this where I have an ASP.NET 1.1 webform, both checkbox of server and HTML type ... more >>

checkbox not retaining its value on postback

ary  PostAt:Wed, 26 Nov 2008 07:11:47 GMT
I am using ASP.NET 1.1 (non mobile controls).I am finding that regardless if I use the ASP.NET server control or HTML control for the check box it will not retain its checked status on post back.A simple test proves this where I have an ASP.NET 1.1 webform, both checkbox of server and HTML type ... more >>

3Tier sample asp.net 2.0 C#

ouben  PostAt:Wed, 26 Nov 2008 07:08:11 GMT
Hiiii Friends,,, Im silent member in this Forum,,, Wel im not so good Developer,,,, I want one simple example Or a sample project that can show how to build website using 3-tier architecture...That show me DAL,BLL,Presentation Layer.... I tried my best in VB Script....but now ... more >>
Posted in C#
Hello All,i have custom dll say mysite.dll. in that there is public class called shipping. its defined as follows public abstract class Shipping{ protected Order _Order; public Shipping(Order order); public Shipping(Order order, string firstName, string lastName, string ... more >>
Posted in Asp.net Upgrade

VS2005 changing project file hierarchy

bing  PostAt:Wed, 26 Nov 2008 06:52:31 GMT
  I am having strange problems with a project I am working on.  It is a “master/detail” project in c# and vs2005 whereas a listbox displays a set of dates from a datatable on a SQL server, a date is selected, respective classes for that selected date is queried from the same datable ... more >>
Posted in Asp.net Upgrade

ASP.Net Page Cacheing

drjon  PostAt:Wed, 26 Nov 2008 06:45:14 GMT
I am  generateing GIF file on the fly (i.e. at the runtime) in Page_Load event of the Web Page, I write this GIF image to Server.MapPath and displaying it on same ASP.Net Web Page. At first time I am able to display this generated properly, but I use the same link again newly ... more >>
Posted in Asp.net Starter

OracleTable to C# Class

kangshifu  PostAt:Wed, 26 Nov 2008 06:30:56 GMT
 Hi friends, Is there any tool for oracle, that creates entity classes and data access layer classes (insert, delete, update etc) from oracle tables ?If not, i will begin to write one. Thanks  ... more >>
Posted in Ado.net

AjaxControlToolkit cannot run on my win 2003 server

kaven  PostAt:Wed, 26 Nov 2008 06:28:09 GMT
I use the HoverMenuExtender control in my aspnet 2.0 project. It worked well on my machine but when I deployed it to our windows 2003 server. The ajax control will not work, and I get a scirpt error at the left bottom cornor of IE browser which says "Object expected". I have no idea how ... more >>
Posted in Ajax

ModalPopup & Screen Flicker

liangsd  PostAt:Wed, 26 Nov 2008 06:18:04 GMT
Just as with the other controls, when the page first loads you briefly see the controls before they are hidden.  However, with the modal if you set the control's visibility to hidden, it will not display when it's poped up. Is this a known bug? or someting else? ... more >>
Posted in Ajax

Web service newbie question

jing  PostAt:Wed, 26 Nov 2008 06:17:38 GMT
Hi, I don't have much experience of web services, and I am picking up someone else's code. There is a problem connecting to a server via a service. The code is as follows: String response = WebServiceEtc.SomeMethod(param1, param2, etc);It falls over when it tries to populate the response ... more >>
Posted in Xml WebService

unsupported cultures

kangshifu  PostAt:Wed, 26 Nov 2008 06:17:25 GMT
at page init, i am setting the threads culture to match the culture i read from the browsers languages collection.Dim cultureinfo As New Globalization.CultureInfo(request.userlanguages(0))If cultureinfo.IsNeutralCulture = False Then System.Threading.Thread.CurrentThread.CurrentCulture = ... more >>
Posted in Deployment

Dates and Cultues (more appropriate forum)

lisa  PostAt:Wed, 26 Nov 2008 06:16:28 GMT
Okay, I've got a site were people are going to be entering dates in US and UK format - but ideally I'd like to just have it handle all dates.At the moment, say I am getting a date of "25/05/2004" entered as a string into my TextBox (this is UK format obviously) how to I handle ... more >>
Posted in Deployment

Large application

Robert  PostAt:Wed, 26 Nov 2008 06:07:06 GMT
We are in the process of building a web application that is build from about 3000 pages. All those pages need to share session variables. Is there a way to segment the application so it is not build as one huge application. What is the best way to approch a development of an application in that ... more >>
Posted in Architecture

Frustrated with .resx files and VS.NET 2003

Dick  PostAt:Wed, 26 Nov 2008 05:45:44 GMT
I know there's a known bug in VS 2003 where content in the .resx web form files are being written over upon compilation thus defeating their original purpose. It is a pain in the neck to have to type in (or copy/paste) the strings in the .resx file over and over again.I wonder if somebody knows ... more >>
Posted in Deployment

Displaying business rule violation messages in the UI?

shine  PostAt:Wed, 26 Nov 2008 05:45:17 GMT
Hi all,Many times it has been necessary to display messages relating to business rule violations from the Bll in the UI. Usually we simply return an enumeration from the Bll method that is called from the UI:...res = Bll.ProductManagement.StoreProduct(args, ...)If (res = ... more >>
Posted in Architecture
Hello,I have a custom composite control where I dynamically generate the child controls in CreateChildControls.  The child controls themselves are not declared as pre-existing member fields of my custom composite control since they are dynamically generated.  I've noticed that ASP.Net ... more >>
Posted in Custom Controls

Cannot get value from dropdownlist

rocky  PostAt:Wed, 26 Nov 2008 05:34:02 GMT
 I tried to use this.DropDownList1.SelectedValue this.DropDownList1.SelectedItem.ValueBut, none of those will get any value from my db...Does anyone know how to solve this problem??? ===c# code===  SqlConnection connection = new ... more >>
Posted in Asp.net Starter

Determining if a string is Romanic or Asian

dongfeng  PostAt:Wed, 26 Nov 2008 05:25:05 GMT
I am storing page content in sql server in diffrent languages. When I return the string from the database I need to determine if the string is a Double byte or single byte language. Any Ideas? Thanks ... more >>
Posted in Deployment