all groups > asp.net > june 2005 > threads for wednesday june 15
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
CheckBox vs CheckBoxList
Posted by Patrick Olurotimi Ige at 6/15/2005 11:49:10 PM
With CheckBoxes i know i can get TRUE or FALSE by using
ChekBox1.Checked.
But i want to use CheckBoxList with DataBinding can i get TRUE or FALSE
? Does it have a checked property?
Can i use in a DataList?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
ItemCreated FindControl problem c#
Posted by tparks69 at 6/15/2005 10:28:07 PM
All I need to do is set the border property of an image control to border=0.
I want to do this at runtime for the first image on the page in a datalist.
In the ItemCreated event I'm trying to use FindControl to set a reference to
the img control so I can change the attribute. But when I run... more >>
How to Resize an Image in ASP.NET?
Posted by Shapper at 6/15/2005 9:26:29 PM
Hello,
In each record of an ASP.Net Repeater I have an image which original
size is 200px width and with a height which can vary from record to
record.
How can I resize each image to 50px and keep its proportion?
Does anyone know how to do this?
Thank You,
Miguel
... more >>
IIS messed up-Please help
Posted by Ray5531 at 6/15/2005 9:01:09 PM
I installed ASP.NET version 2.0 and then unistall it and now my IIS is
messed up and my 1.1 ASP.NET application dosen't work.
When I go to ASP.NET tab of the IIS for an application it lists no framework
and when I try to run my asp.net application CLR debugger pops in and tries
to debug som... more >>
Still not clear about global functions
Posted by Alan Silver at 6/15/2005 7:44:33 PM
Hello,
I have spent ages trawling through Google, looking for information about
global functions in ASP.NET and I'm still not clear about the best way
to go about this (or not).
I am writing a site that will be for members only. They will have to log
in to gain access to any of the pages... more >>
binding data with textboxes
Posted by alpoor at 6/15/2005 7:41:30 PM
I have lots of textboxes on my webform. I need to bind them with fields
from table. I am not sure how to bind with textboxes. I have seen so many
samples for dropdown boxes and datagrid binding, but not with textboxes
Is there any easy of doing it
Any ideas
Thanks
... more >>
Satellite assembly resources won't load if identity impersonate=true
Posted by Steven Berkovitz at 6/15/2005 5:18:10 PM
Hi there,
I am having a very odd problem with localization. I have a web app with =
2 embedded resources files - 1 neutral .resx file and 1 for fr-CA. With =
<identity impersonate=3D"true" /> the resources from the french assembly =
do not load and it defaults to the neutral resources. If I... more >>
setup.
Posted by Luis Esteban Valencia at 6/15/2005 5:05:09 PM
I want for example
http://a.domain.com
http://b.domain.com
http://c.domain.com
I have IIS I want to redirect each of those adresses to a differente
application on the IIS Server.
What can I do.
As far as I know, we have 1 router, two firewalls and internally there is
the IIS server th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
2 dropdownlists using same datareader
Posted by tshad at 6/15/2005 4:17:59 PM
Is there a way to databind a datareader to 2 different dropdownlists?
Something like:
StoredSearches.DataSource=objCmd.ExecuteReader
StoredSearches.DataValueField="SearchID"
StoredSearches.DataTextField= "SearchName"
StoredSearches.databind()
SearchList.DataSource=objCmd.ExecuteRe... more >>
Listbox selection to populate another listbox?
Posted by Chris Kettenbach at 6/15/2005 3:15:29 PM
Hello all,
Quick question. I have a listbox that is populated by items from a database.
When the user select something from the list, I want to populate another
listbox based on the selection in the first.
Example lstCompany contains a list of company names with the primary key
field hidde... more >>
Thread safety issue
Posted by Feng at 6/15/2005 2:31:06 PM
In my VB.Net ASP project, I have a function in a module (same thing as a
static function in C#'s terms) that is shared by all the sessions. What is
does once called is to write messages into a common log file that's also
shared by all the sessions. To make sure it is thread safe, I use the Mon... more >>
UniqueID vs ClientID
Posted by Sam Samnah at 6/15/2005 2:09:05 PM
Sorry if this seems like a simplestic question, but what is the difference
between "this.UniqueID" and "this.ClientID"? and when should either be used?
I am Sam I am.
... more >>
Validating input - checking for html
Posted by SL at 6/15/2005 2:04:21 PM
Does anyone have a good method for checking user input to be sure they
haven't entered html code into a text input field?
TIA,
Sheryl
... more >>
Q: Deployment steps
Posted by JIM.H. at 6/15/2005 1:58:07 PM
Hello,
Is there any site that shows how can I deploy my asp.net project to my web
server (which is not in our main domain)
Thanks,
Jim
... more >>
Microsoft Offers Free Training...
Posted by clintonG at 6/15/2005 12:36:30 PM
I thought I had a shorcut or Favorite to a Microsoft resource that I seem to
want to recall makes available some type of free training, courses offered
over the web, complete courses, being made available to help developers
learn ASP.NET 2.0.
The training is supposed to be available until Nove... more >>
QueryString construction
Posted by TCORDON at 6/15/2005 11:58:57 AM
How can I insert a value that i have in a variable (codebehind) into the
html part of the page to build a querystring?
Say: <A href='MyPage.aspx?Id=(Insert the value here)'>
TIA!
... more >>
passing object between two webApps on the same server
Posted by Oleg at 6/15/2005 11:23:02 AM
Can I pass an object from one web application to another on the same server?
I want to kind of post it or something so that I don't have to pass info in
the url string.... more >>
choosing web color....
Posted by Smith at 6/15/2005 11:13:55 AM
I have developed a web based application targeting various browsers
(different versions).
When I select the color... do I have to make any considerations? Anything
like true font etc..
Thanks,
Smith
... more >>
Sorting in dataGrid
Posted by simon at 6/15/2005 10:34:39 AM
I have column of dataType varchar(10).
The values in this column are decimal numbers, 'NUL', OR ''.
(because of 'NUL' and '' values I haven't defined column as decimal(18,2))
When I fill dataGrid and user click sorting on this column, the column is
sorted alphabetically.
So 100,00 is bef... more >>
Troubles with cookies
Posted by Azat Chafigoulline at 6/15/2005 10:19:52 AM
Hi,
I've some troubles using cookies in my ASP.NET application (C#).
I write a cookie in a page which is in the /login subfolder of the web and I
set an appropriate expire date. But if I intend to read that cookie from
other pages which lie directly at the root folder of the web app, I only... more >>
IHttpHandler Path
Posted by Qbert at 6/15/2005 10:17:47 AM
I have a application that is using an IHttpHandler but i'm having
issues with the path that I put into web.config.
I want to be able to execute this handler in any subdirectory of the
webapplication but not in the root directory.
Any help would be appreciated.
Thanks
... more >>
Skin and custom controls (ASP 2.0)
Posted by Frédéric Mayot at 6/15/2005 10:03:09 AM
Hi
I'm trying to define a skin for a custom control. I can't see how to do
it...
My custom control inherits from a TextBox but it doesn't recognize the
skinID defined for asp:TextBox.
Any idea ?
Thanks,
Fred
... more >>
Crawling
Posted by chris at 6/15/2005 9:16:27 AM
I need to know if a web crawler simulates a link or if it redirects to a
link.
Meaning i have a link that looks like this
<a href="#" onclick=redirect(5))>Home</a>
Will a crawler be able to handle this?
... more >>
Getting Error while using asp.net 2 and visual web developer 2005
Posted by Deepson Thomas at 6/15/2005 8:47:05 AM
The below is error message :
The type 'page2' already contains a definition for 'txtLocationName'
i know why this comes. but iam not ablke to find the other place where the
definition is added. coz iam not able to get this textbox object in the
intellisence sp i tried to add a line "protecte... more >>
Forcing postback on a web dialogs opening window
Posted by SkeanDu at 6/15/2005 8:38:51 AM
Ok, here is my problem.
I have an aspx page that displays a databound datagrid and in one of
the datagrid column headers I have an image that when clicked opens up
a modal web dialog (another aspx page).
>From this dialog I want the users to be able to select a filter item
from a databound ... more >>
Build / Compile Project slow when using VPN
Posted by hooterbite NO[at]SPAM yahoo.com at 6/15/2005 8:04:36 AM
Using the same computer to build the same project, when I am connected
directly to the network it takes a second or two. When doing it from
home (connecting using VPN) it takes up to two minutes to build and
compile the same project. Any ideas?
... more >>
ListBox selected item
Posted by David De Cotis at 6/15/2005 7:40:53 AM
Hello all, I am trying to go through a ListBox and verify if am item was
selected. If an item was selected, I would like to get a handle of the item
and simply do a response.write on the selected handle. The issue that I am
facing is that I am going each item, but my code does not catch t... more >>
Modal Dialog
Posted by Davey P at 6/15/2005 7:40:15 AM
I am able to open a modal dialog on a button click from the code behind by
placing a RegisterClientScriptBlock() method in the button click event
handler. This all works fine, but the problem is that when the modal box is
displayed, the parent page in the background goes blank until the dialog... more >>
Server.Transfer vs. Response.Redirect
Posted by Terry Olsen at 6/15/2005 7:17:14 AM
Since both methods seem to produce the same results, in which cases
would you prefer one over the other? The only thing I would think is
using Server.Transfer because of some browsers blocking redirects.
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Alternative to Dataset??
Posted by angela at 6/15/2005 7:09:17 AM
Hello everyone
I have two select statements, one pulling out the articles and another
select pulling out the articleIDs and companyIDs.
I use these two select statements to populate two datatables in a
dataset and use the RowFilter to populate a datagrid.
What I would prefer to use is a ... more >>
Problem Downloading Visual Web Developer Beta
Posted by Wayne Wengert at 6/15/2005 7:03:44 AM
When I download and the try to run the installer for Visual Web Developer
2005 Express Beta 2 (http://lab.msdn.microsoft.com/express/vwd/) I get an
error that the exe is not a valid Win32 application. Is this just me or is
there a problem with that downlod?
Wayne
... more >>
Introduce new filetype with httphandler
Posted by Paul at 6/15/2005 6:51:03 AM
Hi!
I want my web application to be able to handle files with the extension
..mspx (my own extension). The new extension should be handled exatly the way
aspx files are handled, but with some additional code specific to the .mspx
extension files.
I thought this would be an easy task, but... more >>
PostBack "Please Wait..." Message.
Posted by John Walker at 6/15/2005 6:35:09 AM
Hi,
I have a datagrid with a radiobutton template column, with AutoPostBack set
to TRUE. When the user clicks on a radiobutton the application will
PostBack, and in the PostBack there will be certain logic performed, and the
dataview will be re-binded to the datagrid. There turns out to be ... more >>
when to use usercontrol, when not to use?
Posted by Craig at 6/15/2005 5:57:05 AM
Are there any general rules anyone follows to decide when to put some items
in a usercontrol and when to just put items directly on an .aspx page.... more >>
Q: login screen
Posted by JIM.H. at 6/15/2005 5:18:04 AM
Hello,
Can anyone give me a link (C#) that handle login screen while keeping
username and password encrypted in the SQL Server?
Thanks,
Jim.... more >>
Web Application and Security
Posted by thomson at 6/15/2005 5:14:31 AM
Hi all,
I have installed a Web Application in IIS and configured a
Database in a different server.
OK, If suppose some one copies the database and the Web Application
folder in the IIS, and installed it in some place and did some
manipulation in the Web.config file, this works in thi... more >>
Problem with System.Web.Mail.MailMessage and HTML mail
Posted by MickeBoy at 6/15/2005 4:43:06 AM
Hi all!
I'm trying to send a HTML mail using the MailMessage class. Sending the
message works fine, but there is something funny with the received message. I
use the code below to generate and send a sample message. When I recieve it
and open it in Outlook 2003 the style for my table cell i... more >>
Cannot display Custom Error Page
Posted by Kim at 6/15/2005 2:01:07 AM
I've set the "defaultRedirect" attribute of the <customErrors> tag in
web.config file to the filename of the custom error page. However, ASP.NET
does not display this page whenever an unhandled exception is thrown.
Similarly, if I were to set the "ErrorPage" attribute of the @Page directive
... more >>
Any way for JavaScript to abort postback from an ASP.NET Button?
Posted by None at 6/15/2005 1:37:13 AM
I have a small JavaScript event handler that runs when a Button is clicked.
This function is called before the postback. I would like to prevent the
execution of the postback in that function under a certain condition.
Possible?
... more >>
Forcing textbox to refresh
Posted by Patrick Olurotimi Ige at 6/15/2005 12:02:14 AM
I have a hyperlink below:-
<asp:HyperLink
ID="Hyperlink2"NavigateUrl='<%#"AddToCart.aspx?productID=" &
DataBinder.Eval(Container, "DataItem.ProductID") >Add</asp:HyperLink>
And i want to force a textbox so i can get the right string to add to
the link above..
How can i force textbox to refre... more >>
Need to write my own CMS. Where to start (preferably based on .net v 2.0)
Posted by jensen bredal at 6/15/2005 12:00:00 AM
Hello,
This may sound funny but i'm really serious about writing my own CMS.
One big evidence now: i miss most of the basics.
I have about two years of commercial experience on .net and i'm asp.net
certified (exam 70-315) but
i still miss some architectural overview in kicking my CMS pro... more >>
How to change a public variable value?
Posted by Shapper at 6/15/2005 12:00:00 AM
Hello,
I have this:
Public Class index
Inherits System.Web.UI.Page
Public readMore As String
...
Private Sub ShowNews()
...
Select Case Session("culture")
Case "pt-PT"
readMore = "Lêr Mais"
Case "en-GB"
readMore = "Read More"
End S... more >>
Codepage problem
Posted by Daatmor at 6/15/2005 12:00:00 AM
I saved my aspx with Encoding (Chinese Tranditional (Big5) - Codepage 950)
and I had set codepage="950" in Page tag. The content rendered incorrect
(all text changed to symbols), but some content those read from xml file
works correct.
How can I fix this problem?
Thanks
... more >>
adding query string to request
Posted by TomislaW at 6/15/2005 12:00:00 AM
Is it possible to add query string on requested page
e.a.
i have request for index.aspx, but i need index.aspx?language=en
is this possible
tomislaw
... more >>
Problem with the Smart Navigation
Posted by Raghuram at 6/15/2005 12:00:00 AM
Hi All,
I my project i am using Java Script menu ( Drop down menus ) and i enabled
the SmartNavigation functionality in the aspx pages and because of that drop
down menu's are getting disabled.
the scenario: on page load menus will work properly but where as if there is
any transaction done ... more >>
How to hide this?
Posted by Shapper at 6/15/2005 12:00:00 AM
Hello,
I have this in a Repeater on na Asp.Net page:
<a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'>Go</a>
How to hide everything is the link field is empty?
Thanks,
Miguel
... more >>
Datagrid inside another datagrid
Posted by wolfgang wagner at 6/15/2005 12:00:00 AM
hi all!
im trying to implement an m:n relation in a webapplication(here: the
realtion between hard and software. there may be many computers with
each of them has many installed software). for this i want to do this
with a datagrid inside a datagrid.
can someone tell me another method? or ... more >>
SQL Reporting Services: Install?
Posted by Mark at 6/15/2005 12:00:00 AM
Hi, we have a remote server has SQL Reporting Services installed..
I have Visual Studio.NET 2003 Professional and I want to install the client
tools so I can create reports against the remote server. I have been using
Crystal Reports but would like to use SQL Reporting Services..
So, how do ... more >>
How good is com wrapper for .net
Posted by YeeCN at 6/15/2005 12:00:00 AM
Hi,
I need to web enable a VB6 program. Should I go for asp or asp.net?
Asp.net would definitely my choice, but I am concerned about the possible
slow down that could be caused by the .net to com interop layer.
I would greatly appreciate anybody who could shed some light on this.
Best reg... more >>
Language for ASP.NET
Posted by Tumurbaatar S. at 6/15/2005 12:00:00 AM
Hi all!
I'm going to develop web app-s in ASP.NET and wondering what language,
C# or JScriptNET, to choose for this. I have some experience on writing ASP
pages with JScript and Win32 app-s with C++. Now I have to start quickly
write
web app and, it seems, C# may take more time to learn than J... more >>
ServerProtocolViolation after HttpWebRequest.GetResponse()
Posted by nokia NO[at]SPAM west100.com at 6/15/2005 12:00:00 AM
I have a strange behavior of a following code:
HttpWebRequest
request=(HttpWebRequest)WebRequest.Create(@"http://.../target.jsp");
request.ProtocolVersion=HttpVersion.Version11;
request.Method="POST";
request.ContentType="text/plain";
request.KeepAlive = true;
request.ContentLength=data.Le... more >>
How to execute a query using the microsoft index service??
Posted by Marcelo Moreira at 6/15/2005 12:00:00 AM
Hi all,
Does somebody know how I can use the index service inside asp.net?? I want
to execute a search query...
Thank u all.
Marcelo
... more >>
checkboxcontrol does not work
Posted by Jimmy at 6/15/2005 12:00:00 AM
Hi,
If i check my checkbox then it never returns true in the code below:
code:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
string[] ar = new string[]{"jack","jill"};
DataList1.DataSource=ar;
DataList1.DataBind();
}
privat... more >>
Passing Multiple (Controls) Dropdownlists to Another Page's Textboxes
Posted by Angel.Net at 6/15/2005 12:00:00 AM
I'm working with 40 dropdownlists that are selected on the the first page and each selection is sent to another Web Page's textboxes. I'd like to loop thru my first page's dropdown's and match them with the second page's textboxes. Should the controls on both pages be established in an ArrayList??... more >>
|