|
Hardboiled86 wrote: how do I reference to the same instance. or am I completely misunderstanding you
Talal already given the solution to you. I am reiterating, value is assigning to your textbox. But as you inherited form1 in your class, a new object will be created and that is not same where u r textbox relies.
You can rewrite your external_class function like this
public void external_class(Form1 frm)
{
frm.strStringVarible = "test123";
frm.accessor_method();
}
Hardboiled86 wrote: classtest1 clstest = new classtest1();
clstest.external_class();
Rewrite this like
classtest1 clstest = new classtest1();
clstest.external_class(this);
Hope this helps
|
|
|
|
|
Excellent. That makes a lot more sense. Thank you.
|
|
|
|
|
|
I've seen a lot of people on other forums trying to do exactly the same but being given all kinds of wrong answers that don't work. If anyone is googling this, this answer does work. Fact!
|
|
|
|
|
difference between master page and user control
plz let me know
|
|
|
|
|
A master page is a, er, Master Page, and a User Control is a, um, User Control!
Or you could try Google[^] when doing homework...
Rhys
"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it"
They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance."
Terry Pratchett
|
|
|
|
|
Master Page is used as a content-place-holder so as to make all the pages added inside it as child pages.
Regards
Bino
|
|
|
|
|
Hi all,
I'm using "Directory.delete(folderpath,true)" for deleting a folder containing sub folders and files from server. When i'm trying to delete it, it throws an error saying 'Directory not empty'. All the files and subfolders are getting deleted, but the directory is still there. More over, it removes all the session variables also. How can i fix this issue? Please help.
|
|
|
|
|
Nicejith wrote: it removes all the session variables also.
Is it deleting ASP.NET folders like app_code, app_browser ,bin. Then application will restart and that will end all sessions.
|
|
|
|
|
No.. it deletes a user folder only.
|
|
|
|
|
Hi,
I am creating a web page which contains listbox. Listbox have a paths of file. I want to upload that files on server.
-- modified at 5:34 Friday 3rd August, 2007
|
|
|
|
|
tulsulkar wrote: I am creating a web page which contains listbox. Listbox have a paths of file. I want to upload that files on server.
Impossible until you get HTTPPostedFile object. May be possible with some activex controls.
Reason is, ASP.NET won't be having access to the file paths listed in the listbox. So it can't read files for upload. Instead of this you can use datagrid/gridview. Put a template column contains file upload control. Iterate through all the rows of grid and get fileuploadcontrol object, do the upload.
|
|
|
|
|
Is it in any way possible to use the variable defined and declared in back end C# or VB file and use that variable in corrosponding .aspx file??
If yes please tell me how. I don't want to use session.
|
|
|
|
|
You can't use the session anyhow, but if it was the way to do it, why would you not want to ?
I presume that you mean you want to use it in javascript ? Just add code that outputs the javascript to create a variable with the same value.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi there, according to my understanding about ur question u want to get access Ur variable at C# file to .Aspx file.
For this you need to Define that variable as public and at aspx file you can use that like this
Suppose variable is
public int a=1;
.aspx file code
<%=a%>
Note that you can use any thing defined or property to .aspx file but in tag <%%>
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
This is exactly what i wanted. But I am still unable to access the variable.
On compiling it gives the error: a not defined.
|
|
|
|
|
Anurag Gandhi wrote: On compiling it gives the error: a not defined.
It should be a public variable.
|
|
|
|
|
Thanks.
Now it is working.
|
|
|
|
|
do u get the solution or still confuse.
keep in mind that u can use" <%%> " for any this described in c# file to be accessed in .aspx file.
I dont know why the such good coders here in thsi forum says that this is not possible.
if any query do amil me at personalmail@mysampatti.com
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
please explain to me the concept where if 1 user login into his/her account, he/she want to customize their account interface, where it will be save?...
how it happen?
how many database or what server should i use?
if other user login, then they also do the same thing, they want to customize their account, where it save and whats the steps?..
thanks
|
|
|
|
|
mmm!@# wrote: if 1 user login into his/her account, he/she want to customize their account interface, where it will be save?...
i'm sorry, what did u mean if the user want to change his/her account?
why dont u use update query..or maybe i'm missing u'r question
Kind Regards,
Tomi
|
|
|
|
|
sorry for the confusing quesetion. here it is again...
i didn't mean the user wanted to change his acc.
what i meant is that,after the user has logged in to his acc.
the user can customize his acc. (such as changing the color, background)
then, whnever that user logged in back to his acc.
the interface will be as the user customized in his previous login.
thnx
|
|
|
|
|
If U want user can edit their account interface, u should use cms. Of course it will save in database.
Regard,
Edwin
|
|
|
|
|
The simplest way is to use a role/privilege table to a given user and provide different setting for each user. So when a user logs in s/he can view the corresponding page only.
Regards
Bino
|
|
|
|
|
Hi
I need some help.
how do i write an asp.net v1.1 to retriving .aspx feedback form and send the result to my email which is yahoo mail
what namespace should i used
what background process should i wrote.
And reference or sample code, i appreciate so much thank you
|
|
|
|