|
When i have created new website from Visual Studio 2005.Error message is displayed with "Visual Web Developer does not support creating Web sites on a SharePoint Web server".i can't created new WebSite in VS2005.
how will it solved ? .please reply me as soon possible.
Jignesh Patel
|
|
|
|
|
hi all
which one is best,
Response.redirect(""),
server.transfer("")
i have pass querystring values
thanks
|
|
|
|
|
Depends upon your requirement.
By both way you can pass the querystring.
Best Regards,
Apurva Kaushal
|
|
|
|
|
That depends on what behaviour you want.
Response.Redirect sends a redirect page to the browser, so the browser will be sending a request for the url that you specify.
Server.Transfer just continues execution in the new file, using the same response.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all!
I need function for adding no of days to a date & return the new date similar in vb.Can someone pls provide reference from where I can get this.
Thanks for your time & help
|
|
|
|
|
|
Here is a prototype that adds an addDays method to the Date type:
Date.prototype.addDays = function(days) { return new Date(this.getTime() + 86400000 * (days)); }
Example:
var now = new Date();<br />
var tomorrow = now.addDays(1);
---
b { font-weight: normal; }
|
|
|
|
|
Thanks Guffa
It works correctly with present date but when I use setDate(year,month,date) to addDays it works incorrectly.Can u assist please
Regards!!
Nitin
|
|
|
|
|
Can you show some code that demonstrates the problem?
The setDate method doesn't take three parameters, only one.
If you use new Date(year, month, date), are you aware that the month value is zero based?
---
b { font-weight: normal; }
|
|
|
|
|
I am able to access and consume my ASP.NET 1.1 WebService from JavaScript (and in fact from a Windows App). No problem.
When I pass a simple string parameter into the WebMethod it is accepted and processed successfully when called from a Windows App.
When I pass the same simple string parameter thru the SOAP Envelope from JavaScript, the WebMethod does NOT receive the param properly.
I am not sure what is missing. The same SOAP syntax works for me in other WebService calls. Why not in this simple case ?
Do I need to dig deeper into my setRequestHeader for some missing header ? Could this be a security related problem ?
I have tried many permutations and reduced the test to a very simplified case shown below:
C# WebService code --
[WebService(Namespace="FinfootSystemsGroupWebServicesNameSpace")]
public class WangoTango : System.Web.Services.WebService
{
public WangoTango()
{
InitializeComponent();
}
[WebMethod]
public string NudgeNudgeWinkWink(string foo)
{
return "|" + foo + "|";
}
}
In JavaScript I set up the following HEADER:
var strContentType = "text/xml"
var strMethodName = "NudgeNudgeWinkWink"
var strNameSpace = "FinfootSystemsGroupWebServicesNameSpace"
var strServiceUrl = "http://localhost/FinfootSystemsGroupWebServiceTest001/WangoTango.asmx"
objXmlHttp.open("POST", strServiceUrl, true);
objXmlHttp.setRequestHeader("MessageType", "CALL")
objXmlHttp.setRequestHeader("Content-Type", strContentType)
objXmlHttp.setRequestHeader("SOAPAction", strNameSpace + '/' + strMethodName);
objXmlHttp.onreadystatechange = getWebServiceResultsAfterLoad
objXmlHttp.send(strEnvelope);
Here is the actual SOAP envelope passed:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:NudgeNudgeWinkWink xmlns:ns1="urn:FinfootSystemsGroupWebServicesNameSpace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<foo xsi:type="string">TestString</foo>
</ns1:NudgeNudgeWinkWink>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Here is the *empty* xmlhttp responsetext returned:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<NudgeNudgeWinkWinkResponse xmlns="FinfootSystemsGroupWebServicesNameSpace">
<NudgeNudgeWinkWinkResult>||</NudgeNudgeWinkWinkResult>
</NudgeNudgeWinkWinkResponse>
</soap:Body>
</soap:Envelope>
The result is missing the incoming parameter value. What happened to the parameter "TestString" that was passed into the WebService.
Any ideas or suggested directions would be greatly appreciated.
|
|
|
|
|
I downloaded an evaluation copy of Mindreef's SOAPScope 5.2 which presented a variation to my SOAP Envelope.
The following Envelope magically worked and my incoming parameter was miraculously read by the webservice.
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<tns:NudgeNudgeWinkWink
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="FinfootSystemsGroupWebServicesNameSpace">
<tns:foo>TestString2</tns:foo>
</tns:NudgeNudgeWinkWink>
</soapenv:Body>
</soapenv:Envelope>
I am a happy camper now.
|
|
|
|
|
I was just wondering if there is anything like the codebehind feature of .net that could be used in regular .asp? I have a page that basically just loads a java file in it, but I don't want people to see the name of the java file being loaded since they could just download it that way. This is the part that loads the file:
<APPLET CODE = "com.javaplayer.v333.javaPlayer.class"
ARCHIVE = "javaplayer.jar" WIDTH = 720 HEIGHT = 540>
<PARAM NAME = "ARCHIVE" VALUE = "ImPlayer333.jar">
<PARAM NAME = "BGCOLOR" VALUE = "3366FF">
<PARAM NAME = "FILE" VALUE = "javafilename.jar">
If I can somehow "hide" all of that, but still have the page load then great, otherwise I'm not sure what else to try to keep the files safe.
-- modified at 15:44 Thursday 24th August, 2006
|
|
|
|
|
The code behind in .NET doesn't hide anything of the html code, it only separates the html code from the server code. What's sent to the browser is still the same.
You can not hide the applet tag, as the browser has to see it, and if the browser can see it, so can anyone.
You can make it harder to spot the filename, perhaps by using Javascript to write the applet tag to the page, but then the browser needs to have Javascript enabled, or it won't work.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All
I am developing an online shopping web site. The site is similar to any online shopping site where user can select categories from left menu and product will be displayed in middle of page. We had planned to display 6 products per page. As of now we are fine and clear what we need to do.
Main concern is how to bring product data. We are expecting for each category there can be 5000 products and which can grow down the year. Obviously main concern is performance as we are expecting our main users will be dial up users as site will be access from those countries where DSL in not very common. We are in discussion of our product page design and I need your advice which can help me to mitigate any post deployment risks.
I am planning,
1) On Product Page load, I will fetch all the product data (e.g. Product Name, Description, Price, ImagePath, Saleprice, special deals etc…) in DataTable say MyDataTable and cache this DataTable.
2) Now when user clicks on any category from left menus, I will create DataView from cache DataTable by filtering category and bind the DataView with my repeater control.
I believe by this approach I can gain performance hit. For our project performance hit is very critical. Please advice whether I am in correct direction or Not. Please consider this on urgent basis. Thanks in advance for your valuable reply and time
Amit
Amit
|
|
|
|
|
Ïf you really want to cache that amount of data, I would reccomend that you create a class for the product data instead of using a DataTable, to minimize the overhead.
In most cases I would recommend that you just fetch the data from the database, though. Caching all the data uses a lot of memory, and memory is one of the most sensetive resources of the server.
Fetching the data from the database instead of keeping it in memory also scales much better, which is important as you expect the number of products to increase. A database can easily store millions of products, much more than you can hold in memory.
I think that you should start by planning how you should display the products to the user. If you display six products per page from a category with 5000 products, there is more than 800 pages to flip through. Noone will start flipping through all those pages to find a product, so you need a better way to present them to the user.
The weaker link here is not the database, but the user. A database request can easily handle more products than any user can grasp. You just have to find the way to present the products that the user is interrested in.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for your suggestion. So as per my understanding you are suggesting that
on click of category from LHS menu, i fetch (6) products with pagination logic thru stored procedure. And on click of each pagination i fetch next 6 products and so on.
Please confirm.
Thanks
Amit
Amit
|
|
|
|
|
Yes.
---
b { font-weight: normal; }
|
|
|
|
|
is there an equivelant to include external files in .js files similar to C/C++
#include?
thanks.
|
|
|
|
|
FileName.js is your javascript file within the same directory or provide a relative or absolute path as you wish.
Hope that solve your issues.
Regards
Nitin
|
|
|
|
|
Hi.
I hope someone had similar issue and can help me.
I've created a web site and installation set up for the site. I had no problems installing it locally or on a test server but when I tired to install it on LIVE server I've noticed that my files are not installed in the \Inetpub\wwwroot even though the Control Panel->Add Remove Programs showed that the site installed and occupies ##MB. I thought this is strange. When I found the files installed in a different directory and only because one thing. Beside Default Web Site we have VAM (Visual Asset Manager) site installed on our server, which uses port 80 as well. So every time I run install it uses VAM as a default site and installs my site under it (that's why the directory where files installed is different). I was able to work around that issue by changing VAM port to anything but 80 for a while, installing my site, and then changing VAM port back to 80.
The question is: Is there anyway I can specify in my installation to use Default Web Site instead of VAM site even though they both use port 80?
Thank you very much.
|
|
|
|
|
I need to pass the ID of the control calling a function in javascript function, to the function.
I have a control ie.
where myFunction is the following function in javascript and ??? would be the command used to pass its own id.
function myFunction(controlName)
{
//I need controlName as the id of the control calling this function
//do something...
}
Regards,
Tintin
|
|
|
|
|
Never mind, I got it.
1.In the place off ??? you use "this". [without parentheses]
2. in function then say controlName.id [returns string]
works fine now
Regards,
Tintin
|
|
|
|
|
We use following code to show a download file dialog box:
....
Response.ContentType = cmt
Response.AddHeader "Content-Disposition", "inline; filename=" & fn & ""
Response.BinaryWrite stm.Read
Response.End
If the file name (fn) cotains non-ascii characters, the file name in the download file dialog box will contain garbage words. Actually, the variable fn's value is awalys correct when I was debugging in VS. However, once the dialog box shows, the file name turns into wrong characters.
I have tried to modify Response.ContentType, Response.CharSet and Response.Codepage, but the problem still exists.
Current ASP page file is UTF-8.
BTW, I know little about ASP or web development.
Thanks a lot.
Lane Yu
|
|
|
|
|
Hi,
I want to AutoSave the Webform Fields in every 10 sec. using Ajax in .Net.
can any one help me to out of this
thanx
|
|
|
|
|
set an interval in the body onload event
setInterval('httprequest_script', 10000)
every 10 seconds the javascript httprequest_script will execute where you can send the form fields (POST or GET) to a server side script which can parse the POST or GET variables [depending on which method you use] and saves the data to a file or database.
I'm on-line therefore I am.
JimmyRopes
|
|
|
|