Solution 1: Create Folder in your projetc and keep your .cs files in that folder. Right lick on project and select "New Folder" Soultion 2: Create an assembly of external classes and install in GAC. Now, you could access the code without copying to local directory. Sanjay Sansanwal www.sansanwal.com
S Sansanwal
Posts
-
Project options in VS .NET -
setting the property for radioButtonsLoop through radio buttons and check which are ticked Sanjay Sansanwal www.sansanwal.com
-
string replace() problemstring aa = @"\document\test"; aa = aa.Replace(@"\", @"\\") ; Sanjay Sansanwal www.sansanwal.com
-
resume parser helpLetting upload user their resume and then parse them would be difficult as each user might have different format of resume. The best way is to have all fields input by user rather than upload resume. User could easily copy and paste resume content in your input fields like name, address, phone or work history. Sanjay Sansanwal www.sansanwal.com
-
How to refresh data in dropdownlistIt seems you have code to populate dropdown wrapped with IsPostBack condition. make sure you populate it in post back also Sanjay Sansanwal www.sansanwal.com
-
open excel file in asp.netIts because asp.net runs under aspnet user. Do, Open ur web.config file, just below the authentication tag write this line: www.sansanwal.com
-
please help me.check your stored procedure parameters. It seems that you are not passing a parameter with type as nvarchar(500) Sanjay Sansanwal www.sansanwal.com
-
HELP!!!! DataReader error "No data exists for the row/column"you need to call Read method of reader before accessing any row. The read method points the reader to first row. So, in your code, add myRDR.Read() before lblTest.Text = myRDR("TestCount") Sanjay Sansanwal www.sansanwal.com
-
how can i change the font of listviewhave a look at http://www.codeproject.com/aspnet/ColorListBox.asp Sanjay Sansanwal www.sansanwal.com
-
Convert percentage to pixel width (textbox)why don;t you use this.texbox.Width = Unit.Percentage(25) ; Sanjay Sansanwal www.sansanwal.com
-
C# 'static' variables on the web?Everyone who runs an instance of a particular page can modify the variable. Each session gets it own copy of shared property. Sanjay Sansanwal www.sansanwal.com
-
Adding text to textbox server control after createdYou are assigning value to _Text property and not to Text property of TextBox created. The best way is to have the textbox control declared outside the control_load function. TextBox class private TextBox1 As New TextBox Public _Text As String Public _ID As String Public _Wrap As Boolean Public _Rows As Integer Public _Columns As Integer Public _TextMode As TextBoxMode = TextBoxMode.MultiLine Public Overridable Property SetText() As String Get Return _Text End Get Set(ByVal Value As String) _Text = Value TextBox1.Text = value ‘ DO this for all properties End Set End Property Public Property SetWrap() As Boolean Get Return _Wrap End Get Set(ByVal Value As Boolean) _Wrap = Value End Set End Property Public Property SetRows() As Integer Get Return _Rows End Get Set(ByVal Value As Integer) _Rows = Value End Set End Property Public Property SetColumns() As Integer Get Return _Columns End Get Set(ByVal Value As Integer) _Columns = Value End Set End Property Public Property SetID() As String Get Return _ID End Get Set(ByVal Value As String) _ID = Value End Set End Property Public Sub Control_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init TextBox1.ID = SetID() TextBox1.Wrap = SetWrap() TextBox1.Rows = SetRows() TextBox1.Columns = SetColumns() TextBox1.Text = SetText() TextBox1.TextMode = TextBoxMode.MultiLine Controls.Add(TextBox1) End Sub ControlLoad class Dim objFormControl As New FormControl.MultiText 'FormControl = project name (DLL) 'MultiText = class FormControl._Wrap = True FormControl._ID = "txtTest" FormControl._Rows = 3 FormControl._Columns = 25 Me.controls.add(FormControl) FormControl._Text = "Textbox Text Change" Note: The best way is to inherit to your textbox calss from WeControl TextBox itslef, then you would have all default properties plus you could overide any property Sanjay Sansanwal www.sansanwal.com
-
Strange Page_Load behaviorThe problem is till page_load, the page don't know about the controls parent. It does this all work in OnInit function. Sanjay Sansanwal www.sansanwal.com
-
email attachmentTry http://www.aspemail.com Sanjay Sansanwal www.sansanwal.com
-
Look into the window registry in client sideOpen Regedit32.exe and give permission to registry entry to ASPNET User This posting is provided "AS IS" with no warranties, and confers no rights. Sanjay Sansanwal www.sansanwal.com
-
Raise a method on a button in a usercontrol, from the page where usercontrol is includedRefer http://www.codeproject.com/aspnet/SearchWebUserControl.asp[^] Sanjay Sansanwal www.sansanwal.com
-
saving setting to the web.config filerefer http://www.west-wind.com/presentations/configurationclass/configurationclass.asp[^] Sanjay Sansanwal www.sansanwal.com
-
email attachmentRefer http://www.codeproject.com/aspnet/ASPNETwebmail.asp[^] Sanjay Sansanwal www.sansanwal.com
-
Data Fetching - Class or WebserviceCreate a separate project(classes) that handles all database stuff and reference that in your project. Sanjay Sansanwal www.sansanwal.com
-
passing a function name as a paramterRefer http://www.codeproject.com/dotnet/MethodName.asp[^] Sanjay Sansanwal www.sansanwal.com