How To Change The Radgrid Case Sensitiveness Using Webconfig
Jun 7, 2010
since Grid filter is case sensitive , i used the code below RadGrid1.GroupingSettings.CaseSensitive = false;
Can weconfigure the same thing webconfig so that in the whole project case sensitiveness of radfilter will be false.
I have my project set up with the virtual path "/MyVirtualPath", create the virtual directory in IIS 6 (W2003) and everything works fine. Then to work better with Google Analytics I change the virtual path "/myvirtualpath" and change all redicecciones and links to lowercase. also applies the class "lowercase route urls in aspnet mvc" and works perfectly.
The problem I had to modify the virtual directory in IIS, delete virtual path "/MyVirtualPath" and I created the new "/myvirtualpath", but in all cases I use tilde "~" or where I make a "RedirecToAction" (which should take "LowercaseRoute"), continues to maintain the virtual path "/MyVirtualPath". For example, if I see the HTML source code in the browser, see "/MyVirtualPath/Content/Site.css" instead of "/myvirtualpath/Content/Site.css. "
i have radgrid in my asp.net web page with some columns and rows in each row i have some checkbox that they are in one column. so i have one checkbox in each row and column.
i want when the check box checked, write in header that checkbox(in that column) write the number and so in that row, write the diffrent number. i want it occure client-side.
When a 'Update' is clicked the row shows the Edititem mode.
I have a check box that when it is 'clicked' I want the other fields to dissapear/become read-only.
How can this be done client or server side?
My best guess is for server side I have something like this below.. but then in the event how do I get access to those items in edit mode and change them ?
I was creating another usercontrol with Telerik's RadGrid and Calendar.
[code].....
The problems are, (1) when I click the submit button. the data in the RadGrid is not changed. (2) how can we check if there is nothing selected in the Calendar controls, because there is a date (01/01/0001) set even if we do not select anything from that calendar, thus Calendar1.SelectedDate != null is not enough.
We have a WebForms based web application with these properties:
Large Business Object Framework (Close knit DAL / Business Objects / Serverside Validation, similar to CSLA) Precompiled and placed in the Bin folder. Uses a lot of UserControls.
Looking at overviews of MVC it seems there is a distinctive split on how the code is split up, there is no Session State (which seems odd, but possibly ok if the website is primarily serving content?) and it appears constructing pages looks similar to classic asp (use of <% %> tags)
Do I have the wrong interpretation of MVC? Is MVC just a specific architecture, or is the way things will be going and WebForms will eventually be dropped? How does one split the M-V-C when an existing Business object Framework exists? Why is there no session state? Do UserControls work in MVC? I realise this could be subjective, so mostly looking for your comments on the subject to make my up my own mind.
I have an aspx web page with a formview designed in Visual Studio (asp.net 3.5) that uses parameters to update my database. Very often, someone puts their name or address in all caps through the web, and then submits it. As there seems to be so many variables out there to consider when changing case, I'm thinking that when someone processes it, they would have a button that they could click that would change certain fields (ie firstname, lastname, street address) to the case that it should be therefore updating the sql fields (and yes, I want to update the database, not just the presentation).
I've tried using several scripts/things I found, but think since I know a little about a few, I'm getting them mixed up. I've been stubborn enough to work on this for days, and am now running behind!
I have a Formview where students put their information in such as name, address, etc. The text boxes are bound to my database, so once they are done, they choose to update, and my database is updated with their information. My problem is that the students often use All Caps to enter in their information.
I think I need the StrConv somehow, but I just can't seem to get this done. I've seen where it could be done with text boxes, but not when they were in a Formview using parameters.
I have a validator on a textbox that validates against a list to ensure that the user doesn't input the same name. When testing it, if I type in the same name including the same case structure, it returns an error. If I change one letter to a different case, it doesn't return an error but rather my SQL server returns a duplicate error. How do I change the server-side validator so that it picks up duplicate names regardless of case?
I have a custom object that I'm throwing into the viewstate on an async postback. If I step through the code, I can put the object into the viewstate, then call the object from the viewstate and cast it with no problems. The code, when stepped through, has no issues whatsoever. However, when I go to FF and run it, I get "60|error|500|Error serializing value 'Case' of type 'Case.'" First thing that hits me as weird is that the value is being named as the type. It's not like value oCase (an instance of Case) of type Case. I've checked that all containing objects are set for serialization, compiled and rerun the web app.
I have certain information in my webconfig such as the name of the database i am connecting to. However, I would like a situation where my aspx is able to obtain that information as well and display it in a label. Hence, how do I go about doing that.
I have an ASP.net website running with the authentication mode on the web.config file is Windows. The webpages at the root do not need to have login & password form.
Now I created a subfolder called 'reports' and would like to implement a few web pages with the login & password authentication form.
Question, do I need to create another web.config file in the 'reports' folder and update the authentication mode="Forms"?
still, I do get the error that I have to provide at least one alphanumeric character.I do so and the error is still the same.why? is my regex wrong? I also took out the "confirm password" step. is that ok?
I'm not having much fun with connection pooling. The website I've written does dip into the SQL server all the time and quite a lot of times per page. Every time I nip into the SQL Server to get or set something I open a connection...
comGeneral.Connection.Open()
... do or get what I need and then close it. From what I've read any of the following should close the connection and return "one connection" (?) to the pool (top one, only if reading)....
... but that's not really working for me and I keep hitting the default max 100 open pools. So I've been doing all 3 of the above (again, top one, only if reading). But alas, still the stupid thing (Yes, I am aware I'm the stupid one) keeps hitting the max.
My new plan is to set pooling to false (pooling = false ?) across the entire website and take the performance hit which wont be terrible because I don't really do anything too demanding. Trouble is I don't know how, other than setting Pooling = False, but where exactly in the webconfig would this bit of code go?
I have a website application which performs a function which I need to integrate into my main website application. Right now I'm getting errors as I copy and paste the parts of the web.config file from the working app into my main app. When I just paste in the assemblies, I get 2 errors. I'm just going to just paste both of them here and if you think you integrate them, I'd really appreciate it if you would paste it here in the thread.
[Code]....
And here is the one I'm trying to integrate into the one above:
I have created the asp.net application and Hosted on Different Server(i.e Test,Development). its is an Intranet Application But When I tried to Host on Production the WebApplication dont work when I check the "Integerated Authentication" and when I check the "anonymous Access" i get null value for the HttpContext.Current.User.Identity.Name.ToString() returns null. and User.Identity.IsAuthenticated also return false. what changes do I have to make in IIS and Webconfig of my application so that it can run on ProductionSERVER
I would like to use the webconfig file to store some values, which will be used in my application in order to execute some methods, one a parameter for a timer, the Interval property and the other to pass as parameters in a method.
So, my questions are:
Where in the webconfig can save these parameters in order to make them accessible to the applicationHow do I access these parameters in my application in order to use in the aspx page for the timer control and in the code behind for a method to use
I have a dropdownlist which is connected to object data source for displaying data, now what I need is to connect to database using semicolon seperated list from web.config connection strings and then connect that to dropdownlist.
i have a above connections string in which i use UserName: taha1_ID2, Password: taha321, and SQL Server DataBase Name:taha1_web2 How can we encrypt it in web.Config