Search Results

Showing results 1 to 39 of 39
Search took 0.02 seconds.
Search: Posts Made By: plazmo ; Forum: ASP.NET and child forums
Forum: ASP.NET Oct 5th, 2009
Replies: 5
Views: 343
Posted By plazmo
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 Oct 5th, 2009
Replies: 5
Views: 288
Posted By plazmo
You are closing your reader before you have read the data.
I put in bold what you should delete
Forum: ASP.NET Apr 15th, 2008
Replies: 1
Views: 1,079
Posted By plazmo
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: 1,079
Posted By plazmo
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: ASP.NET Apr 11th, 2008
Replies: 4
Views: 682
Posted By plazmo
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,630
Posted By plazmo
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: 3,138
Posted By plazmo
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: 4,049
Posted By plazmo
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,168
Posted By plazmo
you already made a thread about this...
Forum: ASP.NET Apr 2nd, 2008
Replies: 4
Views: 10,455
Posted By plazmo
Forum: ASP.NET Apr 2nd, 2008
Replies: 4
Views: 4,170
Posted By plazmo
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: 4,049
Posted By plazmo
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: 4,253
Posted By plazmo
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,907
Posted By plazmo
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: ASP.NET Mar 19th, 2008
Replies: 3
Views: 1,554
Posted By plazmo
you need to put that code in your test.aspx.vb file.
Forum: ASP.NET Mar 19th, 2008
Replies: 2
Views: 2,567
Posted By plazmo
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: 735
Posted By plazmo
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,853
Posted By plazmo
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,234
Posted By plazmo
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: ASP.NET Oct 24th, 2007
Replies: 5
Views: 14,249
Posted By plazmo
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
Solved: Page.IsPostBack
Views: 10,402
Posted By plazmo
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: ASP.NET Jan 23rd, 2007
Replies: 2
Views: 5,620
Posted By plazmo
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: ASP.NET Sep 30th, 2006
Replies: 10
Views: 25,315
Posted By plazmo
int hits = Int32.Parse(Application["Hits"].ToString());

but
int hits = (int)Application["Hits"];

would be better because the object is already an int
Forum: ASP.NET Sep 28th, 2006
Replies: 3
Views: 2,505
Posted By plazmo
no that wouldnt work, because it would only get 1 record for each id.

But to the question, what is the problem? Do you not understand what they are doing?
Forum: ASP.NET Sep 19th, 2006
Replies: 2
Views: 1,724
Posted By plazmo
id say the easiest way to check for duped blobs is to compare there hashes. so if you want it to be fast, add a hash column to the table, then generate like a md5 hash when you insert it.
Forum: ASP.NET Sep 15th, 2006
Replies: 8
Views: 4,409
Posted By plazmo
do you see what you are doing wrong here?
your looping thru the rows and not even using the object your looping with, 'row'. and if its only 1 column your itemarray index should be 0 always

do...
Forum: ASP.NET Sep 1st, 2006
Replies: 4
Views: 3,467
Posted By plazmo
is the templet an html/text file? if so use System.IO and open the file with a filestream and read it with a streamreader.
Otherwise if you are like generating this dynamically with some type of asp...
Forum: ASP.NET Sep 1st, 2006
Replies: 2
Views: 2,174
Posted By plazmo
its not the button you would turn validation off . its on the textbox.
or you can put ValidateRequest="false" also at the top of your page, to turn off validation on everything
Forum: ASP.NET Sep 1st, 2006
Replies: 14
Views: 7,355
Posted By plazmo
Instead of hitting the db twice, you can increase the count with one query
"update TheTable SET visitorcount = visitorcount+1"
Forum: ASP.NET Aug 28th, 2006
Replies: 8
Views: 4,409
Posted By plazmo
you cannot pass a datareader because it is a connection to a database and a webservice can only pass data which can be serialized such as xml.
The best thing to pass is a dataset. because a dataset...
Forum: ASP.NET Jul 17th, 2006
Replies: 3
Views: 10,986
Posted By plazmo
for the onClientClick, if confirm returns a bool try using this for the code


onclick="return confirm('Are you sure you want to delete this item?')"



you can also put that in the...
Forum: ASP.NET Jul 6th, 2006
Replies: 1
Views: 2,741
Posted By plazmo
Hmm, since you want a working solution to a problem rather then an answer to a question. I would suggest purchasing something to do this. Or i would be more then glad to write this for you with a...
Forum: ASP.NET Jul 6th, 2006
Replies: 1
Views: 12,376
Posted By plazmo
Hmm, i replyed to a post exactly like this somewhere else on this forum.
Anyways use Request.Form["controlID"] to get the value after a postback.
Forum: ASP.NET Jul 6th, 2006
Replies: 2
Views: 1,966
Posted By plazmo
Well you are using your datareader to write your items to the listbox. then you are clearing your items. After that you are trying to assign the values from the reader to the listbox with...
Forum: ASP.NET Jul 2nd, 2006
Replies: 2
Views: 2,975
Posted By plazmo
you should beable to get their values with Request.Form["fieldName"]
Forum: ASP.NET Apr 3rd, 2006
Replies: 3
Views: 3,813
Posted By plazmo
um well look at the values in srcSponsorNames and im sure you will not see the value of Bind("Sponsor"). you are trying to select a value that does not exist
Forum: ASP.NET Apr 3rd, 2006
Replies: 1
Views: 1,333
Posted By plazmo
im sure you are getting an exception, and that is classic asp so i dont exactly know what it does on a error. but you could put a try catch around it and print the error on the page. or step thru the...
Forum: ASP.NET Feb 22nd, 2006
Replies: 8
Views: 71,737
Posted By plazmo
i might be wrong but i dont think you can use a timer in asp.net because inorder to change a value on the page it has to do a postback, which reloads the page each time.

but ive seen this done...
Forum: ASP.NET Jan 22nd, 2006
Replies: 3
Views: 3,490
Posted By plazmo
im trying to find a way to do an action when someone accesses a image file.
example would be someone views 'http://site.com/image.jpg' then say i want to log who has veiwed this file in my...
Showing results 1 to 39 of 39

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC