all groups > asp.net > february 2005 > threads for sunday february 27
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
How do u wire up events to controls in a custom template control???
Posted by Chris Newby at 2/27/2005 11:48:53 PM
I have a very basic custom control that exposes an ITemplate property and
everything seems pretty straight forward so far.
But, when I put other server controls intro the template section of my
custom control in the ASPX page:
<cc1:MyCustomControl id=MyCustomControl1 runat="server">
<MyTe... more >>
Client IP is always 127.0.0.1
Posted by Mark Shehan at 2/27/2005 11:27:39 PM
How do i get the client ip address.
I have tried Request.UserHostName and Request.UserHostAddress and
ServerVariables["REMOTE_ADDR"] all of which return 127.0.0.1
This happens on both my development pc and the win2k3 live server. The
requests on the live server does go through ISA but that... more >>
Displaying contents of Datagrid on another page
Posted by Al Wilkerson at 2/27/2005 11:10:11 PM
Hi,
Does anyone know how to display the contents of a DataGrid on another
aspx page.
I have a aspx page that when the user clicks on a link button the database
is queried and I want the results to appear on the another aspx page that
has a DataGrid on it.
Thanks,
--
Al
... more >>
popup calendar when using Masterpage
Posted by Ali at 2/27/2005 11:05:03 PM
i am using visual studio 2005 and I am trying to create a popup calender so
when a user click on a image on the main form, a calender will then popup,
the user will select a date and the date will then be passed back to the main
form and populate a textbox. it works fine. but when i used mast... more >>
Application Pools
Posted by Gordon Smith at 2/27/2005 11:04:09 PM
I plan to install multiple Web applications installed on a single Web
server. Should I create each Web site in its own Application pool?
I'd appreciate any recommendations, guidelines or links to articles.
... more >>
Debugging with Command window in Immed mode
Posted by Chris Lane at 2/27/2005 9:35:02 PM
Hi,
Stupid question here but I get the following error when debugging:
'debug.writeline' is not declared or the module containing it is not loaded
in the debugging session.
I can however use ? to get a variables values or execute a command.
Are we ale to use debug.writeline with asp.net a... more >>
Run code for every Page_Load?
Posted by Olav Tollefsen at 2/27/2005 8:49:46 PM
I would like some common code to be executed before Page_Load is called for
every Web Form page. The code should do some logging.
Where can I put common code like this? I would like to avoid having to
manually insert the code on every page in my application.
Olav
... more >>
Running both in the IDE and on a remote host
Posted by Jeff at 2/27/2005 8:03:36 PM
I have an ASP.NET web page accessing a SQL database. I've used VS to build
the app and stored it in the eNPTest02 directory of my localhost on my
development machine. The database is on the web. I've found a way that
works on the web, and I'm trying to get it to also work in debug mode in the
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Update_Customer not working
Posted by Sparky Arbuckle at 2/27/2005 7:52:07 PM
My TRY CATCH shows Error when I run this. Can anyone see what's wrong
with this? Each textbox has OnTextChanged="ConChanged". This changed
boolean to TRUE and then Updates the customer.
Sub Update_Customer()
Dim strText as string
Dim strSQL as string = "UPDATE tblCustomers SET " &... more >>
TWO REPEATERS IN ONE PAGE??????
Posted by news.microsoft.com at 2/27/2005 7:29:44 PM
This is working perfectly.
Sub Page_Load(sender As Object, e As EventArgs)
Dim cnn As SqlConnection = New
SqlConnection("server=lwda329.servidoresdns.net;database=qaf500;user=qaf500;
password=gruart")
Dim cmd As SqlDataAdapter = New SqlDataAdapter("SELECT * from
V... more >>
passing parameter back to parent window.
Posted by Asha at 2/27/2005 6:09:02 PM
hello, can i pass a value back to a parent window from a child window after
it closes? if yes, how can that be done? thanks a million in advance for the
reply.... more >>
Form POST
Posted by Ben at 2/27/2005 5:58:59 PM
Hi
I need to design a form that I can programmatically post using this code
from a VB .NET Windows Application:
Dim web As New System.Net.WebClient()
web.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes("data=MYDATA"... more >>
Passing a Variable
Posted by Jim via DotNetMonster.com at 2/27/2005 5:24:33 PM
Hi,
I need to pass the value of a variable from one function to another but I
don't seem to get the value. I declare the variable outside all functions.
What I'm trying to do is that when the button is clicked, check to see if
the record exists using input from a form. I want to pass that vari... more >>
How to protect files in a hosted environment?
Posted by Ray Stevens at 2/27/2005 4:35:01 PM
How do you protect files (such as .PDF) in a hosted (Interland) environment
when you have no access to IIS?
... more >>
localhost Accessing Remote SQL Database
Posted by Jeff at 2/27/2005 3:58:28 PM
Hi -
I have an ASP.NET web page accessing a SQL database. It works fine on the
web, and I'm trying to get it to also work in debug mode in the IDE. The
"on the web" page and my SQL database are hosted by a third party (on
separate servers).
Since debug mode opens IE and loads my page from... more >>
Data Not Writing to Database
Posted by Sparky Arbuckle at 2/27/2005 3:21:37 PM
I'm trying to add customers to the database with the following
Add_Customer sub routine. The problem is that it is not writing the
information to the database. Any suggestions as to how I can fix this
problem? I made sure to check the spelling of all the textboxes and
database fields. This is fr... more >>
dropdownlist.selectedItem not working from in a datalist
Posted by sling blade at 2/27/2005 1:38:02 PM
Hi,
I have a dropdownlist in my DataList control and I am trying to set the
SelectedItem property of the dropdownlist so when the datalist displays
the user will see the text in the dropdownlist set to a predetermined
value.
I can set the SelectedItem property easy enough and get the
dropd... more >>
Passing E-mail Address in a Cookie
Posted by Sparky Arbuckle at 2/27/2005 12:48:32 PM
How would I go about passing an e-mail address string to another aspx
page via a cookie? I want to add this feature to a login page. The
e-mail address is coming from tbEmail.text.
... more >>
URGENT: Application_Start - doesn't fire
Posted by Gordon Smith at 2/27/2005 11:41:35 AM
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows
Server 2003 production server. 3 of them work fine. I just installed the 4th
one and it's Application_Start event is not firing.
I have double-checked everything (and rechecked) and I haven't found
anything that would e... more >>
Can't Figure Out What is Wrong
Posted by Wayne Wengert at 2/27/2005 10:59:12 AM
I am getting the following error whe I run this upload process. Code is
below - error points to the
lblInfo.Text = "Failed uploading file"
line? The upload runs fine and the file is properly uploaded to the
"scores" directory? What is it complaining about?
Exception Details: System.NullR... more >>
Stupid Panel Question
Posted by Tina at 2/27/2005 10:57:21 AM
When using a Panel how can I get rid of "Panel"?
Thanks,
T
... more >>
Is Paging possible with Treeview?
Posted by Sandy at 2/27/2005 10:52:46 AM
Is there some way to incorporate paging with a treeview, or are there some
new controls out there that would be capable of this sort of thing?
Can a treeview be put in a datagrid? If so, how?
--
Sandy... more >>
How to hiddenly pass parameters to a web user control ?
Posted by craigkenisston NO[at]SPAM hotmail.com at 2/27/2005 10:11:11 AM
Hi,
I have a web user control that displays "items" by user, by category,
newest "items", etc. It works very well and does what I want, this is
done with parameters in the page that holds the control.
However, now I want to put this web control on the main page and I
don't want the main pag... more >>
Unable to find script library '/aspnet_client...
Posted by et at 2/27/2005 9:44:54 AM
The error:
Unable to find script library
'/aspnet_client/system_web/1_1_4322/WebUIValidation.js.' Try placing the
file manually, or reinstall by running aspnet_regiis -c'
I started getting this error as soon as I started using the Validation
controls, such as the RequiredFieldValidator an... more >>
Link dropdown to Access database
Posted by Christian Ista at 2/27/2005 9:34:04 AM
Hello,
In an Access database, I have 2 fields "id" and "category", the table name
is "category".
In the Page_Load, I have this :
DropDownList1.DataSource = Common.getCategory();
DropDownList1.DataBind();
In the getCategory, I have this :
public static DataSet getCategory()
{
... more >>
Web Control On... Event
Posted by C CORDON at 2/27/2005 8:27:11 AM
I wonder if those events that controls show on HTML code On... can be bound
to a Javascript, if not...what use is there to them. If they can call
JavaScripts how is this done because I am gettong this error when adding
OnCheckedChanged="get()" to a checkbox.
'get' is not a member of 'ASP.An... more >>
Depolyemnt project
Posted by bs008 at 2/27/2005 7:48:35 AM
Hi,
I need to make deployemnt project for my ASP.NET in Visual Studio .NET.
But I do not know
how I can set custom DNS name for my ASP.NET site e.g. my site should
run on domain [url]www.myProjectName.edu[/url] ?
my site uses database in SQL Server 2000, so I need to also deploy
dat... more >>
format first name from -john- to -John- ?
Posted by RN at 2/27/2005 2:34:50 AM
I'm trying to fix user inputed names to proper case. People love to enter
their names in all lower case or all upper, etc. I remember reading
somewhere that there is an easy way in the framework to convert name fields,
first and last, to proper case. I forgot the name of that case syntax, but... more >>
|