Click here to Skip to main content
15,919,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Best Method to Instantiate a Class Pin
jc.net15-Jul-09 0:36
jc.net15-Jul-09 0:36 
GeneralRe: Best Method to Instantiate a Class Pin
Bardy8515-Jul-09 1:10
Bardy8515-Jul-09 1:10 
QuestionImplementation of iDatasource Interface Pin
pulak srivastava14-Jul-09 21:50
pulak srivastava14-Jul-09 21:50 
QuestionServer Control Doesn't Work when placing google ads on the page Pin
Dhrumil_Shukla14-Jul-09 21:47
Dhrumil_Shukla14-Jul-09 21:47 
Questiondefault.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 21:02
professionalChesnokov Yuriy14-Jul-09 21:02 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:22
freshers14-Jul-09 21:22 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:00
professionalChesnokov Yuriy14-Jul-09 22:00 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
K030614-Jul-09 21:23
K030614-Jul-09 21:23 
Try this.

First Create a class in App_Code,like the below

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for Class1
/// </summary>
public class Class1
{
	public Class1()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public string test()
    {
        return "Test";
    }
}


and create the object for that class in default.aspx.cs, like
Class1 cls = new Class1();


and call the function "Test" in default.aspx.cs
string str = cls.test();


Regards,
Karthik K...

QuestionRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 21:59
professionalChesnokov Yuriy14-Jul-09 21:59 
AnswerRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:25
himanshu256114-Jul-09 21:25 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:28
freshers14-Jul-09 21:28 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:34
himanshu256114-Jul-09 21:34 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
freshers14-Jul-09 21:41
freshers14-Jul-09 21:41 
GeneralRe: default.aspx.cs can not see classes added in App_Code folder Pin
himanshu256114-Jul-09 21:52
himanshu256114-Jul-09 21:52 
QuestionRe: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:03
professionalChesnokov Yuriy14-Jul-09 22:03 
AnswerResolved - Re: default.aspx.cs can not see classes added in App_Code folder Pin
Chesnokov Yuriy14-Jul-09 22:06
professionalChesnokov Yuriy14-Jul-09 22:06 
QuestionProblem with membership provider DB created using ASP.NET configuration Pin
ptr_Electron14-Jul-09 21:01
ptr_Electron14-Jul-09 21:01 
AnswerRe: Problem with membership provider DB created using ASP.NET configuration Pin
r a m e s h15-Jul-09 0:40
r a m e s h15-Jul-09 0:40 
QuestionMail is not reached Pin
Kissy1614-Jul-09 20:56
Kissy1614-Jul-09 20:56 
AnswerRe: Mail is not reached Pin
SeMartens14-Jul-09 21:15
SeMartens14-Jul-09 21:15 
GeneralRe: Mail is not reached Pin
Kissy1614-Jul-09 21:20
Kissy1614-Jul-09 21:20 
QuestionHow to handel NULL referance Pin
vnsraj14-Jul-09 19:47
vnsraj14-Jul-09 19:47 
AnswerRe: How to handel NULL referance Pin
Brij14-Jul-09 20:20
mentorBrij14-Jul-09 20:20 
AnswerRe: How to handel NULL referance Pin
Vimalsoft(Pty) Ltd14-Jul-09 20:33
professionalVimalsoft(Pty) Ltd14-Jul-09 20:33 
Questionhow to call a method of one user control in another user control Pin
lakshmichawala14-Jul-09 18:47
lakshmichawala14-Jul-09 18:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.