|
4000 aint so much; but depends on how you treat them...
So can you detail more?
|
|
|
|
|
Alexandru Lungu wrote: 4000 aint so much
IT can be, IF you are storing 4,000 photos or something like that.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi there,
I am designing a shopping, i have written class libraries for it, here all class libraries:
BLL-Business logic layer using reference of DAL,DALFactory,Model
DAL-Using DataAccess Application Blocks jan 2006(using IDAL,Model)
IDAL-Implements Interfacesof DAL(using Model)
Model-Business Objects (using IDAL)
DalFactory-Loads an assembly (Loades an assembly and assign instance tointerface) using IDAL
"Now when i compile the application i am getting this error:
Error 1 Assembly generation failed -- Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong name cartDAL"
I have added .snk file in each library to give strong assembly name.
Few Things to ask:
I want to make shopping cart like Micorsoft Pet Shop 4.0, i have studied it and decided to go for class libraries, now i m stuck.
should i use Global Assembly Cache in the this shopping, but it will only use SQL Server 2000.?
*As i understand that microsoft pet shop has used GAC as they are supporting multiple databases, like oracle sql server200,2005.
If i use Data Access application blocks 2006, and GAC in ASP.Net web site, then can it be deployed to a domian provider like plesk?
When i should use GAC?
I mean if the scope of application is limited to only one database, then should i use gac?
Y micorsoft has used sqlhelper class in pet shop 4.0 instead of daab jan 2006?
Sorry if i have asked stuipd question .
I will be thank ful to you all guys for helping me.
Many Thanks,
adnan
|
|
|
|
|
adnanrafiq wrote: "Now when i compile the application i am getting this error:
Error 1 Assembly generation failed -- Referenced assembly 'Microsoft.Practices.EnterpriseLibrary.Data' does not have a strong name cartDAL"
By default, the Microsoft Enterprise library isn't strong-named, so you can't strong-name your own assemblies. If you do a google for Enterprise Library and Strong Names, you'll find a lot of discussion about it.
|
|
|
|
|
thanks for repley, how i can enterprise library strongly named, i did nt fined anything on google helpful.
many Thanks
|
|
|
|
|
Please refrain from using: the word Urgent, More then 2 exclamation marks, more then one crying icon when asking for help.
In addition Google is a fantastic resource.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
I have a web page that is written in Java that I want to use in my application (C#). I need to know how to connect to the page and call the code, or click a button that calls the code from my C# app.
Thanks for your time.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
You can put a web browser in your program, and then it can browse any site you want. you can't directly call Java from C#, AFAIK.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Do you know of anyway to simulate a click? Or can you think of a way to do this?
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
Hi everyone,
I have an Asp.net that has some Javascripts and so when I use the ie png transparency hacks, this scripts would not work correctly so wrote this for myself:
<br />
var elements = document.body.all[i];<br />
for(i = 0; i < elements.length; i++){<br />
var element = elements[i];<br />
if(element.style.backgroundImage){<br />
var BackgroundImage = new String();<br />
BackgroundImage = element.style.backgroundImage;<br />
if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){<br />
var ImageAddress = new String();<br />
ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0), BackgroundImage.toLowerCase().indexOf(')',0) - 1);<br />
element.style.backgroundImage = 'none';<br />
ImageAddress = ImageAddress.substring(1,ImageAddress.length - 1);<br />
element.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');';<br />
}<br />
}<br />
}<br />
It works nice and fixes the png transparency in ie but when it runes and does it's job, the page elements like buttons and even the onclick events of the td tags seems to be disabled and do not response! I tried to find the problem point and I tested some different codes and I achieved the point makes this problem.
I started testing different tags like this:
var elements = document.body.getElementsByTagName("table");<br />
for(i = 0; i < elements.length; i++){<br />
var element = elements[i];<br />
if(element.style.backgroundImage){<br />
var BackgroundImage = new String();<br />
BackgroundImage = element.style.backgroundImage;<br />
if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){<br />
var ImageAddress = new String();<br />
ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0), BackgroundImage.toLowerCase().indexOf(')',0) - 1);<br />
element.style.backgroundImage = 'none';<br />
ImageAddress = ImageAddress.substring(1,ImageAddress.length - 1);<br />
element.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');';<br />
}<br />
}<br />
}
And I found out that when it goes this way:
var elements = document.body.getElementsByTagName("td");<br />
for(i = 0; i < elements.length; i++){<br />
var element = elements[i];<br />
if(element.style.backgroundImage){<br />
var BackgroundImage = new String();<br />
BackgroundImage = element.style.backgroundImage;<br />
if(BackgroundImage.toLowerCase().indexOf('.png',0) != -1){<br />
var ImageAddress = new String();<br />
ImageAddress = BackgroundImage.substr(BackgroundImage.toLowerCase().indexOf('(',0), BackgroundImage.toLowerCase().indexOf(')',0) - 1);<br />
element.style.backgroundImage = 'none';<br />
ImageAddress = ImageAddress.substring(1,ImageAddress.length - 1);<br />
element.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + ImageAddress + '\', sizingMethod=\'scale\');';<br />
}<br />
}<br />
}
the page elements would not response any more!
Could anyone tell me why?
Sojaner!
|
|
|
|
|
Hi...
To start off, let me just say im pretty much an idiot...
I barely know anything about coding in general.
A very little amount of the follow: VB, C++, html, and .asp... thats about it !
But.. I work for a group of websites, one of which (http://www.bolt.com) is going to run a sweepstakes for Scion. I need to make a window that pops up and asks for a response to something
and an email address.. (im sure i can edit the look of this window using a photoshopped .jpeg later)
[I guess this code would be given to our development manager / head coder,
and he would set it to run on our homepage.]
From there, very basic; im guessing an access database stores the addresses,
and end of story, I can see them for use in a drawing later.
The problem is; im such a beginner n00b, that I have no idea how to go about this...
our dev. guy just left, and this is up to me unfortunately!
Any ideas / help?
I'd greatly appreciate it...
Durrr....
|
|
|
|
|
By the way, before someone jumps all over me...
I don't work for the site doing anything code related..
I do advertising and marketing.. which is why im not smart. :->
|
|
|
|
|
One big problem you will have is popup blockers. This is exactly the sort of window I close without even looking at it, and most other people will, too. If they want to run something that people will look at, it should be within your page, or a popup from a link in your page, so people click on it if they want to enter ( and don't hate you for having popups ).
A link with _target="blank" will open a popup window.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: A link with _target="blank" will open a popup window.
You suggest inline popups (Ajax I assume) and then go back to pre-JS (well ok it was target="resource" but you get my point)
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Ok... sooo.. again, im seriously in the dark with most stuff.
So what would be the best way to build this thing... java, asp?
|
|
|
|
|
You have to use a server side language like PHP or ASP.net. I would however recommend you hire someone to do this if it is going to be a corporate thing and you do not have experience programming.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Hi,
Im making a webpage that involves dates. So what I have done is once you select the month from one drop down menu it updates the number of days in the second drop down menu. It works perfectly in firefox but in internet explorer it just displays a blank list. I hope someone can help.
<br />
<br />
<script language="javascript"><br />
<br />
function daysInMonth(month,year) {<br />
var dd = new Date(year, month, 0);<br />
return dd.getDate();<br />
}<br />
<br />
<br />
function fromd(month){<br />
var days = daysInMonth(month, 2007);<br />
var output = "<option value='00'>DD</option>";<br />
<br />
for(var i=1;i<=days;i++){<br />
<br />
output +=" <option value=" + i + ">" + i +"</option> ";<br />
}<br />
return output;<br />
}<br />
<br />
function change1(month)<br />
{ <br />
document.getElementById("fromd").innerHTML = "" + fromd(month);<br />
}<br />
function change2(month)<br />
{ <br />
document.getElementById("departd").innerHTML = "" + fromd(month);<br />
}<br />
<br />
</script><br />
<br />
<br />
<td><div class="select2"><span>From:</span></div> <br />
<br />
<select name="fromd" id="fromd" class="trans" title=""><br />
<br />
<option value="0">DD</option><br />
<option value="1">01</option><br />
<option value="2">02</option><br />
...etc<br />
<option value="30">30</option><br />
<option value="31">31</option><br />
<br />
</select><br />
<br />
/<br />
<select class="trans" name="fromm" title="" onchange="change1(this.value)"> <br />
<option value="00">Month</option><br />
<option value="1">Jan</option><br />
<option value="2">Feb</option><br />
<option value="3">Mar</option><br />
<option value="4">Apr</option><br />
<option value="5">May</option><br />
<option value="6">Jun</option><br />
<option value="7">Jul</option><br />
<option value="8">Aug</option><br />
<option value="9">Sep</option><br />
<option value="10">Oct</option><br />
<option value="11">Nov</option><br />
<option value="12">Dec</option><br />
</select></td><br />
</tr><br />
<tr><br />
<td height="39"><div class="select2"><span>Depart:</span></div> <br />
<select class="trans" id="departd" name="departd" title=""><br />
<option value="00">DD</option><br />
<option value="1">01</option><br />
...etc<br />
<option value="31">31</option><br />
</select><br />
/<br />
<select class="trans" name="departm" title="" onchange="change2(this.value)"><br />
<option value="00">Month</option><br />
<option value="1">Jan</option><br />
...etc<br />
<option value="12">Dec</option><br />
</select></td><br />
</tr><br />
Thanks alot
Nicky
|
|
|
|
|
|
Hi
I’ve just converted a project from vs2003 to vs2005 and it builds successfully but when I run it, it throws the exception:
"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
Any idea how to solve this problem
Thanks
|
|
|
|
|
Debug your code and step through into your data layer to see what's actually failing, check the connection string it's finding, etc.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
If you "use" the CMMI concept what amout of time does it add to programming
I have heard that it doubles the code writing.
Rod
|
|
|
|
|
This is the first I've used a Web service and I'm having some trouble in getting the return data from the service I'm calling.
The Service is defined as follows:
Public Function CheckSeats(ByVal scheduleID As String) As Data.DataTable
And I consume it as follows:
Enrolment.EnrolmentService MyEnrol = new Enrolment.EnrolmentService();
seatTable = DMyEnrol.CheckSeats(Session["CourseID"].ToString());
Where seataTable is declared as a System.Data.DataTable.
I get the following error however when I try and build the solution:
Error 2 Cannot convert type 'Enrolment.CheckSeatsResponseCheckSeatsResult' to 'System.Data.DataTable' C:\Inetpub\wwwroot\_site_v02_04\_site_v02_04\content\SearchResults.aspx.cs 136 25 C:\...\_site_v02_04\
Can anyone tell me how to solve this problem?
|
|
|
|
|
You have to dig into the automated code of the proxy that (I suppose) Visual Studio has generated for you.
It is generated from WSDL, which in turn is generated automatically by Visual Studio again when the asmx was compiled.
You should check the WSDL definition of the method, and you should find that the method does return "Enrolment.CheckSeatsResponseCheckSeatsResult" (you can see it as a tag).
Now: proxy is generated to interpret SOAP and XML as they come from your WS, using Attributes (in C#). If you take a look at the attributes you should see that the method is expeted to return such class (that is: intercept that tag). You should also see the definition for CheckSeatsResponseCheckSeatsResult (either as class or tag) and seeing all this you have the opportunity to dim in which point originary DataTable definition was loose.
A trick I can suggest you is to generate proxy dll with C#: it give you more control over the deserialization of XmlResponse from WS.
I am assuming you are conusming your own webservice.
Another trick which may work is to use the IDataTable interface instead of DataTable class. This does not affect automatic serialization but may restrict opportunities of "fancy" code by autogeneration.
Hope this should help
Parsiphal
|
|
|
|
|
I am trying to make copy a text feature by using Javascriot and I wrote a function for it::
function copyData(field)
{
field.focus();
field.select()
Copied = field.createTextRange();
Copied.execCommand("Copy");
}
But it works in IE only, I want to get it worked in Mozilla, Firefox and Netscape too. What changes should I make for that??
I've used setSelectionRange(start,end) instead of createTextRange(), it only selects the text from the range from 'start' to 'end' but doesn't copy it.
Kindly Suggest!!
ANUJ
|
|
|
|
|