| How to cast datagrid link button/column (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have the first column of a datagrid defined as a "SELECT" hyperlink, that displays the a certain value the Text. When working with datagrid events, I'm having difficulty retrieving the text of this cell using: stringVar CType( e.Item.Cells(0).Controls(0), HyperLink ).Text I get the error: System.InvalidCastException: Specified cast is not valid Setting a break point, I see the object returned fr... |
|
| Access an image created in memory? (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, I'm trying this chart software ChartDirector . It creates a chart (PNG) in memory as a bitstream and I want to display it on my page.How do I access something like this? Its created in the same code behind as the rest of the page.I'm used to having controls with "run at server" but this has no control. Thanks Mike mpeloso@ampsoft.com |
|
| VS Designer removes code from InitialComponent() (7 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is there any fix to the ugly bug causing removal of the code in InitialComponent()? This problem is serious enough to be addressed by Microsoft ASP. If the present solution is not to use the Designer in VS, the next fix could be ... Is it EDLINE editor? Bogdan J |
|
| Unable to access session variables from business object (6 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am having trouble accessing session variables from within a business object created by the page class. The session variable is available in the page class. I have tried the two lines from the example in MSDN article "A Dot Net Guruer of Context" http://msdn.microsoft.com/library/default.asp?url /library/en us/dnbda/html/ bdadotnetarchtopics.asp, but when I look at the context.session in the debugger it ... |
|
| Viewstate (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have set the view state flag to false for both the page and the control for a test form that I have. I enter some data in the fields and repost the page back to itself. I am curious why the data that I have enetred is still there. I can see the "hidden field" still in the page source code and it appears to have some data in it. Does anyone have any idea how this is suppose to work and/or have I ... |
|
| Sessions in Web Services (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| If I have a function in my web service: [WebMethod (EnableSession true)] public int incSession() { if (Session["Eye"] null) Session["Eye"] 0; Session["Eye"] (int) Session["Eye"] 1; return (int)Session["Eye"]; } I call this function from my client after creating an object for the web service via 'add web reference' and then creating the object WebService.Service1 service new WebService.Service1(); ... |
|
| Precompiling aspx pages (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Does anyone know how to precompile aspx pages so that the first visitor to a page doesn't have to wait for the compilation. I would like to do it to all the pages on my site. Any help or pointers to more info will be appreciated. Jason |
|
| Desperate! Adding a confirmation pop-up window for datagrid delete (7 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am using VB.NET ASP.NET ADO.NET SQL 2000 I have a fairly functional asp.net site in development and have almost everything figured out except pop up windows. Is there an embedded asp webcontrol for pop up menus? Specifically I want to tie a pop up window with the datagrid control's delete button for confirmation. Any help is greatly appreciated! Also, using the regular expression validator, does... |
|
| Cookieless Forms Authentication? (6 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, Does anyone know if it is possible to use Forms Authentication without using cookies? perhaps using a similar method to the cookie less session handling.. |
|
| Can't I use a For Each in WebForm ? (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I'm trying to use a loop to set or get properties and values from any textbox in my webform. But it doesn't seems to work fine. Haven't all you tested this ? The code is For Each TxtObj In Me.Controls TxtObj.Text "Value" Next My code is rather simple but I don't understand this error : Specified cast is not valid Thanks in advantage. |
|
| client side validator (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello all, Does anybody know how to set up a client side control to validate the length of a string in a textbox as well as make sure all chr's are numeric? Thanks in advance. Patrick Laferriere |
|
| Calendar Form (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am trying to put a hyper link on page that opens another page with a calendar. The user would select a Date in the Calendar, which populates the text box in the parent page. How can I use the HyperLink or LinkButton to do date? How Can I have the Calendar Form populates the text box in the Parent Form? Any ideas, or examples would be appreciated? Amjad |
|
| c# and html (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have the following html code. The section in between the % .... % code is suppose to make it bigger but it wont when i look at a browser. It's a simple code so why isnt it working? can anyone tell me why? %@ Page Language "C#"% html head link rel "stylesheet"href "intro.css" /head body center form action "intro2.aspx" method "post" h3 Name: input id "Name" type text Category: select id "Category... |
|
| InnerTEXT of UserControl (4 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I'd like to create a user control to work as a container for HTML I am going to use in e mail that is sent using SMTPMail. I'd like to use LoadControl to load the usercontrol into memory, set a few properties on the user control, and then access a property that gives me the HTML of the rendered usercontrol without having the control sent into the HTML text stream. Anyone know how to do this? TIA |
|
| session variable and serialization (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is this possible... I'm trying to create a class, say MyIdentity, that inherits from the GenericIdentity class. Adding some application specific identity information. When the user hits the app and authenticates, I want to profile then and create and initialize this new MyIdentity. I also want to store this new MyIdentity object in the user's session, so I won't need to go through the profiling pr... |
|
| Extend DropDownList (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is there a way to extend the drop down list control, in ASP.Net, to allow the users the type over the list? Basically, I want the dropdownlist control to work like VB.Net's combo box. Thanks for any info? Cesar |
|
| User control gives error when dropdownlist is added (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all, I have a user control which now serves to host a java script menu inside a single column table. I place this user control on each page so I have access to the menu throughout my app and it works fine by itself. Now I added a row below inside this table and place a dropdownlist in the newly created cell. However, when I try to run it I get an error saying the dropdownlist needs to be within... |
|
| Is a dataset necessary? (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi all, I have a stored procedure in SQL Server 2000. It validates a login against a user table. It out puts a return value indicating success or failure. My code is below... void Submit Click(Object sender, EventArgs e) { // This event will verify the user's credentials String ConnectionString "server xxxxxxxxxxxxxx; database xxxxxx; uid xxxxxxxxxx; pwd xxxxxxxxxx;"; SqlConnection sqlConn new Sql... |
|
| DataList - WebControls losing IDs... (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello, that's the second time the problem occurs : all my controls in "Item Template", "Selected Item Template" and "Edit item Template" have lost theirs ID. All the others properties are still here. That's not the biggest form on the earth but renaming 20 controls is not what I'm calling pleasure. And, of course, all my findControl calls are not usable. Is there something that I must NOT do ? Som... |
|
| Server-control validation does not work in Netscape (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| It appears to me that validators are completely ignored, both client and server side, when a Netscape browser is used. So far I have tried Netscape 6.2 and 4.7. Microsoft touts the fact that server side validation is always done in .net, so why doesn't it work in this case? Validation appears to be completely skipped, even if I explicitly call Page.Validate(), whenever a Netscape browser is being ... |
|
| Export a query to XLS in web form (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Guys, I have a few queries that I would just like to export to users as a spreadsheet. Here is the scenario. User views a page that contains the data that they want, then the user clicks a button labeled export to spreadsheet. User is prompted for "save" or "open". I have considered doing some Excel automation and just creating the spreadsheet row by row, but I thought that there would likely be s... |
|
| Controls no longer bubble up events for debugging (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hello all, strange problem here. If I add new controls to my form I can step through the underlying routines in debug mode but when trying to step through the forms existing controls events I get nothing(they did work earlier today). The debugger doesn't stop or highlight any code like It does when I set a breakpoint on a newly added controls .textchanged event. I can start the app using the f11 k... |
|
| How to display the result of a function in a cell in the datagrid? (5 replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have some data coming into a datagrid on one of my forms. Pretty straight forward using bound columns. However, one of the cells needs to be filled with the result of a function. This function takes a piece of data coming out of the database, performs a few calculations and spits out a number. I need to display that number in one of the cells. How is this accomplished? Thanks in advance! |
|
| Passing a NULL date value to database in C#/ASP.Net (3 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Anyone have suggestions on how to define a DateTime data type as null or alternatively pass a null value to a stored proc expecting a datetime data type? I have tried [BEGIN C#] string strDate DateTime dtDate dtDate null (Doesn't work) //AND dtDate "" (Doesn't work) //WITH objCommand.Parameters.Add("@Completed Date", dtDate); strDate "" (Doesn't work) //AND strDate null (Doesn't work) //WITH objCo... |
|
| Javascript (2 replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is it possible to launch a Jscript function during the flow of a c# proc? example: if (condition) { //here launch jscript function other code } I've to use code written some time ago....and i've no time to rewrite it. Oh, another little question: is it possible to write aspnet code to reproduce the simple jscript "alert" ? May be silly questions...not for me ; ) |
|