
Gertie
Members-
Posts
25 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Gertie
-
jup jup, that's the cause off the damage! thanks for your help guys
-
It has got nothing to do with your code. I had written a complete email service class, and it worked perfectly on the laptop i was using. Now i've taken the complete programme on my pc at home, with IIS and .NET 1.0 on it. And it doesn't work. The reason, seems to be that SMTP is not working properly!! I've read that i need to reinstall it, but i don't know how to reinstall the SMTP stuff without uninstalling IIS?! Can someone help me?
-
The input tag has got the layout for textboxes on it. And i have like a zillion textboxes but only 3-4 checkboxes. Therefor a checklist gets the layout of a textbox. And putting the cssclass on the checklistbox doesn't work. That's the problem. You see? any suggestions? greetz Gertie
-
How do you do this? Can you explain me how to make a Custom Control? I've never done that before. Isn't there an easier way to force .NET to just put the class on the Input tag instead of the table? Thanks for the fast reply and all. Greetz Gertie
-
I have a radiobuttonlist and a checkboxlist in my page. Now i'm putting a CSS on my pages wherein the INPUT class= for all the textboxes is set to make them all equal in size and color... But now he takes this also for the radiobuttonlist: it also is a input for the HTML code. This would not result in a problem at all when i would create a class in my CSS to assign to the radiobuttonlist or checkboxlist. So i did. Problem now is that he takes the ASP.NET code and makes the following HTML from it. <table id="rblDatum" class="optievak" border="0" style="width:179px;"> <tr> <td><input id="rblDatum_0" type="radio" name="rblDatum" value="nieuwer" checked="checked" /><label for="rblDatum_0">en nieuwer</label></td> </tr><tr> <td><input id="rblDatum_1" type="radio" name="rblDatum" value="ouder" /><label for="rblDatum_1">en ouder</label></td> </tr> </table> what is terrible, because the class is on the table,not on the input: therefor the input keeps his CSS and looks like a textbox! witch is not the plan! thanks for any help on this, Gertie
-
I had a validator on it. The requiredfieldvalidator, seems to change that 'onclick' event. So it only does the validate. Now i've turned the validation OF and made a validation in the code behind, to show a "home-made" label with "please fill in..." Et Voila, the confirm started working!! ;) thx Guys beybey
-
Hello, I'd like to search for a word in a string. And whenever i get an occurence it takes the word + X-words around it!! Let me explain with an example. if i have a string: "Hello, my name is Gertjan the ASP Guy from Belgium let me thank you al for helping me!" Then if i search on this string for "an" and is set X=3 then it wil give me the words with "an" in it and 3 words before and 3 words after that word. With "..." in between. The result would be: "... my name is Gertjan the ASP Guy ... Belgium let me than you al for ..." I can already get the AN in bold. so for the moment i already have in a second string: "Hello, my name is Gertjan the ASP Guy from Belgium let me thank you al for helping me!" I've done this with Regular Expressions. thx for the help, Gertie
-
not working javascript confirm? I have a button btnWis and in my page_load i try to give him a javascript to ask the user to go on or not (dutch). But it doesn't do a thing? What have i done wrong? btnWis.Attributes.Add("onclick", "return confirm('Bent u zeker dat u deze aanvraag wil verwijderen?');") I've also tried btnWis.Attributes("onclick")="javascript:return confirm('Bent u zeker dat u deze aanvraag wil verwijderen?');" but nothing works. ps: it worked once, but for one reason or another it stopped working? strange!! thx, Greetz Gertie :-\
-
Ok, I have got .NET framework 1.0 and Developer Environment 7.0 installed on my computer and there is no checkedlistbox in my toolbox. (there isn't even a submenu Windows Forms). Do I need to instal a later version of .NET? Or do i have to get something extra, or maybe i have to put on some option somewhere? I'm programming an ASP.NET application with VB, i hope this hasn't got anything to do with it? Thx for the fast reply. Greetz Gertie
-
I don't have a menu for windows forms, and i don't find the checkedlistbox? Is there something i have to do to get it? Thx guys, Gertie
-
ok, so far so far all i came up with is making a function in the user control named GiveUser that returns the string. Then i made following changes in my form. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here Dim hoofding As Control = Page.FindControl("Hoofding") Dim hoofdingType As Type = hoofding.GetType Dim hoofdingGetUser As PropertyInfo = hoofdingType.GetProperty("GiveUser") strUser = hoofdingGetUser.GetValue(hoofding, Nothing).ToString() If strUser = "" Then pnlLogIn.Visible = False pnlLogOut.Visible = True Else pnlLogIn.Visible = True pnlLogOut.Visible = False End If End Sub thanks, guys for any help on this
-
Hello, I have a usercontrol. In it is a string declared. Now for me a simple question, but not easy to find an answer on the net: Can i get the value of this string to a new string in the form that has the ascx file implemented on it? thanks a lot, Gertie
-
I'm terribly sorry guys, but here i am again with, what probably is, a stupid question. Is it possible to create a listbox with in it checkboxes?? so you can instead of selecting the items in the listbox, select the checkboxes? And if it is possible? how?? Thanks, Gertie
-
Thanks guys, It's working, and now i'm going on to the next level!! It's like super mario bross, you kill one mean boss, you get another!! No problem, just let them come!! I've picked up enough mushrooms and flowers!! *pling pling* :cool: :D
-
thanks you, I hope i get this started today. Because i'm working against a deadline, i only have 3 days to make a FAQ page. It is not a big one, but al in al it still is a big task! see you, gertie
-
problem with date Maybe this is a silly question, but i'm new to this complete approach of an Access database and SQL statements. What are the #'s for? And what ways are there to compare dates? Is it possible using = < > for looking if dates are equal, bigger smaller then another date? or are there functions in sql for it? i'm trying to compare a date as well, but it doesn't do the query at al Dim strSelect As String = "select * from FAQ" strSelect = strSelect & "WHERE Date>" & Now().AddMonths(-1) and then i execute it to fill a dataset with a dataadapter. But it returns all fields in the table FAQ, instead of the ones from only one day old?! Can someone help me?? thanks, Gertie
-
In the page_load i just try to fill the page with data from a dataset/ dataview. Only if i put the loop for the Dropdownlist "DDPlaats" code that is in commentary now, into work, the complete application gives a Server unavailable error. This error tells me to go and have a look at de System event log for te web server, but i don't know where to find that! If Not Page.IsPostBack Then 'Gegevens ophalen en in dataset steken bindData("select * from Postcode", "Postcode") 'bindData("select * from Customer", "Customer") bindData("select * from Webgebruiker", "Webgebruikers") bindData("select * from qryGebruiker where KlantNr LIKE '" & getUser("KlantNr") & "' AND GebrNickNaam LIKE '" & getUser("GebrNickNaam") & "'", "Webgebruiker") 'Postcode en plaats dropdownlists vullen DDPlaats.DataTextField = "Plaats" DDPlaats.DataValueField = "Postcode" DDPlaats.DataSource = dsSignUp.Tables("Postcode") DDPlaats.DataBind() DDPlaats.Items.Insert(0, "--Gemeente--") DDPlaats.Items.Add("--Andere--") DDPlaats.SelectedIndex() = 0 DDPostcode.DataTextField = "Postcode" DDPostcode.DataValueField = "Plaats" DDPostcode.DataSource = dsSignUp.Tables("Postcode") DDPostcode.DataBind() DDPostcode.Items.Insert(0, "--Pcode--") DDPostcode.Items.Add("--Andere--") DDPostcode.SelectedIndex() = 0 'Alle velden vullen, om aangepast te worden dtvWebgebruiker = dsSignUp.Tables("Webgebruiker").DefaultView txtKlantCode.Text = ManageNull(dtvWebgebruiker(0)("KlantNr")) txtNickNaam.Text = ManageNull(dtvWebgebruiker(0)("GebrNickNaam")) txtVoornaam.Text = ManageNull(dtvWebgebruiker(0)("GebrVoornaam")) txtNaam.Text = ManageNull(dtvWebgebruiker(0)("GebrNaam")) txtAdres.Text = ManageNull(dtvWebgebruiker(0)("GebrAdres")) txtPost.Text = ManageNull(dtvWebgebruiker(0)("GebrPostcode")) txtPlaats.Text = ManageNull(dtvWebgebruiker(0)("Plaats")) txtFax.Text = ManageNull(dtvWebgebruiker(0)("GebrFax")) txtTel.Text = ManageNull(dtvWebgebruiker(0)("GebrTel")) txtEmail.Text = ManageNull(dtvWebgebruiker(0)("GebrEmail")) 'DDPlaats.SelectedIndex = DDPlaats.Items.Count - 1 'Do ' If DDPlaats.SelectedItem.Value = ManageNull(dtvWebgebruiker(0)("Plaats")) Then ' Exit Do ' End If ' DDPlaats.SelectedIndex = DDPlaats.SelectedIndex - 1 'Loop While DDPlaats.SelectedIndex >= 0 DDWijze.SelectedIndex = DDWijze.Items.Count - 1 Do If DDWijze.SelectedItem.Value = ManageNull(dtvWebgebruiker(0)("GebrVerwittigWijze")) Then Exit Do End If DDWijze.SelectedIndex = DDWijze.SelectedIndex - 1 Loop While DDWijze.SelectedIndex >= 0 dbConn.closeConnection() End If The rest of the code is merely for letting the user navigate through the page and application. And to validate the fields and all, but this works perfectly on another page with the same fields?! I don't understand at al
-
only one page It seems that it will only crash when i'm trying to run one specific page. Is it my code? greetz
-
I'm developping an application, everything goes great, but now all of a sudden i get following error and none of my pages get loaded for a long time, then at once they get loaded again, and then 5 minutes later they won't anymore? error: Server Application Unavailable all pages where working fine, until now? What can there be wrong? I've changed only one page! greetz, thanks Gertie
-
jup The problem is that multiline and maxlength don't work togheter. It's or multiline or maxlength. You can put multiline and a maxlength but the maxlength propertie then stops working! I've just made a validation afterwards before writing to the database. It looks like this If txtOmschrijving.Text.Length > 175 Then lblTekens.Visible = True lblTekens.Text = "Geef minder dan 175 tekens in a.u.b." Exit Sub Else where lblTekens is a sort of errorfield like a validator field it is hidden afterwards, when the field is validated again and has less then 175 characters. Greetz
-
a real asp textbox! :-)
-
Txtbox with multiline --> & MAXLENGTH? Is it possible to make the textbox's maxlength set to a value you like when you use multiline? If not i think that's not at all handy, specialy not when using a database. Can someone help?
-
Prob Solved! No sweat guys, Everyone looking here, thx for the effort. I've made my select different with AS to create a better name for the difficult fields. select [service Item.No] AS SINo from table then it's easy to use with SINo as fieldname! see you later, Greetz
-
I have a Access database, and i have a query in it that contains a field No for the Customers: Customer.No in the query. And it contains Service Item.No in the same way because the No is identical. I also have a datagrid in which i'd like to include the field Service Item.No but the lines Line 116: <asp:TemplateColumn Visible="false"> Line 117: <ItemTemplate> Line 118: <asp:Label id="P_id" text='<%# DataBinder.Eval(Container.DataItem,"[service Item.No]")%>' runat="server"> Line 119: </asp:Label> Line 120: </ItemTemplate> seems to fail on line 118 the because of the . in it? Can someone help? thanks a lot, Greetz, :p :p
-
I'm with my hands in my hair! I'm trying to make a messagebox that changes!! A normal message is no problem: just making a button and adding btnButton.attributes.add("onclick","return confirm('....');") But i want to do this depending on the value i test in a textbox!! So i have a textbox with a value in it. when it's empty when pressed on the btnButton then i want a message "Please fill in something", and when it's not a value from in my database (that i can test already easily) then it says "not in database" and else it says "found ...., do you want to....?" Can someone help me? Greetz