all groups > asp.net > august 2006 > threads for thursday august 31
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
How do I change the current page without loosing state information
Posted by Owen Richardson at 8/31/2006 7:54:02 PM
I have an asp.net website where i have a quick search facility built into my
master page. the search is a web control, with a drop down country box and a
list box full of cities.
When i select my country my citylist is refreshed ok. I want to be able to
then click on my city and jump to a s... more >>
Dynamically generating Javascript
Posted by Fernando Chilvarguer at 8/31/2006 6:31:44 PM
Here's my scenario:
I have one page, one control, and I want the control to generate a
javascript to the page based on parameters passed by the queryString.
ASPX Code:
....
<head>
<title>TItle</title>
<uc1:MyControl ID="myControl1" runat="server" />
<script type="text/javascrip... more >>
sending email from outlook
Posted by KatMagic at 8/31/2006 5:35:03 PM
The following code wrks fine when running from my pc (localhost); but errors
when I put the asp.net code up to the production web server. Theerror I get
is System.Runtime.InteropServices.COMException: COM Object ... is either not
valid or not registered.
What am I missing?
My code:
P... more >>
Will ClickOnce replace a lot of ASP.Net
Posted by Tina at 8/31/2006 5:28:34 PM
While ASP.Net is migrating toward more robust presentation by using things
like AJAX I am wondering if ClickOnce will errode a lot of ASP.Net presence
in Corporate Applications. I've been reading a lot about ClickOnce and it
seems compelling particularily since Vista will have the .Net framew... more >>
How to do screen scraping where the site requires a log in
Posted by Alan Silver at 8/31/2006 5:24:28 PM
Hello,
I would like to pull some information off a site that requires a log in.
I have a subscription to a premium content site, and I would like to be
able to do a few automatic requests instead of having to load the site
manually in a browser.
I have seen plenty articles that explain h... more >>
What's missing?
Posted by KatMagic at 8/31/2006 4:42:36 PM
I took the following code sample from an article about sending email via
asp.net. The error I get says: System.ComponentModel.Win32Exception: No
application is associated with the specified file for this operation
So what am I missing? This is the code:
Dim strURL as String =
"mailt... more >>
validation without a page refresh?
Posted by ABC at 8/31/2006 4:09:59 PM
Can someone point me in the right direction on how to create a web form
where I can perform validation without having to refresh the entire page?
For example, I think google uses it, where you can check for the
availability of an email address and the result is contained in that little
area... more >>
GridView only showing header
Posted by David at 8/31/2006 4:03:47 PM
I have a gridView that sometimes only shows the header and not the detail.
Does anyone know how this can happen?
Also, if I change the SelectCommand string using code do I need to use
Databind() on the SqlDatasource AND the GridView or neither? Thanks.
David
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
is PetShop 2.0 Anti pattern?
Posted by pratham at 8/31/2006 3:01:58 PM
Hi,
I was seeing code of PetShop 2.0 and find is quite .. differnet design
and architecture ..
too much of clutter in classes .. order class using and Iorder and
Iorder using an orderInfo and same for product, is this good design
...is it MS design principles?
I just learning the nacks o... more >>
How to set which browser to use in Debugging.
Posted by Phillip Vong at 8/31/2006 2:54:29 PM
I must be crazy or tired but I can not see where the setting is in VS2005
that says to use IE when I am debugging. It keeps launching Firefox.
Thanks!
Phil
... more >>
ASP:Button OnClientClick and Server Side Not working together
Posted by Opa at 8/31/2006 2:35:02 PM
Hi,
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click OK,
I expect the Server Side Postback OnClick event to fire, but it doe... more >>
Action Canceled Message!
Posted by e name at 8/31/2006 2:01:01 PM
Hello,
I am getting "Action Cancelled" message on an asp page which is running a
process that takes more then 25 minutes.
I have "Friendly error message" turned off on browser setting. And what
happens is this process processes a huge xml file
size of 4mb which is passed to the com object lo... more >>
Text Alignment In DataGrid?
Posted by Arpan at 8/31/2006 12:49:49 PM
Assume that a database table has the following 4 columns - ID, UserID,
Subject & Marks. I am retrieving the records existing in this DB table
& displaying them in a DataGrid like this:
<script runat="server">
Sub Page_Load(obj As Object, ea As EventArgs)
Dim dSet As DataSet
... more >>
treeview
Posted by lasalsatx NO[at]SPAM newsgroups.nospam at 8/31/2006 12:42:02 PM
What's the best way to create new nodes on a treeview 2.0 and save them to
an xml file?
Thanks,
Victor
... more >>
problem with validation
Posted by Jeff at 8/31/2006 12:16:37 PM
hey
asp.net 2.0
I have a textbox on my webpage. This textbox get validated by a
RegularExpressionValidator with this ValidationExpression: \d{3}
I want this textbox to accept numbers with up to 3 digits length, so I guess
\d{3}is wrong.
The users will enter their age into the textbox... more >>
display exception one label problem
Posted by c676228 at 8/31/2006 12:02:02 PM
Hi everyone,
I have a piece of code in sales.aspx.vb like this:
Protected WithEvents Message As System.Web.UI.WebControls.Label
Try
...
ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr + "&ChartType=" +
drpChartType.SelectedItem.Value.ToLower() + "&Print=" +
printVersion.ToString()
... more >>
dropdownlist on usercontrol populate host page label
Posted by bobbyc13 NO[at]SPAM gmail.com at 8/31/2006 11:41:52 AM
I am new to vb.net and am getting frustrated and cannot find a post on
the subject. I have a usercontrol (.ascx) with a dropdownlist. on the
selectedindexchanged event of the codebeside of the .ascx page, i would
like the newly selected value of the dropdown box to populate a label
on the host... more >>
Remote Debugging Issue
Posted by rlrcstr NO[at]SPAM newsgroups.nospam at 8/31/2006 11:35:10 AM
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running =
locally on my laptop, but the web app is running on a remote server. My =
laptop is not in the domain. I do have a domain account. I had no =
issue creating the web app on the remote server after authenticating =
with the ... more >>
number validation!
Posted by Jeff at 8/31/2006 11:16:55 AM
hey
asp.net 2.0
I have a textbox on my webpage. I want to validate that the user has entered
a number and not text. So I added a RegularExpressionValidator to the form,
and set its ControlToValidate to my textbox
I don't find any predefined validation expressions in the "Regular
Expre... more >>
Video Player in browser... how do I do?
Posted by ThunderMusic at 8/31/2006 11:07:37 AM
Hi,
I want to have a video player in my web app... How can I do that? must it be
an ActiveX? is there any other format I can use? I don't want to use Java if
possible... I heard it's possible tot do with flash. If it's true, is it
pretty easy to do? because I've done some little animations wi... more >>
Codebehind from another project
Posted by Kevin at 8/31/2006 10:57:58 AM
Hi!
It's possible load the code behind from another project in C# 1.1 ? I want
to compile my website in one dll per page, like does Asp.Net 2.0
Thanks
... more >>
One Subroutine after another
Posted by MRW at 8/31/2006 10:45:34 AM
Hello!
I'm running two subroutines one after another. The first subroutine
works and does something to a several session variables (just an
example), then those session variables are accessed by the second
subroutine.
I'm noticing however, that it looks like the second subroutine is being
... more >>
2.0 Features
Posted by vinay at 8/31/2006 10:36:02 AM
Where can i read .NET 2.0 new features list.
Any links..
Thnks
vinay... more >>
Aligning text with Spaces - List box
Posted by dinoo at 8/31/2006 10:25:01 AM
I would appreciate if some one could help me on this.
I have a list box where I would like to display Company Name and Number by
conctaening them.
For example -
Abc 1
Bii 1
While doing this I have to make sure that the values for Company Number are
alligned. The problem with the... more >>
post back on the parent window when pop-up is closed
Posted by ram_kri at 8/31/2006 10:19:48 AM
Hi,
In my ASP.NET application, I have a page on which I have a LinkButton
control and when clicked on it, it opens-up a pop-up window (which is an
ASP.NET page). The way it opens the pop-up is by registering a javascript
using "RegisterStartupScript" in the LinkButton - onClick event handler.
... more >>
Passing variables from ASPX page to ASCX control
Posted by Fernando Chilvarguer at 8/31/2006 9:59:55 AM
I'm sure this has come up before but I could not find any post on it.
How can I read a variable or property that has been set on a ASPX page from
inside a ASCX control.
ASPX code:
public partial class MyClass: System.Web.UI.Page
{
protected string _companyID;
public string Comp... more >>
SqlConnection Object in Application Variable OR Session Variable OR open/close
Posted by pratham at 8/31/2006 9:43:22 AM
Hi and regards
What is best method to have an connection to sql, iam using sqlserver
1. have an sqlconnection open when the application start event in
global.asax so that i dont have to open it in each method where i
require to open an connection
2. open an connection in seesion so that, ... more >>
Dynamically Created Controls
Posted by accyboy1981 at 8/31/2006 9:28:49 AM
Hi,
I have created a method that creates a link button dynamically and
places it within a place holder. The code I have creates the button,
but when it is clicked the button method is not fired. Below is the
code the creates the button:
LinkButton lb1 = new LinkButton();
lb1.ID =... more >>
Control page flow in ASP.Net 1.0 and 2.0
Posted by Coleen at 8/31/2006 9:20:10 AM
Hi All :-)
=20
I have a general question about controlling page follow and if there is =
a better way to do it than I am currently using in ASP.Net 1.0 - we are =
getting ready to move to 2.0, so if there's a better/easier way in 2.0 =
that's great.
=20
What I'm doing is creating a Se... more >>
Web Server IP
Posted by NO[at]SPAM at 8/31/2006 9:03:02 AM
Is there a simple way to obtain the IIS Server IP address (not the clients
using) with C# in ASP.NET? Our web servers are simple with only one IP. In
Classic ASP there was a one liner that would give it to you in a string
format........ more >>
Errors: Failed to load viewstate. & Validation of viewstate MAC failed.
Posted by sck10 at 8/31/2006 8:31:39 AM
Hello,
I have applications that produce the following error when they have been
open to long without activity. Is there any way to force a re-load of the
page or go to another page if the page has expired instead of getting the
error?
Thanks,
Failed to load viewstate. The control ... more >>
05 Web Site Publish question
Posted by Tom at 8/31/2006 8:25:02 AM
I did a Build --> Publish web site last night on my web app, It publish
correctly but it created 12 DLL's for it. Is there a way to only get 1 dll
for the entire web project like in 03 or a is there another way to publish
from my local box to the test web server?
what is the best way to pu... more >>
get content of text boxes dynamically created
Posted by tarscher NO[at]SPAM gmail.com at 8/31/2006 8:16:48 AM
Hi all,
I create a set of text-boxes based on user input:
for (int i = 0; i < Convert.ToInt16(keywordsDropDownList.Text);
i++)
{
myTextBox = new TextBox();
myTextBox.Columns = 5;
myTextBox.ID = "parameterTextBox"+Convert.ToInt16(i);
... more >>
Partial Classes and Control Declarations
Posted by GMartin at 8/31/2006 8:06:08 AM
I'm having a problem with being unable to access the Declarations for
Controls.
In a UserControl, what I'm trying to do is make certain controls
Public, so I can access them from the page that instantiates the
UserControl. That way, I don't have to write new properties on the
User Control to... more >>
OnRowDataBound question
Posted by Aconquija at 8/31/2006 7:57:02 AM
Hello,
I have run into an issue when using the OnRowDataBound event to apply
conditional formatting to a row. I need to check a specific column to see if
the value from the database is null. Without conditional formatting the page
just shows empty text in the table when the database column is... more >>
Logout Page issue
Posted by Lav KG at 8/31/2006 7:32:04 AM
Hi,
I want a user to be redirected to the Login page once he logs out of a
web portal.
Can anyone tell me how I need to go about it?
Thanks in advance
Lav KG
... more >>
Mail send problem
Posted by Barry at 8/31/2006 7:18:41 AM
Hi
I have a development system with Windows 2003 and MS Exchange. if i send a
e-mail message to my MS Exchange server it goes through using the class
smtp.send(??).
but when i do the same on my clients systems no error is thrown, but the
message does not go through.
My clients mail ser... more >>
Bug in Dino Esposito's HotGridView
Posted by slemen at 8/31/2006 7:05:01 AM
Dino Esposito's gridview checkall javascript checks all checkboxes on a
content page and not just the checkboxes on the gridview. Has anyone fixed
the bug?
Thank you,
Scott... more >>
XML Schema CommandTimeout
Posted by UnglueD at 8/31/2006 7:04:52 AM
Hello,
I have an application that grabs data through use of a strongly typed
XSD. However, in doing so, I am wondering if I have lost the ability
to set the CommandTimeout on the command object (since I do not have
the command object explicitly anymore).
I have a stored procedure that ... more >>
Cannot open my asp.net application in vs.net
Posted by abhishek at 8/31/2006 6:15:02 AM
Hello to all,
Please help me with the following issue :
I am using win2k xp professional.
IIS is very much installed.
registered asp.net by aspnet_regiis -i and restarted iis using iisreset
still getting the same error.
Visual studio cannot create or open the application because no web ser... more >>
send email with .net code
Posted by frank at 8/31/2006 5:46:01 AM
I need help please!
I write a method to send email and there is a button on a web page, click
the button will call the method. everything seems ok. but the email never be
sent.
--------------------
button click: SendMail("kang@vaughan.ca")
Public Function SendMail(ByVal toAddr As String)... more >>
Could not find a part of the path
Posted by gogaz NO[at]SPAM rediffmail.com at 8/31/2006 5:21:48 AM
Hi,
I know query in Subject line "Could not find a part of the path" has
been replied before lots of time, but mine is bit different.
My web server is windows 2003 R2 with both .net framework 1.1 and 2.0
installed on C:\.
Websites are saved on D:\wwwroot
I run the follow code for a website... more >>
Looping through CheckBoxList items doesn't pick up selected ones when items were disabled
Posted by Bart Van Hemelen at 8/31/2006 5:16:57 AM
The situation: I have a CheckBoxList cblTest, the items are disabled in
cblTest_DataBound in a foreach (ListItem oItem in cblTest.Items) loop.
I provide a link that calls a client-side JavaScript that enables the
items -- this works perfectly. However, when I then click a LinkButton
that does ... more >>
Flash object in HTML; shows in FF, not in IE
Posted by avanhalen NO[at]SPAM gmail.com at 8/31/2006 5:07:50 AM
To embed flash objects in my pages, I read them from a database.
A script file (Filedownload.aspx) reads it from the database, and
streams it to the browser.
Here are two example flash objects in a page. The first 1 (a simple
link to an existing swf-file on the webserver) is showing in each
b... more >>
Moving SqlDataSource to ObjectDataSource. need help
Posted by Raja at 8/31/2006 4:28:43 AM
Hi everybody
I am converting my pages to use ObjectDataSource instead of
SqlDataSource and want to keep the same user interface but have a small
problem.
In a page using SqlDataSource I have a textbox where user can input the
query (whole query in SQL). Then by clicking the search button I wa... more >>
Refresh page before redirecting.
Posted by Richard Clark at 8/31/2006 4:17:02 AM
I have a page with a MultiView control. The page finishes by running a report
(via a page redirect).
Because there is often a delay with ReportsServer, I want to display a
"final" view of "Report is loading please wait..." with a user-selectable
hyperlink to the report (in case of timeout).
... more >>
Unable to start debugging on the web server
Posted by thecameleon06 NO[at]SPAM hotmail.com at 8/31/2006 2:12:18 AM
I am working on an ASP.Net project which for some historico-technical
reasons isn't run locally but directly on the web server.
It works ok, but whereas I was at some point after struggling for
months able to debug on the web server, I can't anymore.
Here's the message :
"Error while tryi... more >>
GridView
Posted by moshi at 8/31/2006 1:55:01 AM
Hi everyone,
I have a gridView, and I give to one of it's boundColumns property of
"visible=false".
I don't want it to be shown in client side, but I want it's values to be
recognized in server side.
It is realy not shown in client side, but when I post-back, and asking about
that column va... more >>
System.Threading.ThreadAbortException and Response.Redirect
Posted by Henrik Stidsen at 8/31/2006 1:43:28 AM
I have implemented a log-system for exceptions in an ASP.NET
application using the Application_Error event in Global.asax.
ThreadAbortExceptions gets thrown everytime Response.Redirect is being
used with the second parameter set to true which, according to
Microsoft, is by design...
How do I ... more >>
BulletedList inside BulletedList
Posted by Stan SR at 8/31/2006 1:00:37 AM
Hi,
I need to add (dynamically) sub bulletedList to a bulletedList
Ex :
<ul>
<li>store A
<ul>
<li>Europe</li>
<li>Africa</li>
</ul>
</li>
<li>store B
<ul>
<li>Asia</li>
<li>Africa</li>
</ul>
</li>
</ul>
Here's what I wrote
... more >>
Unable to call COM dll's from application in ASP .NET 2.0 on IIS 6.0
Posted by adnaan.khalid NO[at]SPAM gmail.com at 8/31/2006 12:01:02 AM
Hi,
I have an web site application developed in ASP .NET 2.0. This
application consumes a COM dll (which needs to be registered in the
server- regsvr32 utility) for a functionality. The whole setup works
fine in the test system running Windows 2000 and IIS 5.0 with .NET
Framework 2.0 (Obvious e... more >>
Best practice : storing objects in session-variables ?
Posted by david NO[at]SPAM nospam.com at 8/31/2006 12:00:00 AM
I have a class with some business-logic and with every roundtrip, I need
an instance of this class, so I have to create it, every time again.
That doesn't seem very efficient. I thought it would be 'better' to store
an instance of this class in a session-variable, so it's available all the time... more >>
parameter from JScript to Asp.net
Posted by luke at 8/31/2006 12:00:00 AM
Hi there,
Can anyone tell me a way to pass parameters from java script to ASP.net
(VB.net)?
Thanks
... more >>
help plz!! Replace bit value with Image and bind it to repeater
Posted by sanju at 8/31/2006 12:00:00 AM
Hi,
I am struggling to replace a bit value 'True' or 'False' with a image
true.gif or false.gif and bind it to a repeater control.
I am getting values 'true' or 'false' depending on whether user is logged in
or not(with asp.net membership provider)
Getting true or false with this <%... more >>
Question about client-side
Posted by MPA at 8/31/2006 12:00:00 AM
Hi,
I am a newbee. All our applications so far were traditional client-server
database applications. We are considering now writing our main application
with Visual Studio .NET. Basically we want to be able to install each
version of our software on one or two machines without having to meddle... more >>
Using Access Database on Different Location for .NET 2.0
Posted by MA P at 8/31/2006 12:00:00 AM
Hi!
I am use to the include file on classic asp for maintaining MS Access
database location. On using Visual Web Developer Express, I can only use the
MS Access database if it is located on the same folder with the web app. Is
there a way that I can locate MS Access as my database but the loca... more >>
Add Controls to TreeView / TreeNode
Posted by Lukas Kurka at 8/31/2006 12:00:00 AM
Hi,
Is there a way how to add Controls into TreeNode?
Thank You
Lukas
... more >>
Image Viewer
Posted by Kuldeep at 8/31/2006 12:00:00 AM
Hello All,
Could you please give me some leads on building a Image Viewer in .NET or
how to use Windows Picture and Fax Viewer.
The actual purpose is to display the image in my web application on the fly.
Regards
Kuldeep
... more >>
|