Jump to content
Xtreme .Net Talk

niall29

Avatar/Signature
  • Posts

    35
  • Joined

  • Last visited

niall29's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thanks This looks like what I am after.
  2. Hi all Can any one tell me how I can force a web page created in ASP.NET to open maximized.
  3. Actually that does seem to be what I am looking for. Let me see if I am understanding it. I always had the whole tree populating at the form load but from what I understand is you populate it as you click the Parent node. If I am write how would that work on a search feature which should open the tree to show that employees position.
  4. Hi I hope somebody can help me but I want to make a treeview that can have endless levels. I made my original tree which had 5 levels but now our company is growing and there are some depts that have 7 or 8 levels and growing. I was using If Mang_ID = Person_ID in my tree is there away that I could make it instead of (Example) Childnode, childnode 2 etc I could make the number an integer and put it on a loop In theory I think this should work but unfortunately I cant get it to work in practice. Any help would be greatly appreciated.
  5. Thanks I will look at it. I have never used it before, I know Im being a bit of a pain but can you give me any examples how to use it
  6. It is only a site on the Intranet which we would prefer if agents didnt see so I have set it up as. <authentication mode="Windows" /> <authorization> <allow roles="Management " /> <deny users="*" /> </authorization> and if you are in management it will go to the page and if your not it will go to the Unauthorized page. Or what would you recommend??
  7. But that is the problem, I don't want to give them a form to log on. I want it to check their Windows logon and if it doesn't have authentication then redirect to the other page and not give the form for an alternative signon.
  8. I have a site on the intranet at work and what I am trying to do is when an employee does not belong to a Group which is Authorized to look at a page it will go directly to the Page that says unauthorized instead of giving them 3 chances to log in. Please can some body help. Thanks in advance
  9. dont know if this is even possible but here it is...... I want to use a datepicker to enter a date but on the calendar I want it to highlight every second Friday in RED. Any help would be greatly appreciated...... Thanks in Advance Oh This a a Windows application.
  10. Im not sure about how to go about it Have you any ideas
  11. I dont know if this is even possible but here it is...... I want to use a datepicker to enter a date but on the calendar I want it to highlight every second Friday in RED. Any help would be greatly appreciated...... Thanks in Advance Oh This a a Windows application.
  12. But I dont have Excel installed on the IIS Server. It doesnt let me call Excel.AutoFilter. Do you know, Do I have to install Excel on the IIS server.
  13. I am actually having 2 problems: 1 When I do the export to SQL the Accnt # (16 digits) eports to excel like 1.11111E +15. 2. Turning on Auto filter The code I am using is like. Response.ContentType = "application/vnd.ms-excel" ' Remove the charset from the Content-Type header. Response.Charset = "" ' Turn off the view state. Me.EnableViewState = True Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) ' Get the HTML for the control. DataGrid1.RenderControl(hw) ' Write the HTML back to the browser. Response.Write(tw.ToString()) ' End the response. Response.End() ' Response.ContentType("A:A")Selected) End If Conn.Close() End Sub If you need any more let me know but I think this should give the basic idea.
  14. As you can see by my code below I tried a few ideas befor I got it to work see if this helps you or if you need more info I will try yo make in to better English. DataGrid1.DataSource = RDR DataGrid1.DataBind() DataGrid1.Visible = True ' Verify if the page is to be displayed in Excel. If Label1.Text = "1" Then 'Dim xl As New Excel.Application 'Dim wbk As Excel.Workbook 'xl.Visible = True 'wbk = xl.Workbooks.Add 'wbk.Sheets.Add() '' wbk.ActiveSheet.Cells(1, 1).AutoFilter() 'wbk.ActiveSheet.Cells(1, 1).CopyFromRecordset(DataGrid1) ' If Request.QueryString("bExcel") = "1" Then ' Set the content type to Excel. Response.ContentType = "application/vnd.ms-excel" ' Remove the charset from the Content-Type header. Response.Charset = "" Response. ' Turn off the view state. Me.EnableViewState = True Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) ' Get the HTML for the control. DataGrid1.RenderControl(hw) ' Write the HTML back to the browser. Response.Write(tw.ToString()) ' End the response. Response.End() ' Response.ContentType("A:A")Selected) End If Conn.Close() End Sub
  15. I have a web page with a datagrid of results from a query, then with a press of a button it exports the details to Excel which is working great but I want it when the page loads it automatically turns on Auto filter. Can any one help me with this. Any help would be greatly appreciated.
×
×
  • Create New...