Forum: ASP.NET 34 Days Ago |
| Replies: 5 Views: 290 datareader.Read() is advancing your data reader to the next row. If there is only 1 row then the next row would be empty. delete that and it should work.(i have it bold) |
Forum: ASP.NET 34 Days Ago |
| Replies: 5 Views: 262 You are closing your reader before you have read the data.
I put in bold what you should delete |
Forum: JavaScript / DHTML / AJAX Jun 19th, 2008 |
| Replies: 6 Views: 1,677 collapse is only useful for table rows or columns. otherwise its rendered as just hidden on any other element.
it wont change the structure if the text and the image are the same size. |
Forum: JavaScript / DHTML / AJAX Jun 15th, 2008 |
| Replies: 6 Views: 1,677 no, display:none is correct.
your thinking of visibility:hidden
and display:none is better then visibility:hidden because it actually collapses the element rather then just hiding it and leaving... |
Forum: JavaScript / DHTML / AJAX Jun 13th, 2008 |
| Replies: 6 Views: 1,677 you can move these events out into a function, but im just keeping it simple.
<div... |
Forum: JavaScript / DHTML / AJAX Jun 13th, 2008 |
| Replies: 4 Views: 2,204 the inner html of the whole html document is
document.childNodes[1].innerHTML
or
document.body.innerHTML
if you just want the bodys html |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 11 Views: 3,996 First off you cannot link to c:\
Unless name.xml is on every users computer nothing will show there.
Saving the file does not reveal the files location, its probably just that you have the src... |
Forum: JavaScript / DHTML / AJAX Apr 15th, 2008 |
| Replies: 1 Views: 855 its
address:port
http://localhost:5222 |
Forum: MS SQL Apr 15th, 2008 |
| Replies: 2 Views: 13,010 if you want to add a not null column to a table with rows, you need to set a default value to the new column.
adding a new column without a default value would put a null in the column for each... |
Forum: MS SQL Apr 15th, 2008 |
| Replies: 3 Views: 1,195 just replace the * with the column names... |
Forum: ASP.NET Apr 15th, 2008 |
| Replies: 1 Views: 1,008 increasing the height/width of the image will make it larger, but it may make the image look blocky. |
Forum: ASP.NET Apr 14th, 2008 |
| Replies: 1 Views: 990 Use a master page for the header and footer.
If you dont know how to use a masterpage, do some research, its easy to use. |
Forum: MS SQL Apr 11th, 2008 |
| Replies: 5 Views: 2,617 select * from table1, table2
this combines both tables |
Forum: ASP.NET Apr 11th, 2008 |
| Replies: 4 Views: 669 it doesnt sound like you need anything more complicated then a image wrapped in a link to your page.
<a href="homepage2"><img /></a> |
Forum: ASP.NET Apr 11th, 2008 |
| Replies: 1 Views: 1,424 text1.Text=Request.Form("text1")
Request.Form("controlID") will return the text value of the form field. |
Forum: ASP.NET Apr 11th, 2008 |
| Replies: 4 Views: 2,839 Session("Cart") is null
So either check if Session("Cart") is null, and create a new one if it doesnt exists. or create a new Session("Cart") when the session is started.
Session("Cart") = New... |
Forum: ASP.NET Apr 3rd, 2008 |
| Replies: 6 Views: 3,742 the web.config needs to be at the root of your old site.
looks like this fully written out.
This can be entered as many times as you need, im not sure if there is an easier way to write it though.... |
Forum: ASP.NET Apr 2nd, 2008 |
| Replies: 2 Views: 1,106 you already made a thread about this... |
Forum: ASP.NET Apr 2nd, 2008 |
| Replies: 4 Views: 9,539 in the target property of the field, set it to _blank |
Forum: ASP.NET Apr 2nd, 2008 |
| Replies: 4 Views: 3,710 you access your content tags.
they look like this.
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"></asp:Content>
then you just call it from the c# code by... |
Forum: ASP.NET Apr 2nd, 2008 |
| Replies: 6 Views: 3,742 You should set this up in IIS using an http redirect.
You just need to have the file highlighted then in features view select http redirect then specify the new address in the box and check the two... |
Forum: ASP.NET Apr 1st, 2008 |
| Replies: 10 Views: 3,956 are you trying to upload this image from every visitor of the page or just you?
I dont believe it is possible to upload a file from a visitor, because then nothing would stop you from taking any... |
Forum: ASP.NET Mar 31st, 2008 |
| Replies: 6 Views: 2,725 Master pages are not made to display external pages.
If you want to have a menu and display external sites, put a iframe where your content panel would be. and on the menu links put... |
Forum: JavaScript / DHTML / AJAX Mar 28th, 2008 |
| Replies: 2 Views: 1,234 what object is not supported? |
Forum: JavaScript / DHTML / AJAX Mar 28th, 2008 |
| Replies: 5 Views: 13,390 the problem is you cant put an event on a option in IE as far as i know.
so the best solution is to put the event on the select
<div id="div1" style="display: visible">Div 1</div>
<select ... |
Forum: Database Design Mar 28th, 2008 |
| Replies: 2 Views: 778 Use the first scenario.
Keep all the events in one table and all the categories in one table.
It will be faster and easier to work with. |
Forum: ASP.NET Mar 19th, 2008 |
| Replies: 3 Views: 1,429 you need to put that code in your test.aspx.vb file. |
Forum: ASP.NET Mar 19th, 2008 |
| Replies: 2 Views: 2,335 you cant do any more writing to the page once you close the response. There is really no reason to close the response anyways.
also, if all you are sending is the file to be saved then use... |
Forum: ASP.NET Mar 18th, 2008 |
| Replies: 4 Views: 721 What are you logging in the database, is it just page views?
If so just turn on IIS logging and download IIS Log Parser http://www.logparser.com
You can query the log parser and make it update a... |
Forum: ASP.NET Mar 11th, 2008 |
| Replies: 3 Views: 3,580 what you have will not work because you are adding the onclick event after the button was already clicked. so after the page postsback you should get that alert when you press the button using your... |
Forum: ASP.NET Mar 10th, 2008 |
| Replies: 2 Views: 1,157 You dont need a where for an insert because your not filtering out data, its a new record to the table. only an update, select or delete statements need a where clause.
You probably meant to do ... |
Forum: C# Nov 19th, 2007 |
| Replies: 10 Views: 5,813 This correctly checks if the value is a number but not a decimal.
You are converting the value to an int which cannot have a value past the decimal point unlike the decimal.
So passing ".1" would... |
Forum: ASP.NET Oct 24th, 2007 |
| Replies: 5 Views: 13,422 PostBackURL sends all the form data to the assigned page.
Whereas when using Response.Redirect your sending the form data to your current page then moving your user to the assigned page.
So if... |
Forum: ASP.NET Oct 23rd, 2007 |
| Replies: 5 Views: 9,779 Page.IsPostBack Is used to check if the user posted back to the page. Meaning they clicked a button or changed a field in the form that causes it to post back to itself.
Putting Not usually is used... |
Forum: Legacy and Other Languages Jan 29th, 2007 |
| Replies: 5 Views: 4,036 wow. bringing bad an old thread lol. I did fine in the class.
But, to the above claiming I was 'blaming (my) inability to learn something on his teacher'
way to go an miss interpret my words and... |
Forum: C# Jan 26th, 2007 |
| Replies: 4 Views: 2,562 static void Main(string[] args)
{
string s = "123456789012345678901234567890";//source string
int i=7;//index
do
{
s =... |
Forum: C# Jan 25th, 2007 |
| Replies: 4 Views: 2,562 I dont know what you are trying to do but i made this for you.
There might be a better way but this adds chars in groups of 7 to a string.
string src = textBox1.Text;//source
... |
Forum: ASP.NET Jan 23rd, 2007 |
| Replies: 2 Views: 5,326 This is what asp.net pages display when there is no output. And for this hander you are not displaying anything on the page.
If you want to put something on the page either do a Response.Write("")... |
Forum: Legacy and Other Languages Oct 3rd, 2006 |
| Replies: 5 Views: 4,036 I need help with RPGIV . Im taking a class in school and the teacher and books suck. Can you point me to a site or 2 with RPG basics.
I just need help navigating the whole as/400 pdm thing and a... |
Forum: C# Oct 3rd, 2006 |
| Replies: 3 Views: 11,107 try storing it in your context.session.
ive always prefered to just hit the database again for each page.
just grab only enough each query to fill one page.
EDIT: sorry i just realized, that you... |