microsoft.public.dotnet.framework.aspnet Archive - July 2003
Post a message to this list
Messages
Page: 12345678
What is the prefered way to insert HTML in a page. (5 replies)
microsoft.public.dotnet.framework.aspnet
In ASP you use % HtmlString % but in ASP.NET this can cause some problems if you are using page inheritance. What is the prefered way to insert HTML in a page? Thanks
Strange Behavior with ViewState (2 replies)
microsoft.public.dotnet.framework.aspnet
I have encountered a very strange behavior of the vsnet: ASP.net: I set the ViewState of the Document to false, just to see that Literal controls need the ViewState, so I turned it on again. Now nothing happend. The content of the Literal control did not reappear. Then I discovered that the call of the Page Load Method was removed from my aspx.cs file. Does anybody know why this would happen? Apog...
Data Grid Editing Validation (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have a datagrid and I also have Edit command by which I am editing the data present in the datagrid. I have bound my columns with the help of BoundColumn. While Update, I want to validate the contents in the textbox and want to use validators but since there is no text box control (as asp.net internally generates Text box by default) which I can specify in validator, how to validate? regards...
How to send a big amount of data from an aspx page to another (6 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I have webpage (sql.aspx) in asp.net with a big textbox. In this box, I generate SQL queries. Some of the queries can takes more than 2000 characters lenght. I want to send the content of the textbox (the query) in another webpage(result.aspx) textbox. I just don't know how. Can I use postmethod send ? can I use a public textbox object ? and how ? thank you, Simon
Mail help (urgent) (3 replies)
microsoft.public.dotnet.framework.aspnet
I want to send the rendered output of the page while sending e mail. Is there anyway to do this...?
difference bet. request.querystring and Request.Params (5 replies)
microsoft.public.dotnet.framework.aspnet
whats the difference between... Request.Params("ProductID") and request.querystring("produceid")
ASP.Net form requires Two textboxes to get enter key to invoke button click (3 replies)
microsoft.public.dotnet.framework.aspnet
I am really missing something. I want the enter key to invoke a button click on a form after entering text in a textbox. But if I only have one textbox the click event will not fire, but If I put two textboxes on the form the click event will fire I have a colleague look at this, and he can't see it either
DataGrid Pagination (5 replies)
microsoft.public.dotnet.framework.aspnet
I am trying to get pagination working on a datagrid. Can anyone point me to a resource for help on this? I'm not sure if custom paging is the best option or not.
data from oledbdatreader can't paged by datagrid (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I am retrive record from an Access database and want them displayed page by page, I used oledbdatareader to retrive and assigned the datasource of datagrid control to this reader. but the data can't be paged when using AllowPaging true, and it displayed a page using AllowCustomPaging true,but still can't be paged. Is that if i want to page the records, I can't use oledbdatareader as datasource...
PushButton v. LinkButton in a DataGrid (3 replies)
microsoft.public.dotnet.framework.aspnet
I have two buttons in a DataGrid. If I leave the ButtonType "LinkButton", the EditCommand and DeleteCommand events fire fine. If I change th ButtonType "PushButton", the events do not fire. Does this buttonType property change how the events fire? Suggestions? I have the ItemCommand event wired up to, but that only fires for the LinkButton as well. A few code samples below ... Thanks! Mark *** Cod...
Object reference not set to an instance of an object. (3 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I have a user control that contains a datalist and within that a asp label, as follows: asp:DataList ID "dlHomeDetail Starters" Runat "server" CellPadding "1" CellSpacing "1" Width "100%" RepeatDirection "Vertical" RepeatColumns "1" HeaderTemplate tr class mainhead vAlign center td class away colSpan 5 asp:Label ID "lblGroupName" Runat "server" /asp:Label /td /tr tr class bg1 align middle I...
Set bit depth of an image (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi. I haven't been able to get an answer in the vb newsgroup on the topic, so I'll try here. I'm converting .tif images into other image formats like ..jpeg and .gif and I need to know how I can control the bit depth of these images. The System.Drawing.Image object's default bit depth when saving images seems to be 24 for .jpeg and 8 for .gif. Thanks, Shawn
SmtpServer Property (3 replies)
microsoft.public.dotnet.framework.aspnet
Greetings, I am using Web.Mail.Mailmessage along with Web.Mail.SmtpMail.Send(MailMessage) method Now, this sends Email using the Default SMTP server of my REMOTE HOST. Sadly I have found that many ISP's block mail sent through this method. I do have an SMTP server included in the Remote Hosting package, but that SmtpServer requires authentication of outgoing mail. If I set the SmtpServer property ...
List Box and different color (2 replies)
microsoft.public.dotnet.framework.aspnet
There is a way to give different color to listitems of a ListBox ?
Is this an MS bug..? (5 replies)
microsoft.public.dotnet.framework.aspnet
I have a ASP.Net TextBox in singleline mode, maxlength prevents the user from entering more than maxlength either by not allowing you to input more chars or removing text to the end beginning at max length... If I change mode to multiline I'm able to put as much text as I like regardless of the maxlength I specify... Is this a bug...?
Invalid ViewState and Machine Keys (3 replies)
microsoft.public.dotnet.framework.aspnet
Ever since we moved our asp.net website to two load balanced servers we have been getting every once in a while invalid or corrupted viewstate errors. I've looked around on the internet and the only thing I could find was an article that told us to look at our machine.config file on both servers to see if the machinekeys matched. We did and found out that they are set to "autogenerate": machineKey...
Nested Repeaters or DataGrids and "reporting" (2 replies)
microsoft.public.dotnet.framework.aspnet
Hello, I originally used nested repeaters to simply spit out for each customer a list of items they've purchased, then at the bottom I want a total cost. With a dataset and a releation, I've got everything cept the total working. Seems like to me, that once any element gets embedded, I try to bind an event to it, and it gets a null reference. Say my var in the dataset being bound to the child repe...
accessing page variable from user control code behind (2 replies)
microsoft.public.dotnet.framework.aspnet
Hi all, I have a aspx page that inherits from a cs class which is common for all pages in my application. In that cs file, I define some veriable. IE: the webBasePage.cs: namespace MyAPP{ public class myWebBase : System.Web.UI.Page { public String myVar "I'm there"; } } Then I have the page: namespace myAPP{ public class pageTemplate : myWebBase { ....... } } Now I have a user control I add dynami...
Refresh a parent window? (3 replies)
microsoft.public.dotnet.framework.aspnet
I have a frameset. left and main. Inside the main frame I have a IFRAME. I need to refresh the main frame when I post a form inside the IFRAME. I am trying the code below with no luck?? Private Sub addMachine Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addMachine.Click Dim sScript As New System.Text.StringBuilder sScript.Append(" SCRIPT language ""javascript"" " & vbC...
Unexplained Instance Error (7 replies)
microsoft.public.dotnet.framework.aspnet
I am getting the following error: " Object reference not set to an instance of an object." The strange thing is that I AM creating a new instance of the object in the PageLoad event Iin the code behind) just prior to using it's properties, and in fact, the app ran perfectly until only recently when I installed Project Server on the web server, which should have had no impact. Is there a security s...
Loop through the listbox to read selected items (3 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I am trying to loop through the listbox and read the selected items from the list, within a CLICK event on an aspx page. The following is what I have tried. It loops through the listbox, but none of the items' SELECTED property is TRUE while I have selected a few items. What am I missing? Dim strFunds As String Dim i As Integer Dim varItem As ListItem ******Attempt 1****** For Each varItem In ...
Using Application() variables in non-web classes (4 replies)
microsoft.public.dotnet.framework.aspnet
Hi All, I saved a variable to the Application() collection and I can access this from the aspx.vb code. However, I want to be able to access this variable from a simple class. I've seen where I can have the class inherit from one of the web classes, but I don't want to do that just for a simple class that needs one variable. Currently, I'm making a public property in the class and setting it durin...
Shell commands in ASP.NET? (4 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I want to execute a shell command and retrieve the output of it, is there a method to do it? All i have found is how to start a process (cmd /C), but i cannot retrieve the result of the command execution. For example, it would be ideal if there would be a method like: string result ExecuteShellCommand("dir *.txt"); thnx in advance...
The viewstate is invalid for this page and might be corrupted problem (16 replies)
microsoft.public.dotnet.framework.aspnet
Hi all: I developed a web site, it passed various testing internally. When I put this site in production, I receive some error reports from this site saying "the viewstate is invalid for this page and might be corrupted". I am wandering what kind of client side problem may cause this error? Is it possible that user uses a browser which has local cache turned on all the time? Thanks for any suggest...
newbie asp/ado.net question. (4 replies)
microsoft.public.dotnet.framework.aspnet
Hi, I am very new to .net but not new to asp or ado. I am just wondering the best way to do the following... I have a database which stores a list of messages/threads (like google newsgroups threads). I want to display these on a webpage where each message is a hyperlink, and each message has a treeview drill down mechanism where you can see replies for a particular message (just like in outlook e...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com