|
Sounds good - I'll give that a try.
Cheers
|
|
|
|
|
Solution (simplified)
<br />
namespace MS_Test{<br />
public class myButton : HtmlInputButton<br />
{<br />
public myButton( string t)<br />
{<br />
Value = t;<br />
Attributes.Add("onclick", "testMe()");<br />
}<br />
<br />
protected override void Render(HtmlTextWriter writer)<br />
{<br />
Page.ClientScript.RegisterStartupScript(this.GetType(), "tt", "function testMe(){alert('tested');}", true);<br />
base.Render(writer);<br />
}<br />
}<br />
}<br />
Regards
Angel
*********************************************
|
|
|
|
|
I've been trying to setup IIS & ASP.NET 2 onto a Windows 2000 SP4 box. The application it's supposed to be running has been written on my XP laptop and works fine but now it has to run on this machine.
IIS was already installed on it (with .NET 1 and 1.1), I installed .NET 2 and copied across the necessary files (tested and it compiles fine with MSBuild on the 2000 machine). When you try and view the page in IE a "Service Unavailable" message is displayed telling you to look at the log. There are three entries, the most pertinent being:
Failed to execute the request because the ASP.NET process identity does not have read permissions to the global assembly cache.
Error: 0x80070005 Access is denied. There is also a warning message just before this one saying that it was unable to load System.Web because access was denied.
I've googled around and checked through all the knowledge base articles about permissions etc to the point where the ASPNET user on the server has full control to the required directories. As do the two other IIS accounts. Also tried aspnet_regiis -i and restarting IIS to no avail.
Does anybody have any ideas, without having to reinstall everything preferably because I have access to the server through VNC (and admin priviledges on it) so if preferable I don't want to reboot as I won't be able to log in again .
|
|
|
|
|
Just a shot, try :
aspnet_regiis -ga domain\processusername
|
|
|
|
|
Nada
|
|
|
|
|
Just thought I'd mention that the error message reported by ASP.NET is complete & utter b*****cks, it couldn't get permission to the application directory, not the GAC.
I have no idea what I just said. But my intentions were sincere.
|
|
|
|
|
Fixed - Permissions on app directory
I have no idea what I just said. But my intentions were sincere.
|
|
|
|
|
how do i cange the back color of a table cell? I want to backcolor a particular cell
t.aransiola
|
|
|
|
|
TableCell myRedCell = new TableCell();
myRedCell.BackColor = System.Drawing.Color.Red;
or if the cell is already present
myTable.myRows[thisRow].Cells[thisCol].BackColor = System.Drawing.Color.Red;
where thisRow and thisCol are indexes into the table
Regards
Angel
*********************************************
|
|
|
|
|
document.getElementById ('myTDid').style.background-color=#000000
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
where do i put all these codes?
how do i know the cell reference to apply this code
remeber i am using a table to do a page layou. I just want to color some of the cells
t.aransiola
|
|
|
|
|
Are you doing this server side or client side. Post your code so we can see what you have tried already.
|
|
|
|
|
doing server side. i am using table as a layout for my page
t.aransiola
|
|
|
|
|
Hi, I am in a huge confustion on how to communicate from an asp.net (made by vb.net) web site to an application situated on the computer that is made by vb.net as well. My website is a trading website (maltatrade.org) and i need this application to be installed on every member's computer.
This application all it does is to check if there's a new comment for them. How can I make this happen please??
Regards,
Adrian
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Query through a web service maybe?
|
|
|
|
|
ADY007 wrote: situated on the computer
Typically web applications involve two computers, the server and the client where the browser is running, so which "the computer" are you referring to?
led mike
|
|
|
|
|
so yes, the client one.
So, the client installs this application to get notified as soon as a new comment is recieved to him from the website of cource (maltatrade.org). I need to make a communication from the Client to the Server.
How can I make it happen please?? Thanks for your help.
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
What type of communication? pls be explicit
t.aransiola
|
|
|
|
|
ADY007 wrote: I need to make a communication from the Client to the Server.
Well you certainly have not provided a complete picture but it is possible that you simply need to poll your web server using a http request from the client as Paddy suggested using a Web Service would work for this.
led mike
|
|
|
|
|
I heard about web service. But i don't know how to build a web server All I want is just I have a database in the web server and I want the application (client application) to check the database and check if there is any new comment. If yes it returns a boolean true else false.
This type
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
ADY007 wrote: But i don't know how to build a web server
I guess you mean web "service". So what if you don't know how to do it. Any approach we suggest you won't know how to do correct? So complaining isn't going to help, do the required studying to learn, then develop your solution. That is what a professional developer does right?
led mike
|
|
|
|
|
yes i know .. i want to solve this but the only thing its pushin me back is how to make a web service? can you suggest a book that views the Web Service please because i have over than 10 and there is nothing about Web Serviced.
Thanks for your help
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
ADY007 wrote: how to make a web service?
Google: MSDN C# WebService
led mike
|
|
|
|
|
which means, you need a Client App that will make a remote connection to a server(web server running a server database possibly) and check for the comment you want.
Your problem has been streamlined to
How can a Client application connect remotely to and access a database?
i havent done anything like this before, but i have seen a vb6 connection snippet using an IP address to connect to a remote server/database.
t.aransiola
|
|
|
|
|
all i want to is to call a web service .. the web service work is just check the database if theres any new comment, if theres a new comment then it will send a true to the client application else false.
An example is just like the Yahoo!. When an email is recieved, if you have the (Yahoo Messenger installed) the yahoo from the taskbar will appear (small pop up) and tells the user that ha has a new email.
Thats all..
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|