Jump to content

aic007

Members
  • Content Count

    84
  • Joined

  • Last visited

Everything posted by aic007

  1. Ok, thanks. The sample I was talking about was this:http://www.thommessen.no/no/Team-Thommesse...idere/?letter=aSo, basicly, I was wondering if someone knew about a sample that could help me making an application like in the link above - if I click on the "B" letter, then I will get a view of all emplyees that have a name starting with the letter "B" and so on.
  2. Hi.I know how to usw gridview, and to use SQL queries, but don't how to get a view like in this sample. Do you know about any good samples or guides I can follow? :-)
  3. Hi all. I am a newbie that doesn't know what to search for. I need to develop an application where I get data from an SQL view.Anyon ehere that knows about any samples, or any good links, that can help me in the right direction in making an web application like this:http://www.thommessen.no/no/Team-Thommesse...idere/?letter=aRegards
  4. Hi again.I solved the problem by using ImageButton and then giving it an imageurl. imgBtn.CssClass = "SokKnappBilde";imgBtn.ImageUrl = "../../../knapp-sok.PNG";.SokKnappBilde{ float:left; margin:-24px 285px -3px 240px; width:75px; height:22px;}Thanks alot for giving me tips. Your assistance is most appreciated. I have another problem though, which I need to sort out. A problem regarding gridview.I get data from SQL, and need to decide the width of my columns, I want my cells to have static widht.This is my code:protected override void CreateChildControls(){try{this.gridView = new GridView();t
  5. Hi.I have tried with a regular button, but it doesn't look good. It looks like an image attached on a button, but I want it to use image only as button. Any ideas how I can accheive that? This is my code:Button btn;btn = new Button();btn.Click += new EventHandler(btn_Click);btn.Text = "Søk";btn.CssClass = "SokKnappBilde";css:.SokKnappBilde{ float:left; margin:-22px 285px -3px 240px; background-image:url('../../../images/knapp-sok.PNG'); width:75px; height:20px;}:-)
  6. Thanks. I'll look at it. :-)I have another question though. I used the ImageButton control to use a picture from css - file as a button, and it works, but I get a red cross on the button also in addition. The red cross looks like a red cross that you see when you are on a web site and can't see a picture.This is my code:ImageButton imgBtn;imgBtn = new ImageButton();imgBtn.Click += new ImageClickEventHandler(imgBtn_Click);imgBtn.CssClass = "SokKnappBilde";I suspect it has something to do with me not having defined any picture paths in this code, but do I need to do that?Is there a way to get ri
  7. Hi, this worked for me, thanks alot,. Even though I am not using php, I understood the logic, and fortunately it worked.However, I have another problem, if someone could help me, I would be most thankful :-)I get my fields like this:this.gridView.Columns.Add(GetColumn("Mobil nr, arbeid", null, "Mobil", true, true));From this code I will get "Mobil nr" displayed as the text of the field.Is there a way to specify the size (width) of this field only?Regards
  8. Hi Emiel.Thanks for answering.I get my fields like this:this.gridView.Columns.Add(GetColumn("Mobil nr, arbeid", null, "Mobil", true, true));From this code I will get "Mobil nr" displayed as the text of the field. Is there a way to specify the size of this field only?:-)
  9. Thanks for the answer. I have another question, how can I decide the size of my fields in a gridview?To format the rows I use this code: this.gridView.RowStyle.CssClass="oddetallslinjer";but I don't know how to format the cells.. any ideas?
  10. Hi all.I was wondering that if I have a dinamically generated table (gridview), then how can I get it to have blue colour in the first line and the to automaticly have yellow colour on every second line?Any ideas?Regards.
  11. Hi all.I have a question regarding a button, which I have made in visual studio.The code is:Button button;Label lblSearch = new Label();txtSearch = new TextBox();button = new Button();button.Click += new EventHandler(button_Click);button.Text = "Søk";I have an image, named buttonImage, which I want to use instead of custom text. How can I accomplish that?Regards.
  12. I know all that, but this is an Intranet site where the useres are technicaly quite dumb, and my only assignments are to disable print and copy, and yes I know, there are many "back doors". They get their installation from images which also installs all custom application, and in the policy java script is enabled.
  13. I know theese things can't be done 100%. I only need to disable copy & print for users in a company that only uses IE, and the users are not that smart. The only requirement is to restrict ctrl+c and print. If this can be done. Please do help me I disabled right click with this script://Disable right click scriptvar message="Ikke lov med hoyreklikk";///////////////////////////////////function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if(document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false
  14. I know it can't be done 100%, but my only requirement is to restrict users from using ctrl+c and using ctr+p (and file --> print)... Can this be done?
  15. Hi allI need to restrict print and copying from my web site. I managed to disable right click, but have not managed to restrict ctr+c and print. Any one here that has some nice scripts for me ? :-)
  16. Thanks a lot, my friend, thanks a lot.
  17. I am a total newbie.Please give me som samples :-)
  18. I am using an html table with 2 pictures, 2 pictures that link to other sites - in a table that is inside a <td>In the <tr> under theese pictures I use something called a text editor web part which is in another table. The web part makes it possible for users of the Intranet to write text when being online. The problem is that when the users write long lines. The pictures moves many pixels to the right side. Is there any way to tell the pictures to hold their posistions? This is a stripped down version of my table. <table> <tr> <td> <table>
  19. Have tried that also. Same error :-(
  20. I am queyring Active Directory by using linked server access (ADSI)I use this code to get data from ADselect sAMAccountName, givenname as 'First name', middleName as Initials, sn as 'Last name', displayName, telephonenumber as Telephone, mail as Mail, info as Remarks, title as Title, department as Department, company as Company, manager as Managerfrom openquery ( ADSI, 'SELECT sAMAccountName, givenname, middleName, sn, displayName, telephonenumber, mail, info, title,
  21. aic007

    aic007

    Hi.I need to set expiry date on the articles that are published on the Intranet, but can not figure out how to do that. Is there any expiry date control in asp. net ?
  22. aic007

    HTML table

    Hi again.I got a new problem on the same topic.I can not make the columns height smaller, and the picture I use in the <td> repeats itself 3 times horizontaly. If I set it to no-repeat, the picture does not appear at all.I can not change the size of the picture. Is there another way around to make it repeat only once ? :-)
  23. aic007

    HTML table

    It worked.Thanks alot mate.
  24. aic007

    HTML table

    I am back again with another problem :)The picture I put in my table on the left and on the right side, wich spans for 62 rows, is 1 px more on the left and 1px more on the right side, on their respective sides, compared to the pictre on thesame table whic I use as a header (blabla1, blabla, blabla2). <table style="width: 100%" cellpadding="0" cellspacing="0"> <tr class=" HaandbokHvitTabelliBlaa"> <td class="blabla1"> </td> <td class="blabla" colspan="4"> INNHOLD </td> <td class="blabla2"> </td> </tr> <tr class="Haandbokta
  25. aic007

    HTML table

    Thanks alot for helping out guys. Now it works.
×
×
  • Create New...