Topics
-
-
- Administrators
- 2 replies
- 1.5k views
I get this error after upgrading from asp.net 1.1 to 2.0 in our web hosting. "Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed." The page have add reference to System.Windows.Forms.dll. Below is part of my code: Dim x As Windows.Forms.Form = New Windows.Forms.Form Dim grp As Graphics = x.CreateGraphics() Dim stringFont As New Font("Arial", intFontSize) Dim stringSize As SizeF 'Measure String width stringSize = grp.MeasureString(strStudentName, stringFont) . . . The page have totally no bugs and running well. But get e…
Last reply by calvin, -
-
- 2 replies
- 1.3k views
Ok, I have a session variable called "CheckType". I have it in my global.aspx blanked out: Session("CheckType") = "" I then have a page where I assign a value to it: Session("CheckType") = "DIRECT" I then do a Response.redirect onto another page. Then I try to reference the value of the session variable: If Session("CheckType") = "DIRECT" then..... It is always blank. Should I not have it in global.aspx?
Last reply by cyclonebri, -
- 1 reply
- 1.1k views
Hi all When navigating between two pages on a site I use Response.redirect("test.aspx"). However, can I use the same statement if the page I am redirecting to is an SSL page?? or do I have to go response.Redirect("https://localhost/project1/text.aspx") or alternatively response.redirect("https://www.xyz.ie/test.aspx") Michael.
Last reply by cyclonebri, -
-
- Leaders
- 3 replies
- 1.9k views
Using Visual Basic.NET I am trying to locate the inputposition of a particuliar string in a RichTextBox. This string can be located anywhere. The document I am searching is in an rtf format. The problem is that I can get the input position of the string in the rtf however when I try to replace it the string the input position is no longer correct. Because the replace looks at the document in a plain text format not an rtf format thus the input position is incorrect. I need to keep the format of the original rtf. Not sure what to do. Any help offered is greatly appreciated.
Last reply by snarfblam, -
-
-
- Administrators
- *Experts*
- 5 replies
- 760 views
Hi All, I am in .NET 2003 I have a form and a toolbar on the form. When the user clicks on a button on the toolbar I call the following Sub I get a crash on the last line: tlbSearch.Buttons(0).Enabled = True ' enable search An unhandled exception of type "System.NullreferenceExecption" occured etc..... Object Reference not set to an instance of an object How can this be?, near the stop of the Sub I execute: tlbSearch.Buttons(0).Enabled = False ' Disable search with no problem. What could have happended to the toolbar object? I am new to objects, I come from a VB background. Thanks in Advance, '----------------------…
Last reply by JohnOb, -
-
-
- Leaders
- 2 replies
- 1.2k views
Hi, is there any way to full compile dot net application? in other word i want build and compile my application (c#.net) completly that it dont need to .net framwork to run. i just look a way to save my application from decompiler and desourcer. thank you
Last reply by mskeel, -
-
-
- Administrators
- 2 replies
- 1.4k views
I am attempting to help a friend. THey are attempting to look for the existence of a file with a certain extention. She successfully created a FileSystemWatcher to search a folder. She then pointed it at the real directory, and the events stopped triggering. She has administrator privledges on that folder. I used the Dir(path) function to see if another approach would work, and it did find the file. THe monitored folder is on a UNIX Server. I do not know if that makes a difference. Her application is running on an WinXP PC.
Last reply by kcwallace, -
-
- 0 replies
- 1.7k views
a colleague asked me if you could insert a datagrid inside a datarepeater, i wasnt sure at that time so i tried searching but was unable to get any info on it, so i tried messin with the repeater events diggin inside watch values heres what i came up with on the page i have the repeater with a datagrid within itemtemplate <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table> </HeaderTemplate> <ItemTemplate> <tr> <td> TABLE 1<br /> <%#DataBinder.Eval(Container.DataItem, "ID")%> <%#DataBin…
Last reply by lamy, -
- 3 replies
- 1.2k views
I'm wondering if anybody here knows of a forum like this one; except for networking type problems rather than programming ones.
Last reply by irasmith, -
- 7 replies
- 1.2k views
I am working on a small forum project for the sake of learning. At the moment, I'm using a Repeater to list Forums, and a custom control named ForumLink to actually create a link to each forum. Within ForumLink is simply a LinkButton with some additional formatting. Within the Repeater's OnItemDataBound method I am trying to pass the current DataItem as a DataRowView to a public property of ForumLink, ForumDataRowView, so that I can customize the display of the LinkButton. To set properties of standard controls, I'd simply use the FindControl() method, but I'm having trouble casting to my custom control. /* Produces the error: CS0246: The type or namespace name '…
Last reply by bri189a, -
- 0 replies
- 788 views
How do i add the Site Searh Functionality to my ASP .net website. How is it done in this site ??? Its urgent , pls give in ur inputs, Regards.
Last reply by sindhukv, -
-
- Administrators
- 2 replies
- 847 views
Hi All Can you stop a .net program from running over a intranet even if the clients machine as full right permissions granted? and is there a way to find out what permission set (code group) is being used when starting your program? Regards Paul
Last reply by Data Danger, -
-
-
- Administrators
- 2 replies
- 719 views
I use code such as the following to search a Dataset datatable: dim returnValue as string dim rowsFound as datarow() rowsFound = MyDataSet.Tables(0).Select("FirstName = '" & searchTerm & "'") returnValue = rowsFound(0).item("LastName") 'rowsFound(0) just for simplicity, here. return returnValue The problem is that if the searchTerm is not in the dataset, an exception is thrown by the select method. I want the function to allow such searches and deal with them, so I quickly thought of catching errors, something like this: dim returnValue as string dim rowsFound as datarow() try rowsFound = MyDataSet.Tables(0).Select("FirstName = '" & search…
Last reply by MXever7, -
-
- 4 replies
- 1.1k views
Anybody found any bugs? So far i've found that the little description window in the bottom right hand side seems to hide and show itself randomly. And that pressing 'Save All' has a 25% chance of resetting my computer. (The icon has now been removed). Jay.
Last reply by irasmith, -
-
- Administrators
- 1 reply
- 938 views
Hi, Is it possible to incorporate CVS/VSS in .NET. Is there any interface available ?
Last reply by PlausiblyDamp, -
-
- 4 replies
- 865 views
I need some help with an Indexer on a class I wrote. For simplicity, let's say the class is called Team. Some of the properties of team class are Name and City and Color. I have another class called Player, with Properties of Name, Position, and Height. Within my Team class, I have an indexer as follows. class Team { private Player[] _players; public Player this[index] { get { return _players[index]; } } } So if I'd like to get a player's name, I can do the following code: Team team = new Team(id); string playername = team[0].Name; This is working fine, but I'd like to make it a bit more like some of the control…
Last reply by Ice725, -
- 3 replies
- 3.3k views
Hi group, I am using a Datagrid with Dropdown, and the values which I have to show in drop are derived from output of a query so I cant use DataSource directly to populate the Dropdown and cant even hardcoad the Listitems in dropdown. These populated entries are also supposed to be used in an Insert Query. This is how I have added the dropdown in Datagrid, <asp:TemplateColumn HeaderText="MTD"> <ItemTemplate> <asp:DropDownList id="list" AutoPostBack="True" runat="server" Width="150px">' DataTextField="X_VALUE"> </asp:DropDownList> </ItemTemplate> </asp:TemplateColumn> …
Last reply by anup_daware, -
-
- Leaders
- 3 replies
- 1.2k views
hi guys! Using a DataReader, I populate a Datagrid with results from an SQL SELECT. On the grid, I see null values as (null). I'd want the grid to write them as an empy string. (i.e. "") I tried this: Dim table_style As New DataGridTableStyle table_style.MappingName = "Rubrica" table_style.ReadOnly = True Dim column_style As DataGridColumnStyle column_style.NullText = "" table_style.GridColumnStyles.Add(column_style) dgKharta.TableStyles.Add(table_style) It gives an error at column_style.NullText = "" <<Object reference not set to an instance of an object>> I tried with New Dim c…
Last reply by snarfblam, -
-
- 3 replies
- 1.1k views
I have an ASP.NET web app that communicates through named pipes to a windows service that I created. It works just fine on my workstation, but when I set it up on the server (install service, copy asp.net project and setup the virtual directory) it doesn't work anymore. I can see the web page just fine, but it doesn't communicate with my service and I cannot figure out why. I've been trying to figure this out for a while and it's driving me crazy. Any help is greatly, greatly, greatly appreciated. EDIT: workstation = IIS V5.1, Windows XP Pro SP2 server = IIS V6.0, Windows Server 2003 SP1
Last reply by bri189a, -
- 1 reply
- 974 views
I'm just trying to add a file programmatically to my project I'm totally lost on this one. If any help can be thrown my way it would be cool. I have a project that Im interacting with a exsisting program and i need to right to a file created in visual studio. To go one set further The file I will need to send to the other program is a csv file.
Last reply by mskeel,
-
Who's Online 0 Members, 0 Anonymous, 47 Guests (See full list)
- There are no registered users currently online