hi, In a simple way, we can say like this... Consider that your website is a database interactive application.so, you web site application will have code for displaying the data in the page and also for retriving the data from the databse. if you did the coding of retrival from DB and displaying it in UI in the code behind page, you are following single tier architecture. suppose if your DB retrival is a separate class or project consists of generic DB interaction class without depending on the Application context then it is two tier architecture. Means you DB layer is separate from UI layer, two components. if you still separate the Business Layer then 3 tier architecture, that is the DB Layer as earlier and separting the UI as entity object being used in UI like for example Class Employee with business logic and Employee object is being used in UI layer(code behind file) then three tier architecture, having DB layer for DB interactions and Business Layer as Employee and third part is code behind file. still we can proceed like this by using COM and web services. these are N tier architectures. Cheers:) asithangae
asithangae
Posts
-
Difference betwen single tier and N tier application. -
Response.Content TypeResponse is a object of ASP.Net, you cannot use that in window application. If you want to open some document use shell command cheers asithangae
-
Custom DataGrid displayYou can do that, use Template Field columns in grid view and arrange the column data as needed. but you can bind the controls using server tags not by data field property. like Text='<%#DataBinder.Eval(DataBinder.GetDataItem(Container),"Key")%>' place you controls as needed here... Cheers asithangae
-
popupPlease check this link, this may useful for you... http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201[^] asithangae
-
popupHai, decrease the zIndex property of flash container and also keep the focus on new modal box. asithangae
-
HOW TO MAKE PAGE USING MENU,TREEVIEW AND GRIDVIEW CONTROL PLEASE HELP, PLEASE HELPhai, Its simple, put all that parts you have made has a usercontrol and create a master page. create pages and use the master page, write appropriate code to do the business logic. there are lot of examples available in net. Cheers asithangae:)
-
Cells(2).Text returns an empty stringHe use this logic in rowdatabound event, i asked him to do the same after databind. i think you can know the difference. Cheers asithangae
-
SQL Server Does not exits or Access deniedHai, add the user ASPNET to the database you are using. select the user from the list not by typing... the user must be in the list of local users list or add the production webserver aspnet user to the database, if iis and database are in different machine. this will work.. lot of links is available in google, try the appropriate one for you, cheers asithangae
-
Cells(2).Text returns an empty stringHai, what the method you are doing is correct. the same logic is to be used after the data binding of grid and not in the databound or row databound event. this way...
foreach (DataGridItem dgi in dg.Items) { // do the needed logic here }
really it works. Cheers asithangae -
Runtime PolymorphismHai all, we all know the concept "overriding" is the example of runtime polymorphism. now in .net 2.0, Look at this..
DataSet ds = new DataSet(); DataTableReader DSdr = ds.CreateDataReader(); DSdr.NextResult(); DataTableReader DTdr = ds.Tables[0].CreateDataReader(); DTdr.NextResult();
here DSdr and DTdr has the method Next Result(); the reference given by dataset will work for NextResult and the reference given by datatable will return nothing. both the methods returns the datatablereader object reference and the the reference returned by dataset will only work for Next Result. I think this can be a example of Runtime Polymorphism Cheers asithangae -
ASP.NET and XMLhai, Use this code.
DataSet ds = new DataSet(); ds.ReadXml(Server.MapPath("filename with path")); //for string data DataRow[] drs = ds.Tables[0].Select("column name = '" + "needed filter value" + "'"); //for numeric data DataRow[] drs = ds.Tables[0].Select("column name = " + "filter value");
read the xml to the dataset and use needed filter in the select method of datatable object.now the drs is collection of rows satisfying your condition. iterate that and use it. i think this solves your problem. Cheers asithangae -
Help Me:Can we select sum of 2 columns in one select statement?hai, check this it works for you...
declare @mon decimal declare @tue decimal select @mon = sum(ContactID), @tue = sum(ManagerID) from Employee select @mon,@tue
cheers asithangae -
Help Me:Can we select sum of 2 columns in one select statement?hai priya, you have not added Group by keyword in that, is that may be problem? using aggregate functions without groupby may also create problems. change that and try... Cheers asithangae
-
ASP.Net Controlsusing master page is the best way. partition the page as you wish. if you want you can make different sorts of partition make two or three master pages. create appropriate user controls with adrotator controls and write code for binding the data in adrotator controls in the user control itself. start creating the page and in the page use appropriate master page with the user controls, so you get the page as you need with partition and with advetisements. if you are a advanced programmer load the user controls dynamically and set the master page too. Cheers asithangae
-
web service - how to setup accesshai, try to access the web service directly without using that in a application. if you are able to invoke the method of you web service, then you can try the same in application. if you have any problem in accessing the service do the needed thing and try to do the same in application. if you are able to access the method directly and not by the application then check the security part of the web server where you have published it. you can do this easily.. cheers asithangae
-
.dll ? A solution file not presentthis solution is applicable if the .net frame work is 2.0. for visual studio 2005 or for asp.net 2.0 projects their is no need for a solution file, select open website from the file menu and the web application will be opened for you. one more thing if you are not having enough code behind files you cannot modify the application check that they have written inline coding for them. just rebuild after modification and publish that in the ftp site, you have provision for that in visual studio 2005. cheers asithangae
-
The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not availableplease check with the administrator the correct smtp address and check that is it blocked for usage. otherwise the firewall or any securty measures will restrict the process. it has no link with the application or code error.it is the server which restricts the mail. cheers asithangae
-
c# code for downloading a video fileset the mime type for video.
Response.Content-type = "application/avi"; Response.AddHeader("content-disposition","attachment;filename=sample.avi");
Here i used the video file extension as avi, if you want to change you can do as you wish.the sample.avi is located in application folder in my example, change it to appropriate application relative path. i think this code may be usefull to you. cheers asithangae -
How to Add a linked image in datagridVsree has said a nice way, we have one more way using html controls. use a anchor tag and inside that use the image tag, set the image src to the image path and href of anchor tag to the redirection path. if you use this way, no need of writting any code to the page. but you have to use the template column any how. cheers asithangae
-
Masterpage problemwhen using master page, the id of each and every control will be prefixed with the content placeholder id of the master page except the 'div'. so check the textbox in the source after you get the page in the browser and use that name. and also note the prefix of the control, it will be same for all the controls in the same place holder. better use js to validate the controls, this will more appropriate for real time applications, validation controls of microsoft are not that much flexible to use in real ime projects... asithangae