|
I have made a small ASP script.
But I don't know how to insert that script in HTML document. Because I think, if I insert this script in that HTML document, it will work on a server, if not it will not work.
|
|
|
|
|
In order to run an asp script it should be placed in an asp file and NOT an html file. This file should be placed on a server running IIS or a similar web server supporting asp/.net suc as cassini. When accessed from the server, the page is rendered an html data is displayed in the browser.
You seem to be quite a beginner hence I suggest to get up a good book and try to move steb by step with it.
Should you have any queries please do contact me.
Thank you very much
Chris
|
|
|
|
|
hi I want to deploy my asp.net application running on iis 6, on windows vista home premium edition that runs iis 7??
is that possible..if so how??
I already created the web setup for the application (.msi and .exe) files to install the application on the localhost of the computer having windows vista but it cannot be installed, I dunno why??
|
|
|
|
|
Nada Adel wrote: I already created the web setup for the application (.msi and .exe) files to install the application on the localhost of the computer having windows vista but it cannot be installed, I dunno why??
What is the error message that you get when you run the installer?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
something like that:
The installation is incomplete, or has been interrupted, please restart windows installer...something like that
|
|
|
|
|
Nada Adel wrote: something like that:
The installation is incomplete, or has been interrupted, please restart windows installer...something like that
Have you tried to manually deploy your project (basically copy the whole project folder over to the client machine, create a folder for it under IIS Manager and change its property to application type)?
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Hi i have list of values in my dropdownlistbox...,
All those want to be store in my table...,
How to do that?
Ex:
This is my code:
Dim strinsertproc As String
strinsertproc = "submitManPowerDetails '" & Val(ddlContractor.SelectedItem.Value) & "','" & Val(ddlProject.SelectedItem.Value) & "'"
sqlcmd = New SqlCommand(strinsertproc, sqlconn)
sqlcmd.Connection.Open()
sqlcmd.ExecuteNonQuery()
sqlcmd.Connection.Close()
sqlcmd.Dispose()
See in that ddlproject is dropdownlistbox...,
The above code will store which value have selected that one only...,
But instead of that in that what are the values that dropdownbox contains, all the values want to store in my table...,
How to do that one...,
Plz hlp me,
Regards,
Magi
|
|
|
|
|
How do you populate your drop down list? Do you use a stored proc or some other method to populate the drop down list? You will need to change your insert stored proc to accept a varchar and then pass in the values populated in your drop down list via a string array. I am still confused at why you would want to save this information though. Your insert proc should only be inserting what was selected by the user and adding that to your database table. Will the items in your drop down list be changing very often?
Nathan
|
|
|
|
|
hi everybody,actually am having an xml file which contains the links of some 50 images.now i need to retrive the xml file by specifying the url using asp.net ajax through web browser.the images could be intially in thumbnails.
wat would be the better option to do this.?
am new to ajax..pls do help me..
|
|
|
|
|
even i`ll like to do something like this. please let me know..
thx
Kunal
|
|
|
|
|
Hi,
One of my webmethods throw an exception:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: The provided Supervisor emailID either invalid or do not exists in the database at ManageEmployeeServices.AddEmployee(Int64 EmpID, String EmpName, String EmpEmailID, String SupervisorEmailID, String LocationName) in c:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\ManageEmployeeServices\App_Code\ManageEmployeeServices.cs:line 53 --- End of inner exception stack trace ---
And In my client I want to display only the bolded text as it is the actual error message. So how can I trunctate all the unwanted string from the error message?
Thanks:
Rakesh
|
|
|
|
|
Try this?
[WebMethod]
string MethodName
{
try
{
..Your Code
return "";
}
catch (SqlException ex)
{
return ex.Message;
}
}
So in the event of an error, your method will return the error message, otherwise returns an empty string, or null if you prefer?
|
|
|
|
|
hi,
My intention is to return a dataset from the web method so how can I mention the return type as string?
Regards,
Rakesh
|
|
|
|
|
You can declare the dataset outside of the Try block, and in the event of an error, add an Errors Table too it that contains all of the info. Then check for the existance of that table on the return trip.
|
|
|
|
|
Great! that worked... Thanks a lot.
Rakesh
|
|
|
|
|
hi guys
i have serious problem here, i am embedding a image into a hyperlink as show below,, the onmouseover and onmouseout is working fine in the image properites shown below,,
in the same page i have a button control which will open a pop up window,,as the pop up window is in focus...i move the mouse over to this image.. the onmouseover event is raising for both the image control when i scroll across these two images ... how to solve it, this happens only if i click the button control, otherwise its working fine
winnie
|
|
|
|
|
hai all,
i have develop web application using c# with asp.net....
i need the solution for
"when the pageload the cursor pointout automatically particular textbox "....
if anybody know ...pls reply me with source code....
Thanks And Regards,
vidyasankar
More pain gives More gain
|
|
|
|
|
TextBox1(ID).Focus(); Just call it like this on the page load.
SSK.
|
|
|
|
|
Thanks for your response... i do that but its not working good...
and i got another solution...
(i.e)
Page.RegisterStartupScript("setfocus", " document.forms[0]." + TextBox1.ClientID + ".focus(); ");
its working good...
regards,
vidyasankar
pain gives gain
|
|
|
|
|
Hi,
I'm developing a testing web and want to run it on my local intranet. I've used asp.net 1.1 and sql server database 2000, now problem is that i have a directory named as "Admin" in which i've all the admin pages. I want that no other user can access this directory pages except Admin.
Can anybody tell how and should i do in asp.net and sql server?
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
set the location tag in the web.config for the corresponding folder...
something like this....
location path="Admin"
system.web
authorization
allow roles="Administrators"
deny users="*"
authorization
system.web
location
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi J O N,
Thanks for your help i did the same think but when i login through admin user name it give ReturnUrl=Admin Directory path in addressbar, other users account working properly. now can you tell me what code should be there and database table structure. Please help me
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
| Muhammad Waqas Butt | wrote: now can you tell me what code should be there and database table structure
to secure the pages within a folder in an intranet application that is the way you should have the web.config file settings. so that It will allow only the user's those who are under that particular role.
what is the need for Code and database table structure? Could you please be more specific?
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
what is the need for Code and database table structure? Could you please be more specific?
Thanks for your help. I wanted to know where and how i should define roles in db or code or both?
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|