|
Can anybody help me how to pass variable values from one page to anothe rithout Querystring. I have dynamic database from which vaues are captured through a menu. I am trying to pass values in each row of the menu when user clicks a choice to another page.
|
|
|
|
|
3 choices
1) Query string
2) POST
3) Cookies
The word of the day is legs, let's go back to my house and spread the word 
|
|
|
|
|
4) Session variables
5) Hidden INPUT form fields
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
Hi all,
I m going to develop a site that is having lot's of category/sub category and different products. For example, www.amazon.com,www.ebay.com,www.shopping.com.
1) Can you suggest some articals or notes about having very good database design for the same ? As you can imagine there will be lots of category, sub category, inside category etc.
2) What should be the links of the differnet category ?
As some sites are having something like this http://www.epinions.com/btech ,http://www.epinions.com/bsrv-Office_Services ,http://www.epinions.com/bsrv-Office_Services-Business_Travel-All , http://www.epinions.com/bsrv-Office_Services-Online_Fax-All-eFax
Some of the compnies having url containing category and sub category.
some companies having just main category id.
I m sure they are doing considering search engines as well as
structure of the url.
Can some one can share their knowledge and experience to make my decision better?
|
|
|
|
|
I'd suggest a table relationship like the following:
Category
--------
CategoryID
CategoryName
ParentCategoryID
Product
-------
ProductID
ProductName
ProductLink
CategoryID
NOTE: If a product will appear in more than one category, delete the CategoryID in Product and add
ProductCategory
---------------
ProductID
CategoryID
Category had a zero/one-to-many relationship with itself.
Category has a one-to-many (or the second option a many-to-many) relationship with Product
Top level categories do not have a parent CategoryID
As for the links within the site - I'd just go for something like:
http://www.mysite.com/category.aspx?categoryID=354
From the code you can pick up the query string and use it to look the database up quickly.
IMO the directory approach is more difficult to set up and maintain.
Does this help?
--Colin Mackay--
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
Thanks for your input..
It will certainly help to take decision.
Regards,
Coolvcguy
|
|
|
|
|
I am using this piece of script to open and close categories in a menu bar:
<script language='JavaScript'>
function switchVisibility(strObjName)
{
var opFolSrc = 'sysimageaction.asp?imagename=WebIcon_minus';
var clFolSrc = 'sysimageaction.asp?imagename=WebIcon_plus';
var theObject = document.all.item(strObjName);
if (theObject.style.display == 'none')
{
document.all.item('IMG' + strObjName).src = opFolSrc;
theObject.style.display = 'block';
}
else
{
document.all.item('IMG' + strObjName).src = clFolSrc;
theObject.style.display = 'none';
}
}
</script>
While it sucks like something that sucks a lot, it usually does what it is supposed to.
But at one of our customers the item list will never unfold (They are running IE6).
'Aha!', I thought, 'This must be a parameter in the internet options, piece of cake, just a matter of checking or unchecking an item'.
But I can't find any obvious settings that would disable JavaScripts, has anyone got a clue?
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
I think it's under SecuritySetting of the (Internet)Zone:
Scripting > ActiveScripting
(I use german IE, so don't blame me, if it's not the correct naming for the english menu entries)
|
|
|
|
|
Thank's a lot, that was the right setting.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
|
r u sending the right http headers b4 u send the data?
"there is no spoon" biz stuff about me
|
|
|
|
|
Hi Lauren,
I am sending something like this
<br />
<% Response.Buffer = TRUE <br />
Response.ContentType = "application/ms-excel" %><br />
<html><br />
<body><br />
<%<br />
Dim vntStream<br />
Set oMyObject = Server.CreateObject("MyObject.BinRead")<br />
vntStream = oMyObject.readBinFile("c:\temp\tempxls.xls")<br />
Response.BinaryWrite(vntStream)<br />
Set oMyObject = Nothing<br />
Response.End<br />
%><br />
</body><br />
</html><br />
Thanks in adavance,
AL
|
|
|
|
|
There must be no text outside the asp-tags (<% %>).
Especially remove the body-Tags.
|
|
|
|
|
I am primarily concerned with results on google only and have a fair idea of how SEO used to work META tags, keywords, TITLE, etc...
While reading an optimization sheet for google it suggests there isn't much you can do to optimize a search with google becuz it relies heavly on linking with other sites.
So my question is this...
I have a few products I would like to sell on my site and have considered developing a seperate web site dedicated just to that product
www.product1.com
www.product2.com
etc...
Each of these products would have a link somewhere pointing back to my web site and visa-versa...
Supposedly this is how to drive your ranking up on google....
So, does a sub-domain work equally as well?
www.product1.mywebsite.com
www.product2.mywebsite.com
I read something about this not working becuz the sub-domains don't have static IP's?
If I have made any sense and you know what your talking about, please give me yer opinions...
Thanks
Cheers
The word of the day is legs, let's go back to my house and spread the word 
|
|
|
|
|
What you're describing is commonly known as a link-farm, and Google has been cracking down on those as well.
Rather than spend the time and money on setting up multiple web sites, try buying some ad space on relevant sites, or even on Google. I'd bet that you get better response and visitors clicking on an ad are probably looking to buy some product (hopefully yours naturally).
|
|
|
|
|
I have to consume a set of Java APIs on the web server application from my ASP.net web service. Is there a way to do it?
|
|
|
|
|
A number of examples of web services include a .asmx file that typically has a single line
<%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>
This is also documented in the .NET SDK for creating a web service. In the case of the examples and the SDK they indicate that if you open the file with a browser, the browser should display information about the web service. I am very unsuccessfully having IE6.0 do that for me. All the browser will do is prompt me for a program to open the file with and when I intruct it to use IE, it simply displays the text of the file. I'm likely interpretating something very wrong here, but at a complete loss of what. Any kind pointers would be appreciated. Thanks.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
I could be wrong with this, but the asmx file, should be able to give you information when you go to the webservice that is hosted on the IIS. If you just open up the file, it may not work. What you would need is a WSDL file and I think you can generate it from the .NET command prompt.
Hope this helps, or I can be totally off.
|
|
|
|
|
Actually you are pretty close to what I'm finding as I dig in other areas of the .NET SDK. It's not so much that the documentation is wrong, but rather it just doesn't tell the whole story and what is really unfortunate is that in some cases it's becoming evident it is dependant upon the user working with VS.NET in putting their solution together. The details of deployment are still sketchy to me, but I think I'm getting closer. Thanks for the help.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
I'm very new to the Web development side of .NET and need to do the following:
Create a web service that uses Window Authentication which will be consumed by clients that will not be running on the same domain.
I've seen how you can set up a ASP.NET project to use Windows authentication (using the Web.config file), is it the same for Web service.
How would securely authenticate the client without having to enter the credentials every time a method from the web service is invoked?
Thanks in advance
|
|
|
|
|
Hi there,
I've used the following code on my store page to determine if the current page is actually in the regsoft store or not, allowing the use of the same .js file for both uses:
<code>
function WriteBarLinkUnterminated(RelativeUrl)
{
StoreUrlCriteria = "regsoft";
CurrentUrl = "";
CurrentUrl = document.location.href;
if(CurrentUrl.search(StoreUrlCriteria) != -1)
{
// In store. Use absolute url.
AbsoluteUrl = "http://www.aephid.com/";
AbsoluteUrl += RelativeUrl;
document.writeln("<a href = '" + AbsoluteUrl + "' target = '_top'>");
}
else
{
// Not in store.
document.writeln("<a href = '" + RelativeUrl + "' target = '_top'>");
}
}
</code>
However, I've recently found security errors popping up saying "Permission Denied". More research shows that this property is both deprecated, and also security rules no longer let you read it --- only change it!
see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp
Does anyone know the proper way I can replace this block of code? I can't just use absolute urls because then I cannot navigate the website off the local hard drive and test it before it is deployed.
Please help!
swine
[b]yte your digital photos with [ae]phid [p]hotokeeper - <a href = http:\\www.aephid.com\photokeeper-default-frame-codeproject.shtml>www.aephid.com</a>.
|
|
|
|
|
Anyone have any suggestions for a search engine to use on a website? I have a site (designed with php, so no ASP search engines please), thats documentation section is quite large, and I frequently get questions from people about how to find stuff.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
|
Yeah I have, but I was hoping folks here might have some first hand experience with one.
I have seen a bunch of junky looking stuff, with one or two possibbles that look useful.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Jim Crafton wrote:
I have seen a bunch of junky looking stuff, with one or two possibbles that look useful.
Are you talking about people that use google for their search engine on their site or just junky search engines they have developed? I currently use google for my site ( DeveloperNotes.com[^]) and it's rather simple, just set up an account with google and you can even get your banner logo added to the top of your search results page; all for free.
- Nick Parker My Blog
|
|
|
|