You could get around this by creating a testing section (development) with your connectionString and a production section with your webhoster connectionString in your web.config. When you are testing locally just comment out the production section and uncomment the development section. When you are done testing locally and are ready for production comment the development section and uncomment the production section. Nathan
nateraaaa
Posts
-
Use different web.config for debugging -
handle imagebutton click in gridviewChange your if statement to check the e.CommandName instead of e.CommandSource.
if(e.CommandName == "imageClick") { Response.Redirect("http://www.google.com"); }
I also noticed that your ImageButton id said i="image" instead of id="image" but that could just be a typo. Nathan -
dropdownbox contain all the values want to store...,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
-
Anyone know of a web service like this?Check out the Amazon.com website. I know that when I view a book they always show a list of more books that users also bought related to the topic of that book. Nathan
-
Advanced SearchHow are you performing your search? Are you using a stored procedure? If so you will need to allow your parameters to be null. Pass all of your fields on the form to your search proc. If one of the fields is blank pass a null value for that parameter. This way you can do a specific search on only the criteria that is selected by the user. I have also done a search page that will allow the user to select Any in a drop down list. The proc then replaces a parameter with the value Any with a * (to search all items in the drop down list). Hope this helps. Nathan
-
USB (removable) drives in listboxWhat type of error did you receive? Your if statement is incorrect. Your if statement should contain && not &. This may be a typo but add another & and see what happens. Nathan