|
Here is a simple example which i believe
accomplishes what you want ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script>
linkset = new Array("hiyas","sup");
showmenu = function(thiss){
pop = document.getElementById("popmenu");
pop.innerHTML = "px = "+ thiss.px + " link = " + linkset[thiss.link]
pop.style.visibility = 'visible';
}
hide = function(e){
if(e){
id = e.target.id}
else{
id = event.srcElement.id}
if(id !="show"){
document.getElementById("popmenu").style.visibility = 'hidden';}
}
document.onclick=hide;
</script></head>
<body>
<form id="form1" runat="server">
<div>
<a id="show" onclick="this.px='180px';this.link='1';showmenu(this)" >
Click here
</a><br>
<a id="show" onclick="this.px='90px';this.link='0';showmenu(this)" >
Click here
</a>
<div id="popmenu">Hello Im a menu</div>
</div>
</form>
</body>
</html>
|
|
|
|
|
Thank you very much, the hide function could do the work.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Abdul Rahman Hamidy wrote: Thank you very much, the hide function could do the work.
You are most welcome.
|
|
|
|
|
Hi,
I am creating a TCP Chat application using Asynchronous method calls and I have created 2 applications, one of which is a mobile app that runs on a PDA and the other on a desktop pc.
At the moment i can send text back and forth but i would like to send emoticons too. I am using a richtextbox, how could i go about doing this?
I would appreciate your thoughts and advice.
Thanks,
|
|
|
|
|
Eagle32 wrote: I am using a richtextbox, how could i go about doing this?
How about using some textual representation of the emoticon? Suppose you have a , you could encode this image as :-D , and a encoded as :-@ . Replace the string with the images before display, and replace the images with their respective codes when you want to send/save the message.
Would be somewhat similar to coding your own "escape characters".
I are Troll
|
|
|
|
|
I find the repetition of sets of controls for each of the EditItemTemplate, InsertItemTemplate, and ItemTemplate templates of a FormView to be tedious and risky, in terms duplicating layout and code etc. I would much rather create a xxxDetails user control, and use this in each template, cutting layout and code location down to one location.
However, this introduces several complexities for data binding scenarios. Are there any extablished patterns or practice guides for using user controls in these scenarios?
|
|
|
|
|
I using ms asp.net ajax.
uploadImage method in js. this method Asynchronous upload image.
function uploadImage(file){
Webservice.uploadImage(file, succeedCallback);
anotherFunction();//this is don't definition, so report err
}
but I changed:
function uploadImage(file){
Webservice.uploadImage(file, succeedCallback);
//anotherFunction();//I comment it, but still report same err at this
}
How do I?
Thanks.
|
|
|
|
|
If it is so then:
Clean the solution, rebuild it... if using IIS, then reset it.
Clear browser cache... run the application after all this...
|
|
|
|
|
Greetings
I am doing asp.net web for hotel entry
When user search hotel. i want to show that hotel's location in google map with my text
I searched for that but i didn't get what I want
I mean I don't want to create maps for 1 by 1 hotel.
How can I solve this?
|
|
|
|
|
|
In my site there is a portal where user can upload the you tube URL in my web page.Once the user will provide the URL of you tube video my intention that i can save the url link in my databse and then i want to show the uploaded videos in my web page.plz guide...thanks
|
|
|
|
|
|
Hello,
I have hosted my website on server is lying in USA. I have used system.Datetime.Now() for date operations, whereas my clients are from india and it shows me around 12 hours difference. How can i map this time zone? I don't want to store the client's machine time but only server end time.
Please help me.
waiting for your prompt reply.
Thanks.
|
|
|
|
|
hi,
You can use DateTime.Now.ToUniversalTime()
|
|
|
|
|
Thanks for your reply sir.
DateTime.Now.ToUniversalTime() returns UTC datetime.
How can i get the india's datetime from this.
Please help me.
|
|
|
|
|
|
hello,
i have referred that link but i am not able to get exact idea from it.
|
|
|
|
|
|
Hi ASP.Net experts...Plz visit the Silverlight message board and answer the first question titled "Silverlight WCF Issue"...plz plz plz
<font style="color:Green;font-family:Courier New;font-weight:bold;">C</font><font style="color:Blue;font-family:Courier New;font-weight:bold;">C</font><font style="color:Pink;font-family:Courier New;font-weight:bold;">26</font>
|
|
|
|
|
Hi,
I am deploying a ASP.Net webservice(the webservice acts in pull mode) in c#. In the webservice i am providing a database connection to the postgressql server and i am also using prepared statements.
I also tried to used singleton pattern, to make efficient use of the prepared statements(i.e to prepare the statements only once through out the webservice). Now the problem i am getting is, all the prepared statements(sql commands) are becoming null and returning an exception "the connection is not open" upon each invocation of the webservice by the client.
So, is there any methodology to make efficient use of the prepared statements in the webservice.
|
|
|
|
|
Hello, this is Vikash Gohil.
I have a developed a Web Application whereby i need to print a report from my application.
The printer is installed on Client PC and is shared on the network.
I have installed the printer on the Web Server.
The Code I use is:
report.PrintOptions.PrinterName = "\\PCName\PrinterName"
report.PrintToPrinter(1,false,1,1).
Now the problem I am facing when given print from Web Server is as below:
When I give command for Printing a Test Page, it prints properly.
When I give Print command from a Word, PDF etc documents, it still prints properly.
But When I give Print Command using above code from My Web Application (ie from Browser Window), it displays a error Message on the PC on which Printer is Attached.
Spoolsv.exe Application Error
Message : "The Instruction at "0x500a0330" referenced memory at "0x00000000". This memory could not be read.
Anyone has any idea why I am getting this message when printing from my Application and not while printing normally.
Do I have to Set any other permissions for the Printer on the Server, eg. permissions for IIS to Print from that printer or permissions for ASPNET user for the printer.
Please Anyone could suggest me some thing in this regards.
Any help would be greatly appreciated.
Awaiting a reply soon.
Thanks in Advance.
|
|
|
|
|
|
Hello, Abhijit.
Thanks for the reply.
I have gone through the article as suggested by you.
I have a query.
The article says of mapping the network printer on the Server and to do this we have to make changes in registry.
I want to know how mapping of printer is done and what changes do I have to make in registry so that the Web Server has full rights for network printer.
Can you please provide me guidance in this issue.
Awaiting your reply.
Thanks Again.
|
|
|
|
|
Hi, all,
I have a grid data table that will list all the modules(at most 14, if use it, put 'X' in the column) each project used, the project name and used modules in one row.
My problem is that since the module name that is put at header is long, so I want to make module name vertical in header as the following in RowDataBound() method:
if (e.Row.RowType == DataControlRowType.Header) {
////loop all columns
e.Row.Cells[j + 2].Attributes.Add("style", "FILTER: flipv fliph;WRITING-MODE: tb-rl;");
}
But after flip the text, it looks very ugly, if I original have red color as background color for header, after vertical text, each column has two color: red, white; the text column doesn't fit the gridview column.
I try to set gridview column width, and set the same width in the above style setting, still doesn't work, can anybody help me??
Thank you very much.
|
|
|
|
|
What exactly is your question? You talk about the colors and it being ugly. Are the colors pertinent to the question? You mention module names being in the row, but then you say they are in the header. Which is it?
|
|
|
|