Main menu:

 

November 2008
M T W T F S S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930

Site search

Archives

Categories

Tags

Links:

Tag: asp.net

asp fileupload control..unable to display the text from the database

I added an asp file upload control and was trying to upload the image successfully..cool.
i am adding the location of the image in the columns of a sql server table ~/yourwwwlocation/yourimagefolderlocation
now when I load the page to edit i need the ~/yourwwwlocation/yourimagefolderlocation in the file upload text box, well, i was unable to set the [...]

asp.net encrypting querystring in the URL

I didnt find a c# version to encrypt query strings in the url, please find the same below..
use System.Security.Cryptography;
System.IO;
System.Text; name spaces
public class QueryStringEncryption
{
byte[] key = { };
byte[] IV = { 0×12, 0×34, 0×56, 0×78, 0×90, 0xAB,0xCD, 0xEF};
public QueryStringEncryption()
{
//
// TODO: Add constructor logic here
//
}
public string Encrypt(string stringToEncrypt, string SEncryptionKey)
{
try
{
key = System.Text.Encoding.UTF8.GetBytes(SEncryptionKey.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] [...]

Getting the value of asp.net control using Request.Form

you have an asp textbox with the id as txtBox and the button as btnSubmit ,
now you enter the text as “Sample” in the textbox, on click of submit, in order to get  the value of the textbox .
you need to put the name in the Request.Form, like Request.Form["txtBox"], now if you have a master [...]

Asp.net Usercontrols on Sharepoint with the help of Smart parts

Couple of years back i worked on share point 3.0 development, where the scenario was to display a data grid on the share point, I found a way to achieve the same by using the smart parts, you need to create an asp.net web application, place the dll in the bin directory of the sharepoint [...]

How to run the asp.net website in the intranet using ip address

In order to run your asp.net application in the intranet site , Please share the applications directory for web, right click -> sharing and security -> web sharing , Please provide as alias name.
and
also in the IIS Manager, go to the default website folder , right click on it and select unassigned address.
go to start [...]

debugging asp.net applications from MOSS

While you are trying to host the asp.net application on MOSS and want to know the reason for “not so friendly error stating critical error encountered , then its obvious you want to know the reason for the error instead of keeping quite,
Well, there is indeed a way to debug you asp.net application from MOSS, [...]

An error occurred during the processing of . The event handler ‘onclick’ is not allowed in this page.

Hello everyone,
The above error is encountered by a MOSS developer when he is striving to host his asp.net web application on MOSS, when he uploads the test.aspx page and the page has a button with the event as onclick.
By default MOSS doesnt not fire the events raised by the asp.net controls, we have to explicitly [...]

How to disable the navigation of top level asp.net menu element

As  I am working on development of menu for the asp.net application , The scenario is like
Employee -> Add  ->  Edit -> View
Project -> Add ->Edit ->View
When the Employee was being clicked , the above set was duplicated as I was able to see as follows
Employee -> Add  ->  Edit -> View
Project -> Add ->Edit [...]