|
Because. ...
U haven't Replying me...
So i am asking again in another way...
|
|
|
|
|
You are yet to ask a meaningful question, to be frank. Your question is so brief that it's hard to work out what your actual problem is, given how straight forward the answer is ( you use FTP to upload your site to a server ).
Either way, 'you' is 5 million members, so long as your question is visible, it's just rude to ask again.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi everyone,
I am developing a website using asp.net with C#.
And I developed a toolbar using javascript like google and yahoo toolbar which is placed in the browser separately.
Toolbar has the toolbar id.
I need to capture the toolbar id and save into the mysql database during the page load.
So that, I put the javascript funcation called myFunc() in the Source file of the page to capture the toolbar id.
I need to save the toolbar id into the mysql database and so I applied the coding to insert the toolbarid into the database.
When I execute the coding, first of all, the page is loaded, then only the javascript is executed. Therefore, I am unable to get the toolbar id to the variable assigned in the page load.
Please help me regarding this.
How do I call the javascript function to the page load event.
Thanks in Advance,
J. Mohan.
J. Mohan
|
|
|
|
|
Hi,
Test this one:
Page.ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "jsFunctionName('Params');", true);
you can execute scripts on page load event using this way
|
|
|
|
|
Thanks for your reply,
You have represented "mykey". Should I represent the "mykey" in the javascript.
I placed your code. sorry, I doesn't work. Please guide me.
Thank You,
J. Mohan.
J. Mohan
|
|
|
|
|
RegisterStartupScript registers the startup script with the Page object using a type, a key, a script literal, and a Boolean value indicating whether to add script tags.
public void RegisterStartupScript(
Type type,
string key,
string script,
bool addScriptTags
)
Parameters
type
Type: System.Type
The type of the startup script to register.
key
Type: System.String
The key of the startup script to register.
script
Type: System.String
The startup script literal to register.
addScriptTags
Type: System.Boolean
A Boolean value indicating whether to add script tags.
So, I think you cant represent the "mykey" in the javascript but you can represent script lirtal and you can send your params using that.
|
|
|
|
|
The other answerer did not understand you, I do not think.
you need to buy a book ASP.NET book, you plainly do not understand how it works. Page_Load runs on the server. Then all events run on the server. Then Page_PreRender will run. Only after all these things occur, does script get sent to the client, where javascript code will run. You need to get your toolbar Id in C#, if you want to store it in your DB. OR if you are generating something purely on the client ( bizarre as that may be ), you can send it back to your page with AJAX. That would be really weird tho, you just need to realise no javascript code can hope to run, until all the codebehind C# code has finished running, and the javascript code has therefore been sent to the client, where it runs.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for your reply,
I am a beginner to Asp.net with c#. For all I know ,I took effort to find the solution for the problem mentioned here. I really don't know how to solve it. Therefore, I asked question to you.You expert may encourage the beginners.
J. Mohan.
J. Mohan
|
|
|
|
|
cant we call the fun on body tag ?
And Here it seems to be hurting when people ask to buy a asp.net book ... but its a fact that everyone needs a book it does not matter whether a expert or beginner
Happy Programming
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Nz([fieldname],0) not working
Select MAX(UploadID) as id from fshUploadedMaster
in above query if no record then returning null but I want to replace null by 0(zero) if returning null
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
select COALESCE(MAX(UploadID), 0) as id from fshUploadedMaster
In future please ask SQL questions in the SQL Forum.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ok
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
Use a condition on your query for example like this:
IF (SELECT MAX(UploadID) AS id FROM fshUploadedMaster) is null
Select 0 as id
RETURN
|
|
|
|
|
I have a Search Engine Project . It is an intranet based application . I will have 30 servers , where i will search into the files for the particular keywords . Each server may have it's own server speed (server1 = 100 mbps , server2 = 150 mbbs ......and so on server30 = 10 mbps) . While searching to those servers which have low speed , can have the possibility to become inaccessible , in case of congestion , so how should I take into the search consideration in this case , should they be given low priority , as compared to servers having high speed . I mean , search will be done , but they will be prioritized in the order of their speed . There are few case that can take place, like , the speed is slow at the particular server , so should time slicing be done to search the keyword on all servers.(server 1 = 2 seconds , server 2 = 2 seconds ,..... and so on till 30 servers).if i found any server inaccessible or it is currently shut down , in that case after the completion of search on all servers , search will be made again on those servers , which were not available.this looping for search into the inaccessible server will be made 2-3 times.The most important thing is operatng system can be platform independent (it can be microsoft windows , unix , linux etc) . The file can be of any extention.
Now my question is , which aspects I need to concentrate on , while doing the programming .
The platform is ASP.net database is sql server.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Building a good index, and searching it accurately. The other main issue you have is making sure the servers work well together.
Not sure what you're asking, really......
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hello...
I have developed a project. In which i have a folder named Admin.in this folder i have some web pages too but when i publish this project and upload my project over my server then it works fine. But when i run my Admin folder web page then it throws error(Run Time).
But when i upload .CS file then admin folder webpage also work Properly..
Please Suggest me...
|
|
|
|
|
i want set the smtp for sending an email from admin to a user. any body know how can i do this. can u give me any information about smtp mail setting (sending email from admin to some one when he forgot the password)
i set this setting but its not enough:
<system.net>
<mailSettings>
<smtp from="admin@sadafit.com">
<network host="sadafitserver" port="25" />
</smtp>
</mailSettings>
</system.net>
|
|
|
|
|
<system.net>
<mailSettings>
<smtp from="test@MHF.com">
<network host="smtpserver1" port="25" userName="MHASSANF" password="MHF" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
this is more detail but setting depends on youre server setting
first contact to the Administrator
|
|
|
|
|
host="smtpserver1" smtpserver1 is the server computer name?
|
|
|
|
|
It's the mail server.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
i set them this form but give the abow error . do u know what should i do? do u know any refrence that i read it.
<system.net>
<mailSettings>
<smtp from="p@sadafit.com">
<network host="mail.sadafit.com" port="25" userName="p" password="456" defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
username and password is the username and password of p@sadafit.com. is it right?
|
|
|
|
|
you provide the username and password if you need to log into the server. Do you need to log in with outlook ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
no i dont need. do u know any othe setting for smtp?
|
|
|
|
|
Well, at the core, if your settings are the same as the ones outlook uses, it should be fine. How are you sending mail ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|