Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cjburkha

    avoid dataset iteration 2x

    In a way I can. The problem is, I need to do ALL createQuestion before I do ANY createAnswer. I can do a temp state : [code] dim questionString as string = "" dim answerString as string = "" for i = 0 to faqDS.tables(0).rows.count - 1 questionString +=...
  2. cjburkha

    avoid dataset iteration 2x

    Hi, I am making a faq page and questions and answers are stored in a record of a db. I have this faqDS, but I can't find a way to avoid looping the ds 2x. for i = 0 to faqDS.tables(0).rows.count - 1 createQuestion(faqDS.tables(0).rows(i).item("question") next i for i = 0 to...
  3. cjburkha

    For loop question

    Excellent, thank you very much. I expected dim times as integer = 2 dim i as integer = 0 for i = 0 to (times - 1) response.write("i is:" + i.toString + " ") times -= 1 next i response.write("<br>") dim highCount as integer = 5 for i = 0 to highCount response.write("i is:" + i.toString + "...
  4. cjburkha

    For loop question

    Hi all, I have a for loop that doesn't behave how I expect, and I was hoping someone could explain it for me... I would expect the following loop to run exactly 1 time dim times as integer = 2 dim i as integer = 0 for i = 0 to (times - 1) response.write("i is:" + i.toString + " ") times...
  5. cjburkha

    programin style/application design

    Thanks for your reply. Your code showed me an error I consistently make, that string = is case sensitive, and I forget the ToUpper. Also, for some reason I was obsessed with getting the Request.ServerVariables("PATH_INFO") on the aspx page and passing it to the control via a property. That was...
  6. cjburkha

    programin style/application design

    Thank you very much. I had thought of the Request object, but for some reason I didn't think it would be available at the time my user control was renderd. "In theory, this is not too difficult" Yes, but in practice getting a variable value rather than hard coded was a bit more difficult than I...
  7. cjburkha

    programin style/application design

    Hi, I'm more of an html programer who is trying to leverage asp.net to make my html programing easier and smarter, so I don't fully understand the .net paradigm yet. I have a design question, and I would like some opinions on it. Let me try and set the situation. I have a nav on the left side...
  8. cjburkha

    select item from dropdownlist where value = key

    Thanks, thats exactly what I was looking for. I knew there was a built in method for what I was trying to do, I just couldn't find it.
  9. cjburkha

    Trying to build dropdownlist during datagrid Edit Command

    I think your onItemCreated is not being called. Did you wire it in your asp code like <asp:datagrid onitemcreated = "myitemcreated"> I know thats not what I gave you at first, sorry, I'm doing it a bit different and forgot to take that into account.
  10. cjburkha

    select item from dropdownlist where value = key

    Jeez I'm a dolt. I want to make the following code more efficient: i = 0 For Each Item As ListItem In eventDL.Items If Item.Text = "asdf" Then eventDL.SelectedIndex = i End If i...
  11. cjburkha

    Trying to build dropdownlist during datagrid Edit Command

    Also, you might have to do it in another event handler: OnItemCreated(ByVal e As DataGridItemEventArgs) MyBase.OnItemCreated(e) Dim i As Integer Select Case e.Item.ItemType Case ListItemType.EditItem The datagrid might not have created the edititem control...
  12. cjburkha

    select item from dropdownlist where value = key

    Hi all, I have a dropdownlist that I populate like this eventDL.DataSource = sqlSelect("Select * from [event]") eventDL.DataTextField = "eventName" eventDL.DataValueField = "pk_Event" My problem is I want to set the selected index based on the...
  13. cjburkha

    TextBox ID and clientId inside of DataGrid

    Thank you for your reply, that would work just fine. However, I found a different way to do it. I called attributes.add during the datagrid.load event, and by then the ClientId was what I expected DG_Loaded(ByVal sender As Object, ByVal e As EventArgs) Dim addButton as Button =...
  14. cjburkha

    TextBox ID and clientId inside of DataGrid

    Sure, I understand that, but I am trying to check for the instance where the user never enters the TB at all, they just skip over it and click the add button.
  15. cjburkha

    TextBox ID and clientId inside of DataGrid

    Edit: Actually, I didn't read quite close enough, as the onclick event will never fire. That is the check I am trying to do, I want to make sure the user entered some text. I like the idea though, and will try to apply it in some other way.
  16. cjburkha

    TextBox ID and clientId inside of DataGrid

    Thanks for the reply. Thats what I thought I was doing here Which I call before I add Attributes.Add to the button. I have default text in the TB, and I want make sure the user doesn't hit 'add' before they changed the default text. If they don't change the text, onblur will never fire...
  17. cjburkha

    TextBox ID and clientId inside of DataGrid

    Hi all, I have tapped into the Item_Created event of DataGrid to customize it a little more how I would like. In the footer (If e.Item.ItemType = ListItemType.Footer Then) I am adding two TextBoxes and a button, and I would like to validate the data in the textboxes when the button is clicked...
  18. cjburkha

    Inheriting permissions

    Hi, I am trying to get a grasp of permissions on SBS 2003, and I would like some help. I have permissions set the way I would like on a folder, and this folder does not inherit from its parent. On the folders under this folder(its children) I set to inherit and propegate. Now, all the...
  19. cjburkha

    exchange/outlook To Field problem

    Marc, That is the problem I am having, I'm looking for a way to not have the same name for both. Im looking for a way for the to field to show the email address the email was sent to, not a resolved name. Microsoft is being to smart for me in this instance, I want the to field to show...
  20. cjburkha

    exchange/outlook To Field problem

    Hi, I hope this isn't too mundane, but I have been searching for an hour, and can't find any information on this. I am using SBS and exchange 2003 with outlook 2003. In sbs I create a user larry, with a display name Larry Smith. Under email addresses I add the accounts larry@domain, and...

Part and Inventory Search

Back
Top