|
I am using WebForm satori_recherche from here i tried to call method of this form(satori_nouveaustructure )
Here is the sample code.
using (satori_nouveaustructure oForm = new satori_nouveaustructure()) {
oForm.CurrentContact = (Structure)ObjectContext.Current.LocalStorage.Create(typeof(Structure));
oForm.CurrentContact.Nom = textBoxNom.Text;
oForm.CurrentAdresse = oForm.CurrentContact.AdressePrincipale;//(Adresse)ObjectContext.Current.LocalStorage.Create(typeof(Adresse));
// oForm.ShowDialog();
}
Error show which is in bold one
Regards,
LEE
|
|
|
|
|
I'm pretty sure you can't just create a new form (Page) via its constructor, only the ASP.NET runtime will create Page objects during the request lifecycle. By the looks of things, you're trying to show another dialogue in the new form. Web applications work completely differently to WinForms apps, you'll find it very difficult to try and convert the UI code. I would suggest you try keeping as much business logic as possible and start the aspx (UI) coding from scratch since the code is totally different from WinForms.
|
|
|
|
|
Thank for the comments. But still have this errors; can you solve this.
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class
Regards,
LEE
|
|
|
|
|
Lee Ponratnam wrote: When I tried to convert to Windows app to Web Application
How you manage to convert it ? Is there any tool or you have done manually ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I am doing manually
Regards,
LEE
|
|
|
|
|
Then you're in for a WORLD OF HURT!!!!!!!!
Web / Win apps are so completely different that it's gonna be virtually impossible - and given that you're familiar with win apps, you'll find the "way to do things" is totally different (eg - you're trying to create a Page object etc....)
Perhaps a better way to do it would be to abstract as much functionality as possible into a middle tier - that way you're not furkin around with presentation code, then write a web UI from scratch...
I'll help if you need it..
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all,
I'm trying to access the contents of a remote file on a server using the IUSR, I have set all the security access that I know of on the server for the IUSR. (Unless I forgot something.)
(I'm using old school ASP)
I tried the following:
fsDB=Server.CreateObject("Scripting.FileSystemObject");
var fileName = "\\" + "\\" + <server_name>+ "\\<dir>\\<dir>\\testfile.txt"
var remFileDB=fsDB.OpenTextFile(fileName, 1,false);
But I keep receiving the following:
Error Type:
Microsoft JScript runtime (0x800A0046)
Permission denied
Can anyone please help me.
Many Thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Programm3r wrote: remote file on a server using
If the server doesn't have RW permission for the specific directoy, you won't be able to perform some actions for the directory.
If the server has an user control panel, Give permission to that directory for IUSR. It doesn't mean anything applying permissions to a specific file via scripting, because main subject is the server first.
I hoep that helps.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
First of all thank yo very much for the reply.
JUNEYT wrote: If the server doesn't have RW permission
What do you refer to when talking about RW permissions.
Again .. Thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
|
It's not the IUSR account you need - they're a local system account, only privleged to the one server.
|
|
|
|
|
Paddy Boyd wrote: It's not the IUSR account you need - they're a local system account, only privleged to the one server.
Could you please explain in some more detail, cause I don't really get what your saying.
Thanx for your reply.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
The IUSR account is a local system account i.e. myMachine\IUSR etc. To access a file on another server you need a domain account e.g. mydomain\me .
As far as i can remember, IIS uses a different account when trying access network resources, but i can't remember what this might be.
You could always try running your site in anonymous mode, but using a domain user as the default.
|
|
|
|
|
Thank you for the help Paddy Boyd, I'll see what I can do.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r My Blog: ^_^
|
|
|
|
|
Hi people
I have created a simple web service that pulls product information from a database then encapsulates the data in object representations before returning the object to the client, One of the classes 'product' contains a property that holds a collection of quantities every thing ok the objects are searlized the data is in the right place etc but when cosuming the service from the client I am presented with a half baked proxy library with members not available and on my product class the property that returns a quantity collection returns a quantity is there a simple way around this or am i missing something. I would be very greatfull if someone could shed some light on this or put me in the right direction.
Best Regards
Daniel
Dan
|
|
|
|
|
Hi!
i want to use threads in my C# asp.net web application. i m able to use static function in thread but when i use nonstatic function in my thread with the instance of class then it gives no error or exception but thread is not started and no functionlity in done in thread.
Can anybody help me 4 solving this problem. I need pure C# code not Html.
Thanx
|
|
|
|
|
Hi,
My Question:
I have created a web page with three combobox(drop down list) on it.
Is there any way to change the value of these combo's
1. Without changing them manually...
2. Without stateing property DEFAULT SELECT for individual combo's.
What i want is to change the values from an external script...
|
|
|
|
|
You mean an external javascript? You could use the dom functionality in javascript
Brad
Australian
- bryce on "Problems with Code Project"
*sigh* Maunder's been coding again...
|
|
|
|
|
thanx... Bradml
I did't gave it a try..
let me see what i get by using DOM
|
|
|
|
|
|
Both on the client side? - No.
But you can get your javascript to call back to a server side method using AJAX.
|
|
|
|
|
Guys,
I ask you as a guy that don't really do web dev.
I need a page to print from a web page using the default printer and some specific settings (or the default ones). The requirement is that, because this is a step in a process that must be very efficient, no window pops up (like the printer dialog) and also that printing does not require a new window to be opened. IE 6 will be used exclusively.
Hope someone can point me in the right direction.
Cheers
|
|
|
|
|
AFAIK there is no way to bypass the printer dialogue. You can design the print page usign a print CSS style sheet (with media="print" in the tag) to get rid of any elements that don't need printed (navigation etc.), and the user can then simply use the print button.
|
|
|
|
|
does any one know how to implement adaptive interface capabilities?
|
|
|
|
|
That depends on what you mean by 'adaptive interface capabilities'?
|
|
|
|