Jump to content
Xtreme .Net Talk

Robby

Moderators
  • Posts

    3848
  • Joined

  • Last visited

Everything posted by Robby

  1. in 2003 you need to give read/write permission to these types of actions. Typically you would permit ASPNET user to the directory.
  2. The easiest way is to create the validator at the same time as the textbox. The validators have a property "ControlToValidate", that's where you would pass it the newly created textbox.
  3. Yeah, remove the insert routine from your page load event :) , however, if you need it the first time a person visits the page then wrap your routine with the following code... if not IsPostBack then LoadInsertMyData() end if
  4. That's a good point Jay; Also, when you compile do you see PDB files with the same name as your assemblies?
  5. Why exactly are you encrypting the page?
  6. you can do it using javascript, there's a sample here ... http://www.java-scripts.net/javascripts/Select-All-Script.phtml
  7. Place this in the DayRender event.... If e.Day.Date < Now.Date Then e.Day.IsSelectable = False End If
  8. To iterate a control such as a panel... For each x in Panel1.Controls
  9. My prefered method is Mater Pages; but since I use 1.1 I created a template base class then have all the pages inherit it. It is the cleanest and most effecient method. Second in line is user controls but you will need to repeat the layout for such things as tables/headers/footers on every single page with a lot of messy copy/pasting. LAST on the list is Frames.
  10. If a control is in another container such as a Panel you need to iterate Panel.controls. As a side note: why aren't you using a resource file for all your language strings, this is done with a couple of lines of code and requires little effort. There is no need to loop controls or use IF conditions to see which language is being used. It is really simple and would apply the selected language to the entire application and is scalable.
  11. In display mode you don't need the end-user to see all the available items in a dd list, also, imagine if you had 100 rows in your datagrid and each row contained a dropdownlist with 100 items each. that would be a large download for the client.
  12. Are you binding/displaying the dropdown only whilst in Edit mode? I certainly hope so, anyway, create a Protected function (let's say LoadMyData) that returns your data source, then create another function to figure out which index was there prior to going into edit mode (let;s say GetMuSelectedIndex). Here's what the dd tag should look like... <asp:DropDownList id="xx" runat="server" DataSource="<%#LoadMyData%>" DataValueField="myID" DataTextField="myText" DataMember="someTable" SelectedIndex='<%# GetMySelectedIndex(Container.DataItem("myID")) %>'></asp:DropDownList> regarding the function GetMySelectedIndex: the argumnet will get you the value -in this case myID - into this function then it's up to you how you want to handle it.
  13. 1 You need to re-load the grid in the event handler of the "single Button at the bottom of the grid" and ensure that your load routine in the page_load is done only when "Not IsPostBack" 2 it should work once step 1 works. 3 you can make the Radio buttons Read-Only
  14. The first thing you need to do is remove all declarations from your For loop, next declare your Cmd as a page-level variable. the way you have it now, your declaring a new instance of these items for each iteration. Can you post a sample of what the values would be for SQL, SQL2 and SQL3. (The values of each once your routine is complete) Also, I noticed you have a "GoTo StartOver" in one of your loops, this is a big NO-NO. You can end up in an endless loop real easily, there are so many new string functions in .NET you should be using instead.
  15. You need to reload the table in the img_click event as you do in your Page_load event, but you also need to limit the page_load routine to "Not IsPostBack" only.
  16. Is Card_num an Identity column, is it auto-generated?
  17. Let's say the DDL is in a Panel, use panel1.findcontrol() to locate the child control. Something like this... dim dd as Dropdownlist dd = CType(panel1.FindControl("myDD"), DropDownList) if not dd is nothing then 'do something with the dd here end if
  18. Did you check the debug options in the project's properties?
  19. I didn't look at your code but from the error message I'd say you cannot insert Card_num 99 if it already exists in the table.
  20. cool........
  21. There is probably a post-build script in the project file, you can find it and disable or alter it, or you can make the aspx file read-only until such time that you want to change it.
  22. Is this a shared server/host or do you have physical access to the machine?
  23. You will need to place a link or button column in place of the 'double-click' idea you have. Also, you'll find a sample in this article http://aspnet.4guysfromrolla.com/articles/040203-1.aspx
  24. The time it takes to tweak translated code I would re-write the application from the ground up.
  25. If you remove all references to the control from your project, including in the References list, recompile the control then add it back to your project it should work fine.
×
×
  • Create New...