it's simple settings.
Can any one help me to hide and unhide data in a column(ItemTemplate or BoundColumn). I know how to hide (using style, overflow, hidden process). I would need solution, specifically, to unhide data that has been hidden with the above way.
For example, I have 200 characters length data that need to be displayed in a column. I am displaying only 10 characters by hiding the rest in one situation. In another situation, I need to display all 200 character long data.
Also I have a question to add, I want to declare (and set values to) a bunch of variables in a separate file. I use "Imports classname" and in the class I declare them using "Public Shared variable" and "variable = value". Anyone have a better idea/way?
I'm fairly new in ASP.NET and I'm having trouble understanding how to set up forms authentication in my ASP.NET 2.0 web-application using user information from an existing database.
There's nothing wrong with the current forms authentication using the default SQL database aspnetdb.mdf, but since this application is already using another SQL database with the company staff information (among other stuff) which is updated continuously, i.e., creating/deleting "users", it would be redundant.
From what I got to understand so far, that is possible, though I don't understand if I:
- can reuse the existing login/authentication controls/pages;
- can set up the application to use the DB without using the aspnet_regsql.exe tool;
- should make changes to machine.config or web.config, and what changes to make, etc;
Though I searched the web, I couldn't find the answers.
+ If you want to simply reuse the default db schema used by the default ASP.NET providers in your existing Db, you can run the aspnet_regsql tool against your database.
+ If you want to use your own custom db schema with the supported services like membership ..., you will need to implement custom providers, then configure in the web.config file, and you can use the built-in controls such as Login controls as well as the other services.
Hi there. The AdRotator control doesn't really work that way - it selects a picture to display from your advertisements.xml file and doesn't apply a timer. A refresh on the page from the browser would allow AdRotator to potentially select a different, random picture.
But I suppose if you really needed a timer-based swap of images, you could use an AdRotator in an Atlas UpdatePanel. Atlas is Microsoft's AJAX implementation for ASP.NET.
I'm using DetailsView and ObjectDataSource, and I'm very happy with this combination. But I have one problem... Let's say what my BLL object has a method called Insert, and this method thrown on Exception (like duplicate keys, etc). How I get this error in my Asp.Net page? Who call the Insert method is the Asp.Net via reflection, and give not chance to me protect inside a try-catch... has no event handlers like "OnError" neither in DetailsView, neither in ObjectDataSource ....
Then, what the method recommended? Someone has a idea?
You can create a handler for the Inserted event of the ObjectDataSource and check the e.Exception of the event data (ObjectDataSourceStatusEventArgs) to see if there is any exception thrown by the insert method. You can do the same thing with the ItemInserted of the DetailsView control.
Just one observation: This isn't intuitive... the Inserted event, in theory, is raised only if one item was inserted, i.e., has not exceptions...
Actually, the Inserted event occurs in two common cases:
+ After an item is inserted.
+ And when an exception is thrown from the Insert method, it means if your Insert method throws any exception, it should be captured by the ObjectDataSource ( or more exactly the ObjectDataSourceView) and wrapped in the event data object.
i have built and deployed websites in my learning process gearing myself for when i leave colleg, but ithink is time i move on to the next stage and learn the following
1. encrypt database
2. encrypt the data been request and sent from server which was retirved from the database to clients page, so that they can view the detials
i was wondering if anyone could point me into some tutorials to do this
-- modified at 19:46 Saturday 22nd July, 2006
was doing some reading and i suessing the process that i would have to take is to retrieve the information from the database and encrypt and then store the encrypted value in a cookie and then access the cookie to display the information on the webpage ????????????????? is this the correct line of thought...because its a full encryption i want to do, i want to simulate that i am wrking with sensitive data
I want to develop a small intranet application involving a server and around 10 clients in a small office environment with login and password . Where the server admin has the rights to monitor all clients and their mails but the individual client can only access his mails and data.
Could any body help me out for this it would be a gr8 help.