| Databinding drop-down-list component to datareader? (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi I have a drop down list and I want to populate it from a datareader. I have this code Connection.Open(); dtrHospitalList Cmd HospitalList.ExecuteReader(); lstHospital.DataSource dtrHospitalList; lstHospital.DataBind(); There are two problems with this: first I would need to specify which of the fields from the data reader goes in to the text of the drop down list (in this case this field is 'Ho... |
|
| Formatting strings (4 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I need to format the string "2323.2323" like "2323.23". But the expression is like this string strTotal Convert.ToString(Convert.ToDouble(somestring) Convert.ToDouble(somestring)). When I convert to string finally after adding Doubles, IS there any to format at that point? THanks Palpy |
|
| Raising Event in Nested Datagrids (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have a Master/Detail set of datagrids that dynamically loads the detail datagrid in the ItemDataBound method of the master datagrid. I would like to edit the information in the detail datagrid and have added an EditCommandColumn for this on the detail datagrid. I have also added attributes to the detail datagrid for the "onEditCommand", "onUpdateCommand" and "onCancelCommand" with relavant code ... |
|
| Session Timeout.. (6 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet |
| When the session times out, I would like to navigate to the login page. Currently when the session times out, the displayed screen remains visible on the screen however when the user clicks on the screen will take to the login page. How to do that? Benjamin |
|
| Object Browser Description (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all, I wonder if anyone can help, I have been tearing my hair out, the little i have over the last couple of days and am trying to have a description appear in the Object browser for any function I write. I have tried several possibilities, my final which i think is where im heading in the right direction is using the attributes and specifically the Description attribute. However I am still una... |
|
| Repeating list of checkboxes (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have a repeater bound to a datatable. For each item in the data table, I need a set of known checkboxes to show up. This is easy to do, but I am not sure how to get the results of the checkboxes on submission. I have something like this: May 1 [ ] Item1 [ ] Item2 [ ] Item3 [ ] Item4 [ ] Item5 May 2 [ ] Item1 [ ] Item2 [ ] Item3 [ ] Item4 [ ] Item5 May 3 [ ] Item1 [ ] Item2 [ ] Item3 [ ] Item4 [ ... |
|
| Help with search query (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Two questions related to SQL searches (ideally everything will be in a stored procedure): I have an ASP.NET checkboxlist on a search page (this is a search of properties for sale). The checkboxlist is responsible for displaying the available amenities in a home (air conditioning, patio, garage, etc.). I have a table tblAmenities with columns amenity id and amenity name. Another table tblProperties... |
|
| A link to code sample (4 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I want to publish some pdf file in my asp.net application but I don't wnat to publish them directly. I would like to use an intermidiate aspx file like http://domain.com/GetFile.aspx?ID 123 and GetFile.aspx returns the file byte stream. The GetFile.aspx must be very optimised and fast, that is why I don't want to develop it myself. Could anyone refer me a link shows me a relible high performan... |
|
| Problems accessing a password protect database (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am using VB DotNet Std Edition and am writing a web application that needs to read and write to an password protected database. The mdb files reside in a folder (fpdb) under the localhost (c:\inetpub\wwroot) Within the IDE I can view the data using the server explorer and I use that same oledb connection for the web form. I have tried accessing a non password protected db in the same folder usin... |
|
| Problem loading asp.net usercontrols dynamically with hyperlinks and images (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, Here's a strange one: I have built a single page model for a website, that uses 3 panel controls which load usercontrols dynamically, based on the querystring PageMode parameter that you pass. For instance, if you pass PageMode home, it will show the home page view, and so on. On the left panel I display a menu usercontrol that is a table consisting of a list of hyperlinks (a href, not link bu... |
|
| Global array of active sessions? (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Can anyone give me an example of how to use a global array to keep track of all active sessions (their sessionid, logontime, etc)? Best regards, Christina |
|
| Asp.net sp1 and ssl and postback (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| we have a simple asp.net form that works fine when using normal http:// but when we use ssl https:// the form doesnt submit/postback. Anyone know how to resolve this? We have the aspnet client folder and the directory has all of the proper perms. |
|
| RegisterStartupScript Fails in Modal Dialog (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have a frameset aspx page that enables users to upload photos. One frame/page shows a thumbnail list of prevously uploaded images, and the other frame/page includes the controls that enable selecting and uploading additional photos. After uploading a file, the list of thumbnail images needs to get refreshed to show the newly uploaded picture. This is accomplished by using the following code: str... |
|
| Clickable image (4 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I've put an image on my website. Now I want the user to be able to click on certain parts of the image. How can I do that ? Thx |
|
| Which Object event is the right one... ? (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| While writing client side scripts for certain events I can see the option to call the event for FORM object or DOCUMENT object. There are some common events exist in both the objects. Which is the right one to use? Benjamin |
|
| Problem Opening Asp Project. (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am trying to open a ASP.Net project which was not created on my machine. I have copied the project to the inetpub folder. When I try to open from the project file it says I need to open with the URL. WHen I attempt to open the project by the url i do not see it listed. I am using http://localhost. I can broswe IIS and see the project but cannot open in VS.Net. Is this a security issue? |
|
| HttpRequest Stream (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Does anyone know how to get the whole request stream when data is posted to a web page? I need the HTTP Headers as well in the InputStream when receiving the data into my web page. I know I can get the HTTP headers from the collection but I would like to get the stream as a single item. Thanks, Dot Net Guru |
|
| Setting Focus When Page Opens (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| How can I have the focus on a specific textbox when a page opens? In the old ASP pages I could use an onload directive in the Body element but that does not work on my aspx pages? Wayne |
|
| Printing a web-page (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, on my webpage I have a treeview and a table (or datagrid) holding the records. Now I want to print my page but without the treeview. Can anyone help me? Thx |
|
| Programmatically flush iis cache (4 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is there a way to flush the cache from a web service? basically i want to force a cache flush if there was an underlying database change so that subsequent calls would get new data... |
|
| How to view #temp tables in vs.net (stored procedures) (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| When you step into a stored procedure using vs.net, you get all the debug variables, except temp tables (like INSERT INTO #list (id) SELECT id FROM members WHERE...). Is it possible to view the temp tables? Max |
|
| How to capture an XML HTTP Post in ASP.NET? (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I want to create a web page that a user can post an xml document to. The page will then call a webservice and which returns an xml response which the page should respond to the post with. The webservice is done. I am stuck trying to figure out how to write the page. Thanks. Stacey |
|
| reference error when session expires (2 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet |
| i get a reference error to CssDropDown object when the session expires Why is object reference on "CssDropDown" not being found ? Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Line for Error: .... cssNewStyle CssDropDown.SelectedItem.value ... html code is: asp:DropDownList id "CssDropDown" enableviewstate "true" runat "server" /asp:... |
|
| two browser windows - same session variable? (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| If you have a parent window that opens a child window using JavaScript, is the Session state between the two windows separate or shared? Thanks in advance. Mark |
|
| Include files (3 replies, VIP) |
| microsoft.public.dotnet.framework.aspnet |
| We have an existing pile of include files (20 ) that are used on SEVERAL applications. They are all static HTML. User Controls would work well if it they were for only one application, but they're used across several applications some of which are NOT .NET applications. Can I still use include files in a .NET application? Thanks in advance. Mark |
|