- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Doer Of Things
- Interests
- Annoying people
53 Posted Topics
Re: Use a scriptlet and response.SendRedirect() [url]http://java.sun.com/products/jsp/tags/11/syntaxref11.fm5.html[/url] [URL]http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletResponse.html[/URL] | |
Re: PostBackURL is more equivalent to Server.Transfer than Response.Redirect. It maintains ViewState and all the rest of the Page object and other State Bags. Response.Redirect simply sends a 302 to the browser. Also, PostBackURL simply sets a CLIENT-SIDE script event on a button. So it doesn't work in all situations. Server.Transfer … | |
Re: [CODE] <asp:SqlDataSource ID="sda_nw1" runat="server" ConnectionString='<%$ ConnectionStrings:NORTHWIND %> ' SelectCommand="SELECT orders.customerid, ContactName, count(OrderID) as numorders FROM orders join customers on orders.CustomerID=Customers.CustomerID group by orders.customerid, ContactName order by ContactName" ProviderName="System.Data.SqlClient" OldValuesParameterFormatString="original_{0}"> </asp:SqlDataSource> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="sda_nw1" DataTextField="customerid" DataValueField="customerid"> </asp:DropDownList><br /> [/CODE] | |
Re: GridView supports EmptyDataRowStyle [url]http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatarowstyle.aspx[/url] | |
Re: From my application: [code] // close the page if successful update RegisterStartupScript("load", "<script type=\"text/javascript\">\n" + "self.close();\n" + "<" + "/script>"); [/code] | |
Re: Which can be gotten back again with one click. Make a decent application instead; save yourself work and your users hassle. | |
Re: You use a BLOB (binary large object). [url]http://www.google.com/search?q=mysql+video+files+blob&btnG=Search&hl=en&lr=[/url] | |
Re: You have a datetime. How you display it is up to you. The DateTime object supports multiple methods for displaying the date, as well as an overridden ToString that can take a format. [URL]http://msdn2.microsoft.com/en-us/library/system.datetime_methods.aspx[/URL] If for some reason you want it returned from the database as a string that is … | |
Re: You have a current application written in Classic ASP, and you want to add to it? Where do you want the search button, and how do you want the results displayed? If you already have an ASP app set up, you can use the same connection object and just make … | |
Re: To help get you started: [code] import java.util.*; public class Playing { public static void main(String[] args) { String ip = new String("127.0.0.1"); StringTokenizer st = new StringTokenizer(ip, "."); while (st.hasMoreTokens()) { // your code here System.out.println("token: " + st.nextToken()); } } } [/code] | |
Re: You didn't post full enough code for me to test, so please clarify "doesn't work". Do you get an error? Did you check the javascript console (firefox) and/or turn on error messages (IE)? | |
Re: Lots of ways, depending on what you're doing and what your goal is. It's called "paging". [url]http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-42,GGGL:en&q=asp+paging[/url] If you use Dreamweaver, it has a paging component built in that isn't bad for IDE generated code. | |
Re: If you are not putting your code under C:\inetpub\wwwroot, then you need to tell IIS where to look for it. You appear to have put it in a normal directory. You can either make that a virtual directory in IIS, or move the whole thing under wwwroot. I am a … | |
Re: Did you have a question (or three), or was this a job posting offer? How you connect to a DB in VB highly depends on whether you're using VB6, VB.NET 1.1 or VB.NET 2.0 and what components you're using (web form, windows form, sqldatasource, sqlconnection, etc). | |
Re: You can't just open/run an aspx page like that -- it has to go through IIS and the .NET engine. Did you install .NET Framewrok and set up IIS on your machine? | |
Re: Which event is this code running from? Did you trace with Studio (debug)? | |
Re: Why don't you post what you have so far? No one is going to code your whole assignment for you for free. ![]() | |
Re: What does your textbook say? These are pretty classic exam questions... ![]() | |
Re: TO_CHAR doesn't fail on null I don't think. Try: NVL(TO_CHAR(referred), 'NOT REFERRED') | |
Re: MSDN has a nice article on the subject. [url]http://msdn2.microsoft.com/en-us/library/aa479015.aspx[/url] | |
Re: You can bind the grid whenever you like. The method is DataBind() | |
Re: You take out the relevant javascript portions and save it as a .js file, then include it like any other javascript file in your aspx source. | |
Re: Can you clarify? You can set a form to target google search as easily as any other page using the action. This would be the same as the user going to google and typing in a search term. If you want it to only search your site, you can do … | |
Re: You make code to accept page number in the URL then use the links to pass the page number in the URL. | |
Re: Are you perhaps looking for MultiView / GridView? Standard components available in .NET are the same, regardless of your language of choice. | |
Re: That highly depends on whether you meant Windows Forms or Web forms. If you're using .net 2.0, use GridView, not DataGrid. | |
Re: [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataSqlClientSqlDataReaderClassTopic.asp[/url] | |
Re: Using references is like adding things to classpath in java. Many things are there by default. The C# equivalent of import is "using". i.e. using System.Data; Like Java classpath and import, both a reference and a using statement are generally required for C#. | |
Re: Well, personally I'd start by asking my teacher for clarification if I was totally lost. That's what they're there for. Since I don't know what your teacher wants or expects, it's hard to help too much without a lot more details on the assignment. | |
Re: Um, what? Can you form that question a little better? | |
Re: IIS needs to be set up for .NET. Is it? | |
Re: It's been awhile since I coded VB6, but isn't that the forecolor property in the IDE? | |
Re: Unless you're stuck with someone else's DAL, that is. ;) You can write custom code to get the value, but it's a serious pain in the behind and isn't actually binding. You have to write custom code in the onItemDataBound event, I believe. If you can write your own query, … | |
Re: The DateTime object has properties for month, day, year, etc. DateTime.Now is today's date. You can go from there. Note that ToString is overloaded for DateTime in order to format a date for output. | |
Re: Is that a text field? If not, remove the single quotes around the value. If so, check that there are no "hidden" spaces or tabs in the actual DB values. | |
Re: You might be accidentally calling the click before the url is actually set. | |
Re: You have the close inside the read loop. Move it outside the loop. | |
Re: Are you using sqldatasource as you need to be doing for GridView to work properly, or are you trying this the "old" way with sqldataadapters, etc? | |
Re: Response.write is pretty old school ASP. You're using .NET now. Make a <asp:label> with no text and set its .Text property at the proper time. | |
Re: Missing a where? SELECT weeklyMileage, totalMileageFROM mileage WHERE teamName=#teamName# | |
Re: I have never managed to find a good way to debug classic ASP, and always end up with either text to a log file, or response.write all over the place for tracing. | |
| |
Re: Google: captcha There are quite a few varieties for PHP. Some just plug in to existing apps, too. | |
Re: Javascript is a case-sensitive language. Array is upper case A. Use new Array(). You have other errors like that. VB is not case-sensitive. Javascript is. | |
Re: [COLOR=#0000ff]if[/COLOR](player1) { [COLOR=#0000ff]if[/COLOR] ( (str11 == [COLOR=#800000]"1"[/COLOR] && str12 == [COLOR=#800000]"1"[/COLOR] && str13 == [COLOR=#800000]"1"[/COLOR]) || (str21 == [COLOR=#800000]"1"[/COLOR] && str22 == [COLOR=#800000]"1"[/COLOR] && str23 == [COLOR=#800000]"1"[/COLOR]) || (str31 == [COLOR=#800000]"1"[/COLOR] && str32 == [COLOR=#800000]"1"[/COLOR] && str33 == [COLOR=#800000]"1"[/COLOR]) ) [COLOR=#008080]MessageBox[/COLOR].Show([COLOR=#800000]" You won!!!"[/COLOR],[COLOR=#800000]"winner"[/COLOR], [COLOR=#008080]MessageBoxButtons[/COLOR].OK, [COLOR=#008080]MessageBoxIcon[/COLOR].Exclamation); } Is that what you … | |
Re: C# runs on the web server. It would be pretty dangerous for web applications to just be able to just save files on a client machine whenever they wanted. You can either prompt the user to click a link, which then lets the user choose where to save the file, … | |
Re: Random: SQL Server: SELECT TOP 5 name FROM tblfriends ORDER BY RAND() MySQL: SELECT name FROM tblfriends ORDER BY RANDOM() LIMIT 5 | |
Re: Where do you want it cut down? For display, many things such as texboxes have a way to number format data. Then there's the Format function. [url]http://www.samspublishing.com/library/content.asp?b=STY_VB6_24hours&seqNum=154&rl=1[/url] As a very last resort, you basically multiple the number by 100, truncate to int, then divide by 100. But that's VERY old … | |
The End.