Just my 2 cents here (I agree with Shepard). Why is IT asking you to justfiy anything, if your managers agree that you need it, which they should, they should tell IT what to give you. It's then their job to get the details from you on exactly what you need and implement it.
doWhileSomething
Posts
-
Do web developers need there own local server? -
How do you develop your DatabasesNot to "rock the boat" and I know changes do happen. But, the DB schema should be mapped out well in advance of even a single line of code being written to interface it. Also, a "single" instance that is accessed by all is always the best way to go. Also, the application should have a tier design, so only one person needs to update the DAL. Whoever updates this layer after being notified of the DB changes, would then document the changes to the DAL so the other developers know what they need to change on their end. There is rarely a need for all developers to even see the DB itself, they should only be concerned with the data coming from the DAL to their business logic layer. e.g. If someone separates 1 large table into 3 smaller tables for efficiency, I could care less. I only care about what's being returned, not how it's aggregated before hand. My 2 Cents
-
CSSIf the image is relative to the css or in an images folder inside the given theme folder, it should look like this: /* images folder located inside theme folder */ background-image:url("images/yourimage.jpg"); /* images folder located in root of app */ background-image:url("/images/yourimage.jpg"); Hope this helps
-
session or cacheA more reliable implementation would be to have a temporary orders table you can save selections to this table up until the "check out" procedure. A vistior comes, you check for a cookie (shopper=1234), if they have the cookie you can query the temp table for previous orders, if they don't have the cookie, tag them with one. Any selection is saved to the temp table using the shopper id from the cookie. Once at check out, their cart would have items from the temp table, push these items to the real store/basket table. Once the order has been processed - do whatever.. removing the entries from the temp table. Once a month, once a week or every 24 hours, purge the temporary table to relieve bloating. Something like that should work and it would be more reliable. Relying on session or cache is never a good idea - both can expire unexpectedly.
-
How Make a website for HTTP ?If your running this under IIS, not the built in web server that ships with VS 2005++, you would need to install the 2.0++ framework that create a virtual directory under IIS that points to the directory containing your files.
-
Website headerA good suggestion is to pick up a primer book on ASP.Net, probably one the targets the framework your going to use (2.0++). However, this is not really an ASP.Net specific question, more along the lines of html/css. Depending on how your site design will be, will dictate how large (wide) your graphic can be. If you're making your site scale to N% screen resolution, you could *safely make your graphic 800px wide and fit into 98% of screen resolutions for modern, non-palm type devices. A smaller graphic, that bleeds into a background color or gradient is a safer way to go in any event. using % instead of pixels is much more flexible. To answer the latter part of your question, this depends on how your going to model your site, but still goes back to css/html. An example of the css might look like this: #HeadLogo { background: #ffffff url(images/logo.jpg) left top no-repeat; width:100%; height:125px; } In the html, you would have a div /layer block that would inherit the css element you defined with the # < div id='HeaderLogo' > < /div > Assuming your graphic is 200x125 it will show up in the left top corner of the div, filling it to the bottom and the rest of the space would be white. Hope this helps get you going!
-
How to do Confirmation while submit button with dynamic Text?Sorry for the cross post, I never saw your reply (didn't realize the replies wrapped pages).
-
How to do Confirmation while submit button with dynamic Text?Here is a quick example, you would want to make this a dynamic function though to get whatever values you need from the form controls. <asp:Button ID="Button1" OnClientClick="return confirm('You have selected \'X\' number of shares....'); " runat="server" Text="Button" />
-
Encryption between Java and ASP.NetFYI - (in case anyone is interested) I just used standard DES encryption which worked out great for my situation. As long as the same rgb/rgbIV keys are used on both ends, the entire process was very painless.
-
Encryption between Java and ASP.NetHello, I've only dabled a bit in Java, I work almost exclusively with .Net. That being said, I am looking to do encrypt a string from a java application (this will be done by another developer), decrypt it in .Net and send an XML response to the the java app. Is there a universal method for encryption in Java that would allow us to use the same encryption key/method? I know how to encrypt/decrypt in .Net, I just need to know if there is a standard that is used by both frameworks?
-
control & access data to a web page programmaticallyI think you need to reword your question so that we can understand what your asking. Possibly posting a small snippet of code if applicable.
-
Error inserting records into MySql table using Asp 2.0 [modified]When trouble shooting commands like this, it always helps to show all of the relevant code (e.g. paramaters). Each paramater "?some_param" should be assigned a value, you did not post this part of the code. Also, the paramaters should be added in the same order they are used in you MySql statement. I also don't see you closing the string, however this might be a copy/paste typo. Nonetheless, complete code is essential especially when this appears to be some type of string problem. Based on your posted example, they should look like this: mysqlCmd.Parameters.AddWithValue("?product_id", "some_value") mysqlCmd.Parameters.AddWithValue("?product_name", "some_value") mysqlCmd.Parameters.AddWithValue("?product_desc", "some_value") etc.. Hope this helps!
-
ASP.NET Configuration ManagerThe ConfigurationManager Class does not grant or deny access, it provides access to read configuration settings stored in .config files e.g. a web.config. You can use the web.config to create access rules to certain directories and/or pages. Then couple this with either the built in membership provider or create your own customer provider. Here is a link for more information: http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx[^] Hope this helps!
-
How to: Form post to remote page using code behind?Some API's are easier to work with then you think and while you did not mention which payment API your using, most are similar in how they are used/consumed. You can use the HttpWebRequest class to post values to a site (e.g. PayPal), but the premise is the same. Dim req As HttpWebRequest = CType(WebRequest.Create(API_URL), HttpWebRequest) ' Set values for the request back req.Method = "POST" req.ContentType = "application/x-www-form-urlencoded" If you need to post the values to the page and have the user perform some final steps on the page while keeping the user on your site, this can be a little more tricky. You would need to send the identifier for the cart/user from your site, so once they are redirected back to your site, you can perform the look up and react to the messages sent from the api. You should look into the documentation of the API though. Most times you can handle all of this without the user ever leaving your site - a much better implementation IMO.
-
Problem with class fileI can't make sense from the logic, nor do I know what your class objects look like. But, in the page load event, it appears that not all objects have the chance of being instantiated. Customer - this is always created Order - creates a new object unless found in the session object. Cart - Never creates a new instance and assumes there will always be a "cart" object in session object. The easiest way is to put a break point on your code and see where it blows up.. :wtf:
-
Wow - had to use Yahoo for searching :-)I like using Live search, I even use Ask sometimes but Yahoo is a bit too much. I honestly don't think Google is all the much better than Live, I just think it's so embeded in everyone's mind to use it or "Google" it. Anyway, i'm not a big fan of Gmail at all, I only use to have clients send me large files or for much of my "sign up" spam.
-
how to display data in a gridview?Are you asking for help with building an SQL statement? If so, it might look like this: Select t1.*, t2.State as StateAcro from table1 as t1 inner join table2 as t2 on (t1.id=t2.id) Otherwise, could you elaborate a bit more?
-
About Ajax Accordion and swf filesIf you want to stop the flash file (interact with the flash movie(s)) you would need to modfiy the flash object to listen for events or poll possibly a hidden field. When you collapse a panel, set the hidden field to a value (0/1) or something which could pause or stop the flash movie from playing. It's not a trivial process, but I am sure there are examples on the web. Try searching for "controling flash from javascript" or something similar.
-
Hot to get a value in aspx page from Web.Config file?If your images are all going to be assigned via code behind and you have access to the control: imgHeader.ImageUrl = ConfigurationManager.AppSettings["ImgHeader"] + "image.jpg"; or, if your going to use a mixture of code behind and UI, ]]>' /> I think you might be duplicating your assignment of the src value, thus overwritting what is initially set loosing the path.
-
Firefox vs IEOne step further, you could do this with one line if you do not need the variable elsewhere. document.getElementById('TextBox1').value = "XX";