No it's classic, but good to know about catch as a keyword. I figured it out, I has some NULL values in my SQL database.
Thanks for the response
User Profile
Collapse
-
Type Mismatch Issue
Can someone help with this, I'm about to pull my hair out? I get a type mismatch error from the following code:
Code:dim x,i,z,dig(200,200),catch(59) x = 1 i = 1 z = 34 catch(z) = dig(x,i)
Any help would... -
-
Counting instance of number in string or array
Hello all -
Does anyone here have any suggestions how I start to count the instances of a particular number with a string or array? I think I have an idea, but I'm not really sure. I have the following:
string - 4,7,12,54,87,98 8,3456,76,21,76 ,5,9,3,87,38,7
From that string I need to count how many times the 7 occurs, how many times 87 occurs, etc. I can use whatever delimiter is necessary. Any ideas?... -
I'm grateful for all the help. It's going to take me a while to go through all this.
Thanks AgainLeave a comment:
-
Great, can you give me a starting point for creating the textboxes dynamically? How would I start that?
ThanksLeave a comment:
-
Great, I got it working with the following...
Code:<Columns> <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="TextBox1" runat="server" size="2" Text='<%# Bind("r1c1") %>'> </asp:TextBox> <asp:TextBox ID="TextBox2" runat="server" size="2" Text='<%# Bind("r1c2")
Leave a comment:
-
Ok, so I would add the textboxes to the gridview like so right?
Code:<asp:Gridview id="ItemsGrid" runat="server" BorderColor="black" BorderWidth="1" CellPadding="3" AutoGenerateEditButton="False" AutoGenerateColumns="False"> <Columns> <asp:TemplateField HeaderText="R1C1" SortExpression="r1c1">
Leave a comment:
-
I need to write the matrix to the screen and let the user update whichever cell they need (i.e. textboxes). Once they are complete they would click a submit button to update the database. An example is below.
...Leave a comment:
-
GridView Editing
Ok, so since my last post I've tested the Gridview and DataView controls and it appears as though those would work a little better. However, I'm having difficultly implementing the "Edit mode" on those controls to allow the user to edit the data. I can't really seem to find a "step by step" example of of how to do it. Any assistance would be great.
Thank again -
The Repeater Control works great, thanks. What I need to do now is include several dropdown list in the repeater, which I've managed to do just fine. However, outside of the repeater I have them filled using XML data, but now since they are in the repeater the names/ids are auto generated. How would I go about filling in the dropdown list with XML data within the repeater? Would this involve the INamingContaine r Interface you mentioned above?...Leave a comment:
-
The renaming thing was just a idea. What I have are rows/columns of textboxes (30) in a HTML table and each one needs to have it's own identifer so it can updated by the user to a MSSQL database. An example is below. I guess I could do it the long way but that's a lot of typing. I'd rather create a loop and use a variable to create the ID. Is there a better way to do it?
Code:<table> <tr> <td>
Leave a comment:
-
I'm building a timesheet app and I need to fill in textboxes with the table data so the user can update it. I'd like to display the data in a table, hence the html. Is there a different avenue I should pursue? I would include all the code together and build the table with "Response.Write ", but there are dropdown controls in the table that are being filled with XML files.
Thanks for the helpLeave a comment:
-
Textbox Loop with C#
Ok, so what I got is 10 textboxes on a .Net page. What I need to do is loop through them in C# and change the ids. The code I have on the .cs page behind the .aspx page is as follows:
Code:protected void Page_Load(object sender, EventArgs e) { LoopTextboxes(Page.Controls); } private void LoopTextboxes(ControlCollection controlCollection) { foreach (Control
-
Thanks, I can follow the tutorials and like I said I can get it to work fine if all of the C# code is put together. I guess my question is can you inter-mix standard html code with C#? Like what is done with VBscript. I don't seem to see that explained in the tutorials.
ThanksLeave a comment:
-
Read column data from MSSQL and output on page
I think I'm making a assumption about C#, that is works similar to VBscript. I'm new to C# and I believe I'm going about this bit of code the wrong way. If some one can take a look and maybe point in the right direction that would be great. I'm trying to read data from a MSSQL database/table and display one of the columns on the page. Of course, I have removed the names for security.
Code:<%@ Page Language="C#"
-
Embed Movie Issues
I have some html pages with some embed code on them on two different hosting platforms.
First one (Win2003,IIS)
<object>
<param name='movie' value='st1.mov' >
<embed src='st1.mov' width='725' height='150'>
</embed>
</object>
Second one (WinXP,IIS)
<object>
<param name='movie' value='st1.mov' >
<embed src='st1.mov'... -
Movie Embed Issues
This really isn't an ASP question, but the code is ASP so feel free to move this to the right place if necessary. I have two ASP pages with some embed code on them on two different hosting platforms.
First one (Win2003,IIS)
dim var1
var1 = "<object>"_
& "<param name='movie' value='st1.mov' >"_
& "<embed src='st1.mov' width='725' height='150'>"_... -
USPS Web Tools
Has anyone here used these tools? I'm building a shopping cart for my site and I would like to grad USPS info for shipping. I have gotten as far as submitting the zip codes to the USPS servers and I get a XML return with the correct price for the mail options I have selected. However, I don't know how to retrieve the XML tag values with the price info in them. This is from a ASP/HTML form. Can anyone help?
Thanks
Dean -
Yes, your right and I figured it out yesterday. The select I ended up with (with a couple of extras) is...
Code:$sql="SELECT Distinct SUM(quantity) as total,description,location FROM tablename where id < 9999 group by description,quantity,location order by description";
Leave a comment:
No activity results to display
Show More
Leave a comment: