I am building a search where I need to implement couple of features in it among others.
1- It should bring all synonyms, like if someone searches for couch, it should bring in matching results for that couch plus linguistic matches like (sofas, cushions etc). To accomplish that I am using Full Text Search. In my query I use FreeText but it does not yield the required results. That's what I do,
select * from Furn_Products Where FreeText(FurnName, 'Couch');
It should bring Names containing Cushions, Sofa and Couch off course but it only brings Names with Couch which I could also do by simple Like query. 2- I need to check for typos, like if someone types soofa, it should bring in results for sofa, couch etc.
i am trying to implement ldap features to my web application in asp.net C#......
i implemented the ldap features in such a way that,if the ldap path is given like:
ldap://serverneame/ou="sdfsd",dc=""",dc=""
this will allow all the groups under this server and domain how can i differentiate between the groups for example consider an hospital i want this application to be accesible only by doctors,even the cashiers of the hospital will be able to access my application,how should i not allow certain set of groups to be authenticated to my application.
How to implement search features in ASP.NET MVC applications
I have a program designed using Asp.net MVC and c#
I want a simple way to implement a search for the data that I have using the models and Controllers
I did it by doing a script in a page itself but I want it by using Models for example I have a table with ( Mean, STD, Parameter , etc )
I want to put these in a dropdownlist and there is a text box to write the value also, there is a flexibility in adding more than one dropdownlist <<< not important
I need to implement the following feature for a shopping cart using profile:
1. User opens the site from Computer A and selects items which are added to the shopping cart. Now suppose the User logs in the same items should be displayed in the shopping cart as before he logged in. Now say he adds some more items to the shopping cart and logs out, then the items he added newly should also be displayed in the shopping cart.
2. If the same User as in Step1 opens the site from Computer B and logs in there should be a different profile entry for him and he is not to be shown the items that were selected in the shopping cart in Step1.
I feel I need an implementation of the profile on per user+ computer basis for logged in Users. We have this kind of requirement for a B2B site where companies will have only one common login and it will be used by many Users to order items.
I am making application in asp.net and I wanted to implement security features in my application I want help from you experts with good logic on implementing security Field Level, Button Level and different DIV section level security. Where I wanted like read only, addition, edit and delete and also I can make Groups and then assign user in that so that group security I can give. Customize security for some users.I am ready to use some DLL or Active X which give me above.
Before I was using database for security logic where in I was putting some codes in comma format and was looking that for specific control on form load but it have disadvantage that when some user have access to database that can alter make problem.
I'm using VS 2008, .net 3.5 and C#. I'm using Ajax Modal popup to dispaly a panel that has HTML file upload control when user clicks on the update button in the gridview control. The prolems that I'm having:
1. After i click the upload button in the popup, everything is processed but then the popup would close itself. I would like it to stay there with the proper message displayed and only close when the user clicks on the cancel button.
2. When I click on the Upload File button, a Page_Load event is raised to the page, CtuMain.aspx.cs, but this is before the popup code upload the file. I would like to enable or dis-able my gridview's editWorkingDoc and btnUpdate buttons based on if the file upload is successful or not. I thought a Page_Load event to the CtuMain.aspx.cs is supposed to be raised when the popup closes but that is not happening. How can I fix this?
I have been learning ASP.NET my self and is about to dive into the nitty gritty by creating a club website for a club.
It will be basically pretty simple. It will have around 4-6 pages consisting of:
1. Homepage/News
2. Gallery
3. About
4. Contact
5. Calendar for events
My question is should I use MVC to develop such website? As I am totally a noob in MVC development, but if it is better then I would need to learn MVC first, otherwise I'll just do it the standard way.What should I use for the calendar of events?
I was asked to build a couple of small and basic websites, without the use of database connections, just plain forms with information and a couple of images and forms. So my question is, if I only use those "html" controls of the toolbox, the performance of the site will increase against those with lots of .net controls?
Some one told me to use php or any script language to do that kind of stuff, but I only know to code in .net.
Basically, what I want to do is to get all my data in 1 statement and then pull data from that into a GridView. I already have the columns that I want displaying in the GridView, but now I want to insert a footer row in between the header row and all the datarows, that contains a couple columns that will be the same for every row in the GridView. So something along the lines of this:
I've got a c# handler that serves up audio files I've generated using text-to-speech. When the files are written to disk they sound fine, but when I try and play them in a browser (via the handler) using a quicktime plugin it cuts them short at about 2 seconds.
Inside the handler I'm using the following code...
I have set a couple of my DetailsView fields to readonly=true. In Update mode the fields are readonly but in Insert mode they are not readonly. What do I do to set it to readonly or blank (no field for entry)?
my solution in VS 2008, consisting of a dozen projects, does not compile because it gives me errors on constructors of a couple of classes, telling me that lacks the constructor that takes one parameter, which lacks the parameterless constructor, and so on.Actually I have all the correct constructors, and other times I compile without problems.I'm not understand why I have these random problems, that it is practically impossible to replicate.
I have tried several ways but just cannot figure our how to populate some formviews with the data I have brought up in a gridview.
Here is my code so far. I just showing the code behind because my gridview and forms are not a problem. Where I am stuck is at the GridView1_SelectedIndexChanged at the bottom of the code.
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Web; using System.Web.UI;
This is my scenario. I have a couple of content place holders on a Master page which by default are empty.Two of the content place holders are laid out side by side. I'll call one MainContent and the other SidebarContent. What I'd like to see happen is if a child page has content in the SidebarContent, the width of the MainContent should be adjusted accordingly.Is there a way to determine at runtime from the Master page if the calling child page has populated the SidebarContent?How do I go about this, if possible?
I searched on this all morning, but I'm still not sure. If I create a session variable to pass some data between a couple of pages, does that variable time out after it reaches the timeout period set on IIS, or will it persist for the entire time the user keeps a session alive? For example, session variable is used shortly after login and then never again. Susy uses other pages for two hours and keeps session active. Did that first session variable die after 20 minutes, or is it still there 2 hours later?
I will be adding new pages and adding functionality to current pages.
I would basically like to use new technology and but I don't know how should I add it to classic ASP pages
In other words, can I <#--include--> an aspx page in Classic asp page? Or anything of that sort, may be creating a user control in ASP.NET and using it in classic ASP?
I am creating a custom cookie and have overloaded the Iprincipal class and all that good stuff. My cookie works correctly and I am able to retrieve the roles of the users successfully, but the admins have to reload the default page after just logging in to see the admin only button. Once they visit a new page on my site and return to the default page, the button is there.
I read somewhere that the cookie is created last and has something to do with a response to the HTTP. TBH, I am new to this stuff and don't understand exactly how that works, but I see how it effects my program. I am currently creating and planting my cookie in the page load of my default page. Should I be doing it somewhere else, perhaps in the log-in page? I tried that, but the same issue still exists. Am I missing something?
I'm looking for a way to put real time features into my web site. The idea is asynchronous communication between 2 people - like a chat session. If I use the chat example - I'd like the second person to know that the first one has sent a message to him, without refreshing or doing something active on the web page. Polling is not a good idea here - so is there any other solution? the back-end could be ASP.NET or PHP (ASP.NET preferred).
I've been doing some self-teaching into how the .NET compiler and BCL and have some queries which hopefully somebody on here can answer.
1. What causes the need of a new release of a compiler (specifically C#)? Is it simply due to new language features?
2. Where do language features sit within the .NET Framework? Are they part of the BCL? Or is this based purely on the compiler and an external specification (which in turn is recognised by the IDE).
I have 7 .aspx pages in my application. I have one masterpage so all pages have the same outlook. For 3 pages I want a treeview or some other control to display that I dont want in other Pages and I dont want to drag & drop that control in those 3 pages. How can i do that?
Does an asp.net website developed locally with VWD 2010 and SQL Express need an SQL server on the the remote webserver or does asp.net have sufficient functionality to handle the SQL connection & requests? In particular I am using the membership features of asp.net to log users in and out.
At what point (if at any) does it make sense to take some of the features of a .NET web application and split them into separate web services?
For example, we have a very large web application that also calls a series of long running operations (our core business logic). We also have a dll with client-specific custom features that is called directly from the web project. Sometimes we need to move very quickly to change these client functions, often in hours.
However, if we make a change to the client-specific features (or an emergency change to the core features) and publish a new project, then it would kick all the users out the system as the app restarts. It would seem like there's a better way ... but I'm not sure what it might be ...