Ok so i have gone through in debug mode and so forth and when it gets to my subprocedure thats calls info from the database it gets to the point of myconn.open then errors out. Is there a way i can force it to open the reader no matter what b/c i cant find a single spot where it would be closed. Or what could cause the reader to not open?
jamesbronw
Posts
-
Reader not opening a second time -
Reader not opening a second timeYes. all of that is located in subprocedures inside of a module i have
-
Reader not opening a second timeHi, I have a wep page that reads from a database in order to get background colors for certain buttons on the page. It works fine when you go to the page and when there is a postback event. When i navigate away from the page and try to go back to it i get an error message that says "Invalid attempt to read when reader is closed" Does anyone have any suggestions on how to fix this? Thanks, Tommy
-
Post Back eventsHey people, I have a page that has 3 calendars across the bottom of it that are dynamically drawn from data from a database. I also have A picture gallery set up above the calendars. Now when I click on a new picture in order to make it bigger, the page does a postback. At this point i get errors w/ my dynamically drawn labels and such. Sometimes it say invailid attempt to read when reader is closed. Is there a way i can tell the page that on a post back dont reload the calendar information and still have it show up on the bottom of the page? Thanks Tommy
-
Centering text in a lable or buttonThanks, I'll give that a shot Tommy
-
Centering text in a lable or buttonIs there a way to center text with a label or button b/c i cant seem to find out how. Thanks Tommy
-
Pass double quote from VB to HTMLThanks to both of you. I am now able to atleast get the labels on the page! haha. Now i just need to figure out how to get them in the rows and columns needed. lol. Again, thanks for all your time and help Tommy
-
Pass double quote from VB to HTMLOk if i put it straight into my VB form code it renders it. If i put it into a sub procedure and call it from the HTML using the <% %> it doesnt create my new objects. This is all so new to me. Do you know why it would do this?
-
Pass double quote from VB to HTMLThanks for all your help. It is greatly appriciated. I have looked at the source code and there is nothing there that should be. I have no idea whats going on with this haha. I suppose i'll have to find another way to do what i need done. Again thanks Tommy
-
Pass double quote from VB to HTMLwell that code i posted doesnt work. Nothing shows up on the screen
-
Pass double quote from VB to HTMLcan i do that inside a do while loop like this...
Do While lbl <= 7 Dim newlbl As New Label newlbl.ID = "newlbl" & lnum newlbl.Text = lnum newlbl.BackColor = System.Drawing.Color.Blue newlbl.BorderStyle = BorderStyle.Inset newlbl.BorderColor = System.Drawing.Color.Black newlbl.BorderWidth.Pixel(1) Page.Controls.Add(newlbl)
-
Pass double quote from VB to HTMLThank you
-
Pass double quote from VB to HTMLHi i am trying to do a response.write from my vb code. I need this to create a new asp:imagebutton. This is the code i have
Response.Write(" ")
now when i pass it into the html i need do have double quotes around the id, server, width, height, and backcolor. The only reason i think this is because the controls are not showing up on my page. If anyone can help I would much appreciate it. Thanks Tommy -
substrings...you should have double quotes not single
string text = "Hi how are you";string lastWord = text.Substring(text.LastIndexOf(" ") + 1);
-
Finding the Day of the Week a date starts onHey, I need to find out what day of the week the first day of each month starts on. Is there a way to do this? Or does anyone have any ideas of how i could write a function in order to find this out? Thanks in advanced Tommy
-
"Live Text" as it were -
Calendar MonthOk i got it working. Just one more question. Can you have more than 1 selected range on the calender?
-
Calendar MonthI took a look at that but it makes no sense to me at all. I'm really new to the programming environment. Would you or anyone be able to give me an example of how to add just 1 month past the current month on the calendar? I'm trying to do this in the page_load of the webform. Thanks Tommy
-
Calendar MonthIs there a way that i can have the calendar show a different month? I need it to show dates for March not Feburary. Thanks in advanced Tommy
-
Image Button not respondingHey people, I have this really strange error. On my home page wich is called index.aspx i have a list of image buttons on the side. Each image button takes you to a new web page. The code for these buttons goes like this
style = 0 ibavail.Page.Response.Redirect("cabins.aspx")
now i have the same setup on all my pages. but this is the only page that when i click the button the page changes but it stays as index.html only pure white. I have set other pages as the start page and they still work like they are suppose to. Any ideas or solutions would help so much. Thanks Tommy