|
i am working on asp.. is it possible to get the hyperlink associated with a particular cell in excel sheet so that i can generate web page dynamically
like this...
Name1 name1.yahoo.com
name2 name2.rediffmail.com
.
.
please note that only name column is present in the excel sheet, their email ids are hyperlinks which are not stored in cells explicity.
please help ....soln required
kavi
|
|
|
|
|
I am trying to use DIV tags and CSS to create the layout of a web page. I want to have the content centered in the page.
I set the text-align of the BODY to center.
I then use a DIV tag and I set the width to 780px.
The problem is that in IE the DIV is centered properly but in Netscape and Opera its align on the left.
In addition I want to set the padding-left style of the DIV to 5px. In IE and Opera it shows ok but in Netscape the background-image of the DIV is messed up.
Any hints?
Thank you!
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
You can use the following trick to horizontally center a div :
div.my-div-class {
position: absolute;
left: 50%;
width: 780px;
margin-left: -390px;
} The same trick will also work for centering vertically.
- Mike
|
|
|
|
|
This is perfect...
Thank you very much... well done!!!!
;P;P;P ;););)
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Normal method of centering divs horizontally would be to set the left and right margin to auto. Does not work on IE though but the text-align: center covers that for IE.
margin-left:auto;
margin-right:auto;
text-align: center;
Rocky <><
www.GotTheAnswerToSpam.com
|
|
|
|
|
Hi,
I'd like to create a webservice with many method and I want to restrict access to them.
For exemple : I've got 3 users : user1 user2 and user3.
and 4 methods : mth1, mth2, mth3 and mth4
I want User1 to access only mth1
I want User2 to access only mth2 and mth 4
I want User3 to access all method
Is it possible or should I need to create a webservice for each case ?
Thx
Sybux
|
|
|
|
|
How often do you use it? Do you find it provides the only solution sometimes or could you implement your code so it didn't use eval() ?
Just curious
I'm drinking triples, seeing double and acting single
|
|
|
|
|
Where does one go to find help with a Perl project?
Need someone familiar with MLM and Commissions scripts.
Thanks....
|
|
|
|
|
how do i get get GMT time with respect to locale in oracle. in oracle there is timestamp variable which gives time and a offset like '+5:30' showing the time deviation from GMT. but is there anyway to get the GMT time directly.
|
|
|
|
|
i got the answer
what i wanted to do can be done as
select to_char(sys_extract_utc(systimestamp),'YYYY-MON-DD HH24:MI:SS') from dual;
|
|
|
|
|
we have quite a problem here at the moment: Flash Movies are obscuring all the other page content.
That is, the page comprises a javascript menu bar above a Flash map. When the menus drop down, they are always hidden behind the map. z-index makes no difference.
The difference between a pessimist and an optimist is that while the pessimist is always a victim, the optimist is always a target. - Brady Kelly
|
|
|
|
|
It's to the best of my understanding that flash is an activeX/com object which is not rendered with normal HTML code, but rather a plugin that sits on top of HTML, so no matter what you do you will not be able to make HTML show on top of FLASH movies....without some serious hacks to yer menu control anyways. But it wouldn't be a very acceptable hack IMHO.
Cheers
I'm drinking triples, seeing double and acting single
|
|
|
|
|
When i try to access the todo list i get this error
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'IF today() > date_due THEN 'X' ELSE '' ENDIF'.
/todo/default.asp, line 73
i changed jasons code from this
strConnectString = "Provider=MSDASQL;DSN=ToDoLists;UID=dba;PWD=sql"
to this
strConnectString = "Provider=MSDataShape;DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.mappath("todo.mdb") & ";UID=;PWD="
think i got that right? anyway can anyone shed some light on the problem.
Thanks
Rob
|
|
|
|
|
hmm ... I am thinking that access doesnt support these functions.
today() is not an access function, try changing today() to date() and see if that helps.
- Sage
|
|
|
|
|
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'IF date() > date_due THEN 'X' ELSE '' ENDIF'.
/todo/default.asp, line 73
now i get this error???
is there anyway to contact Jason in this site?
Thanks
Rob
|
|
|
|
|
I dont know Jason, but I know enough to be able to help you. Can you either send me the code from default.asp or send me the project and I will help you fix it real quick. I know how frustrating this all can be so I hope I can do soemthing to help you out and get you quickly on your way. Let me know..
- Sage
|
|
|
|
|
I'm developing a shopping cart project. So to store the values for products during shopping which place would be better and safe, as we have various way database, cookies, and session.
Can ne1 suggest me?
Amit Chowdhury
|
|
|
|
|
hi ,
I think database is the better and safe position to store.
thanks.
|
|
|
|
|
Hi ,
I am using javascript for confirm dialog box in my web application.
I want to do some server side execution and then if there is some error I want to display the confirm dialog box.
but if I am adding it as button1.Attributes.Add("onClick", "return Confirm();"); on body load event .I am getting the message when ever I am clicking the button ,which I don't want .
hope I explained my problem clearly.
can any one help me out?
thanks
sangita
|
|
|
|
|
So, if I understand correctly you want the javascript to be executed only if an error occurs on the server?
What server side language are you using?
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
yes that's what I want.
I am using c# as server side language.
thanks
|
|
|
|
|
The onlcick even that you set to that button will not give such functionality.
You have to write the javascript on the client only if the server throws an exception. You will do that within the catch{}
I hope that I helped you.
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Right, you can't intermix server- and client-side code like the original poster wants, but you can tell the server-side code to emit code like that, either by output the code directly or using the Page.RegisterStartupScript method with, like so:
try
{
throw new Exception();
}
catch (Exception ex)
{
string script = string.Format(
"<script language=\"javascript\">alert('{0}');</script>",
ex.Message);
RegisterStartupScript("myUniqueKey1", script);
}
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I have tried with using RegisterStartupScript("myUniqueKey1", script) method, what ever you have written but the alert message is not coming.It is only coming after refreshing the page(reloading the page).
but I want to display the message before refreshing the page.
I have tried with adding submit method in javascript ,but it is not working.
can you suggest something?
thanks
|
|
|
|
|
It matters where you do this. An older implementation of our application web site used to do this and I can assure you it works.
If you add the startup script in your button.Click event handler (or after the appropriate logic in Page_Load) it can work, but you have to write the javascript right. If you right it as a function, something has to call that function. Otherwise, whichout a function "wrapper", the script is executed when it is encountered. Judging by your previous example, you put such code in a function and expected a client-side event on a button or something to fire it. You don't want to do that. If nothing else, at least make the onload event of the BODY call your function, but this would require that you either parse the HTML yourself (very bad!) or make the body a server control (but that's bad too, so just don't put such code in a method).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|