Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Saturday, March 31, 2012

Server Side Code..

How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
controls in a web application. When I am getting the clicked event handler
for both of them on the server side. Thanks,

NelsonHi Nelson,

I would definitely go with the <asp:Button> in your case and use code
behind. This makes it easy to hook up your code if you are using an IDE
like VS.Net and will seperate your code from your UI. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Nelson" <NelsonSmith1997@.hotmail.com> wrote in message
news:evpYtjRyEHA.3224@.TK2MSFTNGP14.phx.gbl...
> How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
> controls in a web application. When I am getting the clicked event handler
> for both of them on the server side. Thanks,
> Nelson
>

Server Side Code..

How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
controls in a web application. When I am getting the clicked event handler
for both of them on the server side. Thanks,
NelsonHi Nelson,
I would definitely go with the <asp:Button> in your case and use code
behind. This makes it easy to hook up your code if you are using an IDE
like VS.Net and will seperate your code from your UI. Good luck! Ken.
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.
"Nelson" <NelsonSmith1997@.hotmail.com> wrote in message
news:evpYtjRyEHA.3224@.TK2MSFTNGP14.phx.gbl...
> How to decide to use WebControls.Button or HtmlControls.HtmlInputButton
> controls in a web application. When I am getting the clicked event handler
> for both of them on the server side. Thanks,
> Nelson
>
>

Server side error

Im trying to get my first aspx page working to no avail.
Im using Visual Studio .Net and when you start web services it gives you a short Hello World program to test the server with. When i try to run it all i get is the following error message.

Unable to start debugging on server.
Server side error occured on sending debug HTTP request.

I have tried all the procedures recommended on the Microsoft error page it sends you to with no luck at all.

Anything im missing?

IIS is installed.hello, make sure IIS is on, and ke sure u have give permission to ASPNET account for the folder in which the aspx page is in !!!
Ive set the asp account to administrator access and still the same error.

For some reason unknown to me my system is running fat32. Is this a problem at all?
administrator is something and aspnet account is something else, maybe this system is makingu troubles !!!!

Server Side Error

Hello,
If you hit this page ...http://www.ourwebzone.com/calendarprintout/index.aspx
You will see the error is referring to DotNetNuke web.config. This is not right.
I am tryng to run my Calendar Printout app.
I have my CalendarPrintout (no DB used) app setup like this...
FILE STRUCTURE
---------------
www.ourwebzone.com (root)
web.config (dotnetnuke is stored in root)
global.aspx
bin (folder)
--> CalendarPrintout
web.config
global.aspx
---> bin (folder)
CalendarPrintout.DLL
How come my web.config is being ignored in my CalendarPrintout folder??
Why is the DNN web.config being hit?
I tried to put my CalendarPrintout.DLL in the domains root BIN folder, but same error.
But, if I removed the BIN folder from my CalendarPrintout folder (see) above.. I get this error?
Parser Error Message:Could not load type 'CalendarPrintout.Global'.
Source Error:
Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.vb" Inherits="CalendarPrintout.Global" %>

What do I do??
Thanks
FrankHello,
In order to run this application you have to create a VIRTUAL DIRECTORY for CalendarPrintout

HTH
regards
I have no control of Virtual direcories on my web host, but they said that they did that.
Any other ideas?
Thanks
Hello,
I'm sure that you should use virtual directory for this folder. If you move the calander foldet to the root it will work.
anyway, check this threadhttp://forums.asp.net/1069271/ShowPost.aspx
regards

Server Side FieldSet?

I'm trying to write a Web Custom control that allows me to generate a set of server side text boxes inside the fieldset element. What I have is this:

protectedoverridevoid Render(HtmlTextWriter output)

{

StringBuilder sb =new StringBuilder();

//Begin the FieldSet if it's needed

if (this.ShowBorder )

sb.Append(string.Format("<fieldset style='WIDTH: {0}; HEIGHT: {1}'><legend>{2}</legend>",this.Width,this.Height,this.Legend));

//Add user controls

for(int i = 0; i <this.SearchFormFields.Length; i++)

{

SearchField curField =this.SearchFormFields[i];sb.Append(string.Format("<span class='fwifont'>{0}</span><br>", curField.Title));

//sb.Append(string.Format("<FWI:MultiRangeTextBox CssClass='fwifont' id=AccountNumberBox runat='server' TermName='{0}'></FWI:MultiRangeTextBox>", curField.TermName));

sb.Append("<asp:TextBox Runat='server' ID='fsdfd'></asp:TextBox>");

}

sb.Append("<br>");

//Finish off fieldset

if (this.ShowBorder )

sb.Append("</fieldset>");

sb.Append("<br>");

output.Write(sb.ToString());

}

However, the asp:text box does not render or show up. I'm guessing this has something to do with the fact that it's a server side control itself. Does anyone have any ideas on what I'm doing wrong here?

You are trying to output ASP control tags as markup. Would something like "<input type="text" id=......" rather the the ASP textbox control be more suitable?

Ta


Most unfortuantely, no, I cannot use html input fields. And actually, it not only needs to be a server side control, in reality it should be a custom web control that actually extends the asp:textbox class. I have a method that traverses all the controls on the web forms and handles the input of each textbox based on what "type" of server side text box it is.

Server side excel programming

hi,
Can anybody tell me that how i could modify an excel
file resided in my web server without using excel
automation on my server side code. is there any other
alternative like third party software or etc.

plz i'm stuck.

Regrads
Avik Sengupta
Programmer
Manjushree InfotechYou could use ADO

>--Original Message--
>hi,
> Can anybody tell me that how i could modify an excel
>file resided in my web server without using excel
>automation on my server side code. is there any other
>alternative like third party software or etc.
>plz i'm stuck.
>Regrads
>Avik Sengupta
>Programmer
>Manjushree Infotech
>.
No fred,
the original excel is not a simple tabular type
datasheet so that i can use ADO to fetch and modify it.
ADO is not possible in this case

>--Original Message--
>You could use ADO
>>--Original Message--
>>hi,
>> Can anybody tell me that how i could modify an excel
>>file resided in my web server without using excel
>>automation on my server side code. is there any other
>>alternative like third party software or etc.
>>
>>plz i'm stuck.
>>
>>Regrads
>>Avik Sengupta
>>Programmer
>>Manjushree Infotech
>>
>>.
>>
>.

Server side function calling

Hi,
Uses: VS.NET 2003, VB.NET, Windows xp

I've written an apsx web page through vb.net. In that I've mentioned a
procedure(Server Side). Now I want to call it through Jscript.

The reason behind is about validations. There are some text to enter in one
text box. So once the user has entered the text, it will check whether the
text is null, if not it will call that server side procedure I've mentioned
in aspx page.

I'm wondering how can I call it. One guy in the news group said to use the
following:

1. __doPostBack(...);
2. document.forms[0].submit();
3. document.getElementById(<Some asp control's client ID>).click();

however it wasn't specific and I didn't understod how to use it. Using codes
to illustrate the solution will be much worthy here.

Thank you,
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.Hifni Shahzard wrote:
> Hi,
> Uses: VS.NET 2003, VB.NET, Windows xp
> I've written an apsx web page through vb.net. In that I've mentioned a
> procedure(Server Side). Now I want to call it through Jscript.
> The reason behind is about validations. There are some text to enter
> in one text box. So once the user has entered the text, it will check
> whether the text is null, if not it will call that server side
> procedure I've mentioned in aspx page.
> I'm wondering how can I call it. One guy in the news group said to
> use the following:
> 1. __doPostBack(...);
> 2. document.forms[0].submit();
> 3. document.getElementById(<Some asp control's client ID>).click();
> however it wasn't specific and I didn't understod how to use it.
> Using codes to illustrate the solution will be much worthy here.
> Thank you,

If you want validation, use a CustomValidator. You could provide some
client-side javascript, but that's not required. You are after the server-side
event. There you can do your validation.

Hans Kesting
You can use the AJAX.NET libraries to asynchronously do a server side method
call easily through javascript.

Go here http://ajax.schwarz-interactive.de/...le/default.aspx for
examples and downloadable libraries and code.

--
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com

"Hans Kesting" <news.2.hansdk@.spamgourmet.com> wrote in message
news:%23VZF4l%23zFHA.1968@.TK2MSFTNGP10.phx.gbl...
> Hifni Shahzard wrote:
>> Hi,
>> Uses: VS.NET 2003, VB.NET, Windows xp
>>
>> I've written an apsx web page through vb.net. In that I've mentioned a
>> procedure(Server Side). Now I want to call it through Jscript.
>>
>> The reason behind is about validations. There are some text to enter
>> in one text box. So once the user has entered the text, it will check
>> whether the text is null, if not it will call that server side
>> procedure I've mentioned in aspx page.
>>
>> I'm wondering how can I call it. One guy in the news group said to
>> use the following:
>>
>> 1. __doPostBack(...);
>> 2. document.forms[0].submit();
>> 3. document.getElementById(<Some asp control's client ID>).click();
>>
>> however it wasn't specific and I didn't understod how to use it.
>> Using codes to illustrate the solution will be much worthy here.
>>
>> Thank you,
> If you want validation, use a CustomValidator. You could provide some
> client-side javascript, but that's not required. You are after the
> server-side
> event. There you can do your validation.
> Hans Kesting

Server side function calling

Hi,
Uses: VS.NET 2003, VB.NET, Windows xp
I've written an apsx web page through vb.net. In that I've mentioned a
procedure(Server Side). Now I want to call it through Jscript.
The reason behind is about validations. There are some text to enter in one
text box. So once the user has entered the text, it will check whether the
text is null, if not it will call that server side procedure I've mentioned
in aspx page.
I'm wondering how can I call it. One guy in the news group said to use the
following:
1. __doPostBack(...);
2. document.forms[0].submit();
3. document.getElementById(<Some asp control's client ID> ).click();
however it wasn't specific and I didn't understod how to use it. Using codes
to illustrate the solution will be much worthy here.
Thank you,
--
Mohammed Hifni Shahzard Nazeer,
JB Securities Pvt. Ltd.,
Colombo.Hifni Shahzard wrote:
> Hi,
> Uses: VS.NET 2003, VB.NET, Windows xp
> I've written an apsx web page through vb.net. In that I've mentioned a
> procedure(Server Side). Now I want to call it through Jscript.
> The reason behind is about validations. There are some text to enter
> in one text box. So once the user has entered the text, it will check
> whether the text is null, if not it will call that server side
> procedure I've mentioned in aspx page.
> I'm wondering how can I call it. One guy in the news group said to
> use the following:
> 1. __doPostBack(...);
> 2. document.forms[0].submit();
> 3. document.getElementById(<Some asp control's client ID> ).click();
> however it wasn't specific and I didn't understod how to use it.
> Using codes to illustrate the solution will be much worthy here.
> Thank you,
If you want validation, use a CustomValidator. You could provide some
client-side javascript, but that's not required. You are after the server-si
de
event. There you can do your validation.
Hans Kesting
You can use the AJAX.NET libraries to asynchronously do a server side method
call easily through javascript.
Go here http://ajax.schwarz-interactive.de/...le/default.aspx for
examples and downloadable libraries and code.
- Paul Glavich
MVP ASP.NET
http://weblogs.asp.net/pglavich
ASPInsiders member - http://www.aspinsiders.com
"Hans Kesting" <news.2.hansdk@.spamgourmet.com> wrote in message
news:%23VZF4l%23zFHA.1968@.TK2MSFTNGP10.phx.gbl...
> Hifni Shahzard wrote:
> If you want validation, use a CustomValidator. You could provide some
> client-side javascript, but that's not required. You are after the
> server-side
> event. There you can do your validation.
> Hans Kesting
>

Server side form tags

I recently ran into the following exception that I received when trying to add 2 forms to a single page:

System.Web.HttpException: A page can have only one server-side Form tag.
Does this mean that I can not use more than one form on an aspx page? Is there a way around this? This seems like it would be very restrictive if there isn't a way to handle more than one form per page...

Thanks.Correct, 1 server form per page.. you can have as many client forms as you want but just 1 server form.

It really shouldnt be an issue if you are programming the .NET way, when doing asp.net pages.

Paul Wilson does have a control that allows multiple server forms, i think its in the control gallery.

Server side includes

Most of my web sites use server side includes to insert pieces of HTML design into the top and bottom of a page.

This has always worked fine with dreamweaver but now I am using VS2005 It doesn't seem to open these includes when viewing the site pages and therefore cannot switch to the design view.

Is there a way around this as otherwise I am completely stuck with dreamweaver and I really want to switch over to .net.

David Meagor

http://FreeOnlineSurveys.com

In VS2005, you may useMaster Pages and Content Pages or usercontrols to replace the inclues you used in classic asp.

The master page feature looks useful but with 300 or so classic ASP pages which have yet to be converted this isn't going to be practical.

It's such a shame that MS haven't provided support for server side includes in their editor as macromedia have with dreamweaver - it seems like such a simple feature to implement.

David Meagor

http://freeonlinesurveys.com

Thursday, March 29, 2012

Server side live clock

I know that we can build a live clock in the web form using Javascript. But i understand that the clock is refer to the user system clock..

May I build a live clock that the time is refer to the server clock?

Can ASP do it like tat?Get the server clock in a javascript variable on the page and then increase this each second. You then have a live clock but with the server hour.

Tip : use the javascript clock but initialize it with the time value you got from server.
Okok.. I got your idea. Thanks alot.

Server Side Process

I'm building a web application with VB.NET. Is there any capability for initiating a timed server side process. For instance... if at specific intervals or at when the server is slow, to have the server updated database counters OR create literal HTML pagers?You could make a windows service application which pings the server, and initiates on a time period. You would have to code this yourself though.
Another possibility is to create a windows or console application and make it run every x minutes by using theWindows Task Scheduler Click Administrative Tools Scheduled Tasks on Windows Servers or machines.

hope this helps,
sivilian
Like Sivilian said, you can use a .Net service to for this.. The service can either monitor CPU usage or maybe even use the Application.Idle event (I'm not sure about the event since it might only work at the application level) to know when the server is not busy. I don't have the code handy, but I've monitored the CPU usage using the System.Diagnostics namespace before.

server side software

I am trying to help someone out who has a problem with their web server so
be gentle on me. :-) They have an asp.net web app that uses Word to bring up
reports. They started having problems and loaded a different version of Word
to see if that would fix it and now nothing works. I have been successful in
getting everything to work on a development machine using Word 2002 by
changing references and having PIA's installed. This where things get foggy
for me because I develop in VB and haven't made the change over to .net yet.
This is a first. After a succesful compile and test I used copy project to
get all the files needed. I placed those files in a 2003 server test
environment. The first time I ran it I got can't create activex control. I
then loaded Word 2002 on the test server but still get the same error. My
questions are:
1.) Do you need to load the full version of word on the server?
2.) If not do you need to include dll's in the project that didn't come with
the copy project.
3.) I ran across this error in the development environment and think I fixed
it with giving the ASPNET account more permissions than the user account
which I read about on this error.
4.) Would it be okay to replace the files on the production server with
these files just to test this new compile. I can't see what it would hurt
nothing works now but more of a future how to do it question.
Any suggestions on where to go from here would be appreciated.
TIA,
Richard"Richard P" <requested(remove)@.comcast.net> wrote in
news:uxFWpoDlEHA.2868@.TK2MSFTNGP11.phx.gbl:

> 1.) Do you need to load the full version of word on the server?
Yes.

> 4.) Would it be okay to replace the files on the production server
> with these files just to test this new compile. I can't see what it
> would hurt nothing works now but more of a future how to do it
> question.

That's fine... or even better, place the file in a new application
directory so you won't wreck the existing version anymore.

server side software

I am trying to help someone out who has a problem with their web server so
be gentle on me. :-) They have an asp.net web app that uses Word to bring up
reports. They started having problems and loaded a different version of Word
to see if that would fix it and now nothing works. I have been successful in
getting everything to work on a development machine using Word 2002 by
changing references and having PIA's installed. This where things get foggy
for me because I develop in VB and haven't made the change over to .net yet.
This is a first. After a succesful compile and test I used copy project to
get all the files needed. I placed those files in a 2003 server test
environment. The first time I ran it I got can't create activex control. I
then loaded Word 2002 on the test server but still get the same error. My
questions are:
1.) Do you need to load the full version of word on the server?
2.) If not do you need to include dll's in the project that didn't come with
the copy project.
3.) I ran across this error in the development environment and think I fixed
it with giving the ASPNET account more permissions than the user account
which I read about on this error.
4.) Would it be okay to replace the files on the production server with
these files just to test this new compile. I can't see what it would hurt
nothing works now but more of a future how to do it question.
Any suggestions on where to go from here would be appreciated.
TIA,
Richard"Richard P" <requested(remove)@.comcast.net> wrote in
news:uxFWpoDlEHA.2868@.TK2MSFTNGP11.phx.gbl:

> 1.) Do you need to load the full version of word on the server?
Yes.

> 4.) Would it be okay to replace the files on the production server
> with these files just to test this new compile. I can't see what it
> would hurt nothing works now but more of a future how to do it
> question.
That's fine... or even better, place the file in a new application
directory so you won't wreck the existing version anymore.

Server Side Time Out in c#

Hi

I have an ASP.NET site that uses web services for security. I have two
servers running the same service. Provided the servers are running I am
able to run a check script and swap servers depending on whether the
service is running properly. This works fine if just IIS has fallen
over.

The problem is that if the server is switched off, the ASP.NET code
continues to search for the server and leaves the application hanging.

Is is possible to add a timeout to the server-side code, so that after
say 5 seconds it stops searching for the server and uses the
alternative one?

Thanks

JaredI found a way to get round this. The web service has a Timeout already,
you just need to set it. I am not sure if every type of object has a
Timeout setting.

e.g.
WebService1.Security entsec = new WebService1.Security();

entsec.Timeput = 1000;
string entsecCheck = entsec.CommsCheck([password]);

This will time out after 1 second if the server is turned off.

Jared

Jared wrote:

Quote:

Originally Posted by

Hi
>
I have an ASP.NET site that uses web services for security. I have two
servers running the same service. Provided the servers are running I am
able to run a check script and swap servers depending on whether the
service is running properly. This works fine if just IIS has fallen
over.
>
The problem is that if the server is switched off, the ASP.NET code
continues to search for the server and leaves the application hanging.
>
Is is possible to add a timeout to the server-side code, so that after
say 5 seconds it stops searching for the server and uses the
alternative one?
>
Thanks
>
Jared

Server Side Time Out in c#

Hi
I have an ASP.NET site that uses web services for security. I have two
servers running the same service. Provided the servers are running I am
able to run a check script and swap servers depending on whether the
service is running properly. This works fine if just IIS has fallen
over.
The problem is that if the server is switched off, the ASP.NET code
continues to search for the server and leaves the application hanging.
Is is possible to add a timeout to the server-side code, so that after
say 5 seconds it stops searching for the server and uses the
alternative one?
Thanks
JaredI found a way to get round this. The web service has a Timeout already,
you just need to set it. I am not sure if every type of object has a
Timeout setting.
e.g.
WebService1.Security entsec = new WebService1.Security();
entsec.Timeput = 1000;
string entsecCheck = entsec.CommsCheck([password]);
This will time out after 1 second if the server is turned off.
Jared
Jared wrote:
> Hi
> I have an ASP.NET site that uses web services for security. I have two
> servers running the same service. Provided the servers are running I am
> able to run a check script and swap servers depending on whether the
> service is running properly. This works fine if just IIS has fallen
> over.
> The problem is that if the server is switched off, the ASP.NET code
> continues to search for the server and leaves the application hanging.
> Is is possible to add a timeout to the server-side code, so that after
> say 5 seconds it stops searching for the server and uses the
> alternative one?
> Thanks
> Jared

Monday, March 26, 2012

Server Side Word Application

I'm trying to create a server side application (through a web front end)
that allows me to print specific documents from the server
im using:
Dim wordapp = New Word.Application
and have added the word reference (and installed word on the server)
the problem i have is that when i run the above code i get an:
Access is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
any help with this would be greatly appreciated as ive hit a brick wall with
things to try
thanks in advance
Mike FellowsIf you know the doc name and the location of the doc why open word, just
send the doc to the printer?
I'm doing the exact same thing but with PDF docs using BizTalk
"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> wrote in message
news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> I'm trying to create a server side application (through a web front end)
> that allows me to print specific documents from the server
> im using:
> Dim wordapp = New Word.Application
> and have added the word reference (and installed word on the server)
> the problem i have is that when i run the above code i get an:
> Access is denied.
> Description: An unhandled exception occurred during the execution
of
> the current web request. Please review the stack trace for more
information
> about the error and where it originated in the code.
> any help with this would be greatly appreciated as ive hit a brick wall
with
> things to try
> thanks in advance
> Mike Fellows
>
I cant do that as i need to edit some bookmarks within the word document
otherwise it would be great
Mike Fellows
"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:uQpDFXKSEHA.1216@.TK2MSFTNGP10.phx.gbl...
> If you know the doc name and the location of the doc why open word, just
> send the doc to the printer?
> I'm doing the exact same thing but with PDF docs using BizTalk
>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> wrote in message
> news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
execution
> of
> information
> with
>
You can create ActiveX word object on client side and manipulate the bookmar
ks.
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration>
"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le message
de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> I'm trying to create a server side application (through a web front end)
> that allows me to print specific documents from the server
> im using:
> Dim wordapp = New Word.Application
> and have added the word reference (and installed word on the server)
> the problem i have is that when i run the above code i get an:
> Access is denied.
> Description: An unhandled exception occurred during the execution
of
> the current web request. Please review the stack trace for more
information
> about the error and where it originated in the code.
> any help with this would be greatly appreciated as ive hit a brick wall
with
> things to try
> thanks in advance
> Mike Fellows
>
Thanks
i will give that a goo
Mike Fellows
"Franky" <fnappey@.lcf-com.removethis.com> wrote in message
news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> I just had the same with Excel.
> I think that the solution is just to add a web.config file in the same
> folder as your aspx with the code:
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.web>
> <identity impersonate="true"/>
> </system.web>
> </configuration>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le
message
> de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
execution
> of
> information
> with
>
Bin,
could you point me to a document explaining how to do this client side?
Thanks
Mike
"Bin Song, MCP" <anonymous@.discussions.microsoft.com> wrote in message
news:00924C08-9A8B-4A6C-B5E9-A1F58677A23A@.microsoft.com...
> You can create ActiveX word object on client side and manipulate the
bookmarks.
Franky,
this then opens word on the server, but it seems impossible to manipulate
i cant even set the word object to visible
Thanks
Mike
"Franky" <fnappey@.lcf-com.removethis.com> wrote in message
news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> I just had the same with Excel.
> I think that the solution is just to add a web.config file in the same
> folder as your aspx with the code:
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.web>
> <identity impersonate="true"/>
> </system.web>
> </configuration>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le
message
> de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
execution
> of
> information
> with
>
Please see:
HOWTO: Automate Excel from an HTML Web Page Using JScript
http://support.microsoft.com/defaul...kb;en-us;234774
Yes, I got the same problem with Excel.
The only solution I find (for Excel) is to install Excel 2003 instead of
Excel XP. And I posted a news concerning Excel XP...
"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le message
de news:xEmvc.37$An.15@.newsfe6-win...
> Franky,
> this then opens word on the server, but it seems impossible to manipulate
> i cant even set the word object to visible
> Thanks
> Mike
>
> "Franky" <fnappey@.lcf-com.removethis.com> wrote in message
> news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> message
end)
> execution
wall
>

Server Side Word Application

I'm trying to create a server side application (through a web front end)

that allows me to print specific documents from the server

im using:

Dim wordapp = New Word.Application

and have added the word reference (and installed word on the server)

the problem i have is that when i run the above code i get an:

Access is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information
about the error and where it originated in the code.

any help with this would be greatly appreciated as ive hit a brick wall with
things to try

thanks in advance

Mike FellowsIf you know the doc name and the location of the doc why open word, just
send the doc to the printer?
I'm doing the exact same thing but with PDF docs using BizTalk

"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> wrote in message
news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> I'm trying to create a server side application (through a web front end)
> that allows me to print specific documents from the server
> im using:
> Dim wordapp = New Word.Application
> and have added the word reference (and installed word on the server)
> the problem i have is that when i run the above code i get an:
> Access is denied.
> Description: An unhandled exception occurred during the execution
of
> the current web request. Please review the stack trace for more
information
> about the error and where it originated in the code.
> any help with this would be greatly appreciated as ive hit a brick wall
with
> things to try
> thanks in advance
> Mike Fellows
I cant do that as i need to edit some bookmarks within the word document
otherwise it would be great

Mike Fellows

"Mike" <anonymous@.discussions.microsoft.com> wrote in message
news:uQpDFXKSEHA.1216@.TK2MSFTNGP10.phx.gbl...
> If you know the doc name and the location of the doc why open word, just
> send the doc to the printer?
> I'm doing the exact same thing but with PDF docs using BizTalk
>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> wrote in message
> news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> > I'm trying to create a server side application (through a web front end)
> > that allows me to print specific documents from the server
> > im using:
> > Dim wordapp = New Word.Application
> > and have added the word reference (and installed word on the server)
> > the problem i have is that when i run the above code i get an:
> > Access is denied.
> > Description: An unhandled exception occurred during the
execution
> of
> > the current web request. Please review the stack trace for more
> information
> > about the error and where it originated in the code.
> > any help with this would be greatly appreciated as ive hit a brick wall
> with
> > things to try
> > thanks in advance
> > Mike Fellows
You can create ActiveX word object on client side and manipulate the bookmarks.
I just had the same with Excel.
I think that the solution is just to add a web.config file in the same
folder as your aspx with the code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="true"/>
</system.web>
</configuration
"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le message
de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> I'm trying to create a server side application (through a web front end)
> that allows me to print specific documents from the server
> im using:
> Dim wordapp = New Word.Application
> and have added the word reference (and installed word on the server)
> the problem i have is that when i run the above code i get an:
> Access is denied.
> Description: An unhandled exception occurred during the execution
of
> the current web request. Please review the stack trace for more
information
> about the error and where it originated in the code.
> any help with this would be greatly appreciated as ive hit a brick wall
with
> things to try
> thanks in advance
> Mike Fellows
Thanks
i will give that a goo

Mike Fellows

"Franky" <fnappey@.lcf-com.removethis.com> wrote in message
news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> I just had the same with Excel.
> I think that the solution is just to add a web.config file in the same
> folder as your aspx with the code:
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.web>
> <identity impersonate="true"/>
> </system.web>
> </configuration>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le
message
> de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> > I'm trying to create a server side application (through a web front end)
> > that allows me to print specific documents from the server
> > im using:
> > Dim wordapp = New Word.Application
> > and have added the word reference (and installed word on the server)
> > the problem i have is that when i run the above code i get an:
> > Access is denied.
> > Description: An unhandled exception occurred during the
execution
> of
> > the current web request. Please review the stack trace for more
> information
> > about the error and where it originated in the code.
> > any help with this would be greatly appreciated as ive hit a brick wall
> with
> > things to try
> > thanks in advance
> > Mike Fellows
Bin,

could you point me to a document explaining how to do this client side?

Thanks

Mike

"Bin Song, MCP" <anonymous@.discussions.microsoft.com> wrote in message
news:00924C08-9A8B-4A6C-B5E9-A1F58677A23A@.microsoft.com...
> You can create ActiveX word object on client side and manipulate the
bookmarks.
Franky,

this then opens word on the server, but it seems impossible to manipulate
i cant even set the word object to visible

Thanks

Mike

"Franky" <fnappey@.lcf-com.removethis.com> wrote in message
news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> I just had the same with Excel.
> I think that the solution is just to add a web.config file in the same
> folder as your aspx with the code:
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <system.web>
> <identity impersonate="true"/>
> </system.web>
> </configuration>
> "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le
message
> de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> > I'm trying to create a server side application (through a web front end)
> > that allows me to print specific documents from the server
> > im using:
> > Dim wordapp = New Word.Application
> > and have added the word reference (and installed word on the server)
> > the problem i have is that when i run the above code i get an:
> > Access is denied.
> > Description: An unhandled exception occurred during the
execution
> of
> > the current web request. Please review the stack trace for more
> information
> > about the error and where it originated in the code.
> > any help with this would be greatly appreciated as ive hit a brick wall
> with
> > things to try
> > thanks in advance
> > Mike Fellows
Please see:
HOWTO: Automate Excel from an HTML Web Page Using JScript
http://support.microsoft.com/defaul...kb;en-us;234774
Yes, I got the same problem with Excel.
The only solution I find (for Excel) is to install Excel 2003 instead of
Excel XP. And I posted a news concerning Excel XP...

"Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le message
de news:xEmvc.37$An.15@.newsfe6-win...
> Franky,
> this then opens word on the server, but it seems impossible to manipulate
> i cant even set the word object to visible
> Thanks
> Mike
>
> "Franky" <fnappey@.lcf-com.removethis.com> wrote in message
> news:uH7TLyKSEHA.3944@.TK2MSFTNGP11.phx.gbl...
> > I just had the same with Excel.
> > I think that the solution is just to add a web.config file in the same
> > folder as your aspx with the code:
> > <?xml version="1.0" encoding="utf-8" ?>
> > <configuration>
> > <system.web>
> > <identity impersonate="true"/>
> > </system.web>
> > </configuration>
> > "Mike Fellows" <mike.fellows.SPAM@.equityhouse.co.uk> a crit dans le
> message
> > de news:nplvc.52$1d7.29@.newsfe3-win.server.ntli.net...
> > > I'm trying to create a server side application (through a web front
end)
> > > > that allows me to print specific documents from the server
> > > > im using:
> > > > Dim wordapp = New Word.Application
> > > > and have added the word reference (and installed word on the server)
> > > > the problem i have is that when i run the above code i get an:
> > > > Access is denied.
> > > Description: An unhandled exception occurred during the
> execution
> > of
> > > the current web request. Please review the stack trace for more
> > information
> > > about the error and where it originated in the code.
> > > > any help with this would be greatly appreciated as ive hit a brick
wall
> > with
> > > things to try
> > > > thanks in advance
> > > > Mike Fellows
> >

Server tags cannot contain <% ... %> constructs

Hi,

I've put a appSetting tag into my web.config, but when I try to catch its
value to my Image WebControl occurs the follow error: "Server tags cannot
contain <% ... %> constructs."

on myPage.aspx (Notice the ImageUrl tag):
<asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
stema"]%> /
So, What's wrong with my ImageUrl attribution?
Is there any way to do that?

thanks a lot
Marcosyou can set this property programmatically within a server script block:
Image1.ImageUrl =
System.Configuration.ConfigurationSettings.AppSett ings....
you cannot use <%%> inside a web control as web controls already run at the
server.
sharon.

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos
Thanks... but, I'd like to do it inside my .aspx file...

Isn't it possible?

tanks
Marcos

"Sharon" <talsharon@.hotmail.com> escreveu na mensagem
news:OvBFDJmIEHA.3128@.TK2MSFTNGP10.phx.gbl...
> you can set this property programmatically within a server script block:
> Image1.ImageUrl =
> System.Configuration.ConfigurationSettings.AppSett ings....
> you cannot use <%%> inside a web control as web controls already run at
the
> server.
> sharon.
> "Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
> news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> > I've put a appSetting tag into my web.config, but when I try to catch
its
> > value to my Image WebControl occurs the follow error: "Server tags
cannot
> > contain <% ... %> constructs."
> > on myPage.aspx (Notice the ImageUrl tag):
> > <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> > stema"]%> />
> > So, What's wrong with my ImageUrl attribution?
> > Is there any way to do that?
> > thanks a lot
> > Marcos
i don't know of any way, and there is no reason to do it inside the html
section.
one of the ideas behind web controls design, is the separation of code from
html.

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:e0ARXWmIEHA.364@.TK2MSFTNGP11.phx.gbl...
> Thanks... but, I'd like to do it inside my .aspx file...
> Isn't it possible?
> tanks
> Marcos
> "Sharon" <talsharon@.hotmail.com> escreveu na mensagem
> news:OvBFDJmIEHA.3128@.TK2MSFTNGP10.phx.gbl...
> > you can set this property programmatically within a server script block:
> > Image1.ImageUrl =
> > System.Configuration.ConfigurationSettings.AppSett ings....
> > you cannot use <%%> inside a web control as web controls already run at
> the
> > server.
> > sharon.
> > "Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
> > news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > > > I've put a appSetting tag into my web.config, but when I try to catch
> its
> > > value to my Image WebControl occurs the follow error: "Server tags
> cannot
> > > contain <% ... %> constructs."
> > > > on myPage.aspx (Notice the ImageUrl tag):
> > > <asp:Image id="Image1" runat="server"
> ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> > > stema"]%> />
> > > > So, What's wrong with my ImageUrl attribution?
> > > Is there any way to do that?
> > > > thanks a lot
> > > Marcos
> >
use the binding syntax <%# bindingexpression %
-- bruce (sqlwork.com)

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos
In your code there are some errors :

The <%= construct can only be used in client script for write some value
from server (like old ASP).
your Image is server side not in client side!!!!

You can use the <%# construct. This is for binding value!
<asp:Image id="Image1" runat="server"
ImageUrl='<%#System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgS
istema"]%>' /
this code require a DataBind() method call!!!

Brun

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos

Server tags cannot contain <% ... %> constructs

Hi,

I've put a appSetting tag into my web.config, but when I try to catch its
value to my Image WebControl occurs the follow error: "Server tags cannot
contain <% ... %> constructs."

on myPage.aspx (Notice the ImageUrl tag):
<asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
stema"]%> /
So, What's wrong with my ImageUrl attribution?
Is there any way to do that?

thanks a lot
Marcosyou can set this property programmatically within a server script block:
Image1.ImageUrl =
System.Configuration.ConfigurationSettings.AppSett ings....
you cannot use <%%> inside a web control as web controls already run at the
server.
sharon.

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos
Thanks... but, I'd like to do it inside my .aspx file...

Isn't it possible?

tanks
Marcos

"Sharon" <talsharon@.hotmail.com> escreveu na mensagem
news:OvBFDJmIEHA.3128@.TK2MSFTNGP10.phx.gbl...
> you can set this property programmatically within a server script block:
> Image1.ImageUrl =
> System.Configuration.ConfigurationSettings.AppSett ings....
> you cannot use <%%> inside a web control as web controls already run at
the
> server.
> sharon.
> "Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
> news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> > Hi,
> > I've put a appSetting tag into my web.config, but when I try to catch
its
> > value to my Image WebControl occurs the follow error: "Server tags
cannot
> > contain <% ... %> constructs."
> > on myPage.aspx (Notice the ImageUrl tag):
> > <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> > stema"]%> />
> > So, What's wrong with my ImageUrl attribution?
> > Is there any way to do that?
> > thanks a lot
> > Marcos
i don't know of any way, and there is no reason to do it inside the html
section.
one of the ideas behind web controls design, is the separation of code from
html.

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:e0ARXWmIEHA.364@.TK2MSFTNGP11.phx.gbl...
> Thanks... but, I'd like to do it inside my .aspx file...
> Isn't it possible?
> tanks
> Marcos
> "Sharon" <talsharon@.hotmail.com> escreveu na mensagem
> news:OvBFDJmIEHA.3128@.TK2MSFTNGP10.phx.gbl...
> > you can set this property programmatically within a server script block:
> > Image1.ImageUrl =
> > System.Configuration.ConfigurationSettings.AppSett ings....
> > you cannot use <%%> inside a web control as web controls already run at
> the
> > server.
> > sharon.
> > "Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
> > news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > > > I've put a appSetting tag into my web.config, but when I try to catch
> its
> > > value to my Image WebControl occurs the follow error: "Server tags
> cannot
> > > contain <% ... %> constructs."
> > > > on myPage.aspx (Notice the ImageUrl tag):
> > > <asp:Image id="Image1" runat="server"
> ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> > > stema"]%> />
> > > > So, What's wrong with my ImageUrl attribution?
> > > Is there any way to do that?
> > > > thanks a lot
> > > Marcos
> >
use the binding syntax <%# bindingexpression %
-- bruce (sqlwork.com)

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos
In your code there are some errors :

The <%= construct can only be used in client script for write some value
from server (like old ASP).
your Image is server side not in client side!!!!

You can use the <%# construct. This is for binding value!
<asp:Image id="Image1" runat="server"
ImageUrl='<%#System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgS
istema"]%>' /
this code require a DataBind() method call!!!

Brun

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos

Quote:

Originally Posted by Bruno Sirianni

In your code there are some errors :

The <%= construct can only be used in client script for write some value
from server (like old ASP).
your Image is server side not in client side!!!!

You can use the <%# construct. This is for binding value!
<asp:Image id="Image1" runat="server"
ImageUrl='<%#System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgS
istema"]%>' /
this code require a DataBind() method call!!!

Brun

"Marcos MOS" <marcos.santos@.softway.com.br> wrote in message
news:ulbiAAmIEHA.3240@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I've put a appSetting tag into my web.config, but when I try to catch its
> value to my Image WebControl occurs the follow error: "Server tags cannot
> contain <% ... %> constructs."
> on myPage.aspx (Notice the ImageUrl tag):
> <asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configuration.ConfigurationSettings.AppSe ttings["SrcImgSi
> stema"]%> />
> So, What's wrong with my ImageUrl attribution?
> Is there any way to do that?
> thanks a lot
> Marcos
>

In ASP.NET 2.0 not only can you refer to appSettings declaratively (without using the DataBinding syntax), which is precisely what you are trying to do here, but you can create an ExpressionBuilder that lets you run arbitrary code declaratively, which is precisely what you tried to do. Check it out here: http://infinitiesloop.blogspot.com/