all groups > asp.net > april 2005 > threads for monday april 18
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
asp.net XSS protection
Posted by Aaron at 4/18/2005 11:57:54 PM
Is asp.net immune to XSS exploits out of the box? or is this only true for
VS shipped web controls?
... more >>
grabbing a control in a datagrid.
Posted by David Lozzi at 4/18/2005 11:50:52 PM
howdy,
trying to do the following
dg.FindControl("add_Name").visible = true
This control is located in the footer of a column. I am trying to have it
appear under certain circumstances. The function fires that contains this
script under my circumstance, however I get the following error... more >>
lost event problem
Posted by bhavik at 4/18/2005 11:16:02 PM
hi
I have problem that when I am upload my application to the client server, I
am losing buttion event on some pages. on some pages button event is working
fine ro some pages is not working. I am not able to find any solution so
plase help me out this problem.
regards,
bhavik ... more >>
Better Way to Get Directory Size
Posted by Raed Sawalha at 4/18/2005 10:25:02 PM
I have the following function to get the directory sizse, i wondering if
there any better way to find directory size
public static double GetDirectorySize(string DirectoryPath)
{
double fDirSize = 0 ;
if(!System.IO.Directory.Exists(DirectoryPath))
return fDirSize;
try
{
Sy... more >>
What is the best way to resize an image?
Posted by Rudy at 4/18/2005 9:46:02 PM
Hello all!
I been trying to get a handle with Images. I have learned alot from the fine
people here. So, I also learned that thumbnail images look terrible taken
from a digital cam. I know why they look bad. So what is the best way to
resize an image. I'm not too concerned about size, but I... more >>
ItemDataBound question?
Posted by Kenneth P at 4/18/2005 9:21:01 PM
Hi,
I have this kind of scenario:
col1 col2 col3
row1 1 2 3
row2 4 5 6
row3 7 6 9
In certain instances the value in cell (row2, col3="6") equals the value in
cell (row3, col 2="6"). It's the same value , they are valuepairs. And thus I ... more >>
Real big deployment problem
Posted by Charl at 4/18/2005 3:37:13 PM
Hello,
I’ve got a very strange but big deployment problem.
I’ve written an asp.net application with an usercontrol on a webform. The
usercontrol reads all picture names out of a mssql database, then it writes a
html table with all pictures as “<imgâ€. So all pictures are displayed n... more >>
Return user to original view
Posted by Sandy at 4/18/2005 3:32:05 PM
Hello -
There is a possibility of having Panel1 displayed, Panel1 and Panel 2
displayed or Panel1, Panel2 and Panel3 displayed.
When a user clicks on a Button, those Panels, if visible, are set to false.
Another panel, Panel4, is opened. There is a close button on Panel4 if a
user chan... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problems using Current Context
Posted by jw56578 NO[at]SPAM gmail.com at 4/18/2005 3:05:38 PM
I am using context object to pass all information needed when
navigating between pages. I add the item to the collection,
server.transfer, and retrieve the value in the next page. Are there any
problems with doing this or is it a pretty stable way of transfering
values between pages.
thanks
... more >>
How to Creating HTML file in Visual Basic.NET DLL
Posted by pari kanaga at 4/18/2005 2:51:05 PM
Hi,
Is there anyway to create a HTML file and Archieve by calling a dll in
aspx page.
I know its possible to render a html file by HtmlTextWriter. But I don't
know How to use in Dll.
thanks
pk
*** Sent via Developersdex http://www.developersdex.com ***... more >>
How to call javascript function with Validators?
Posted by Sky Kim at 4/18/2005 2:04:20 PM
Hi, all. I got stuck...here..
Let me simplify my problem..
I added One TextBox, and Required Validator associated with the textbox.
And, Submit button.
When submit is clicked it should do some thing before submit.
So, when button clicked javascript function "SaveData()" must be called.
S... more >>
ASP.NET on Windows Server 2003
Posted by Robert E. Flaherty at 4/18/2005 1:27:29 PM
What is involved in installing and enabling ASP.Net (1.1) on a Windows
Server 2003?
... more >>
Visual Studio .NET has detected that the specified Web server is n
Posted by Kalyan at 4/18/2005 1:24:24 PM
Hi,
I am getting error msg "Visual Studio .NET has detected that the specified
Web server is not running ASP.NET version 1.1" when I am trying to create a
web project from VS 2003. The environment that I am trying this Windows 2003
standard for Web Server and Windows 2000 professional for V... more >>
Dual CPU and Webgardening
Posted by RezaA at 4/18/2005 1:23:24 PM
We are using a webserver with dual processors.Web gardening is set to off
and our application is in an application pool with *ONLY* one
workerprocess.I just wondered if our application in this case can take
advantage of the other processor of box in which the webserver is
installed.I was rea... more >>
Can I use use Microsoft Masked Edit Control in ASP.NET web form
Posted by david at 4/18/2005 12:36:02 PM
Anybody could give me hint how use this control in asp.net web form.
The problem is:
I try to use COM component in my web form app by using MS training kit for
windows form application. I would like to do the similar thing.
The guide asks me to add Masked Edit Control to the Toolbox by addi... more >>
Quick question re: DataSets
Posted by John Sweet at 4/18/2005 12:07:24 PM
In the following code, is it OK to return the DataTable, or should I return
the DataSet so that it can be disposed in the calling code? In other words,
do I need to Dispose() a DataSet or will the framework clean it up for me?
public DataTable GetSomeData()
{
DataSet myDataSet = new DataSet... more >>
aspnet_wp.exe could not be started (error: 80070718)
Posted by Eyal at 4/18/2005 11:30:05 AM
Hello all.
I have an on-going problem with ASP.NET and my .NET library on my IIS 5.0
server.
I have a Windows 2000 Advanced Server on a hosted machine and at one point,
my host renamed the machine name - since then, I've had problems with ASP.NET
and permissions.
My server goes on... more >>
Include a file from a Remote Server
Posted by Jody Gelowitz at 4/18/2005 11:25:22 AM
I understand that we are unable to Include a file from a remote server:
<!-- #Include virtual="http:\\remoteserver\test.htm"-->
Is there a way to get around this limitation so that pieces of HTML from
different servers can be combined in a single page?
Thanks,
Jody
... more >>
Querystring with Target
Posted by sck10 at 4/18/2005 11:13:34 AM
Hello,
I am dynamically building the following querystring:
http://cost/content_ncb.aspx?qv01=101. How do I add Target=_blank?
I have tried http://cost/content_ncb.aspx?qv01=101,Target=_blank and
http://cost/content_ncb.aspx?qv01=101&Target=_blank to no avail. I get the
error: Syntax err... more >>
Reponse.Redirect ()
Posted by RayAll at 4/18/2005 11:13:24 AM
I have used a response.redirect() in the first page of my weblog to transfer
it to anther page,but it seemes to be slow.Is there a workaround (probably
Server.Transfer???)???
Thanks
... more >>
Client Printing from Web application
Posted by JoelBrimm at 4/18/2005 11:05:02 AM
We've got a web application ( vb.net ->asp.net web application ) that prints
labels. These address labels are actually a Crystal report in a Crystal
report viewer object on the web form. Our problem is that we want the labels
to print at the client workstations on the Client's label printer.... more >>
Required Field Validator and Focus Question
Posted by David Hearn at 4/18/2005 10:32:18 AM
I have some required field validators on a form and would like to know if
there is a way to set focus back to the field that is required if the
validator is triggered. The problem is that the validator is triggered and
displays the error message, but it may be up the form so far and out of
s... more >>
Autotmate Page_load events
Posted by Alex at 4/18/2005 10:25:02 AM
We have a web site which we need to implement auditing. I've implemented a
base form which all code behind files inherit from, and I can add the logic
to it, but that would mean that all existing pages would need to be changed,
and any future pages would need to also implement the call code.
... more >>
How to get the values from multiple selection in the List Box (ASP.NET program)
Posted by bienwell at 4/18/2005 10:13:12 AM
Hi all,
I've got a problem with getting the data values from multiple selections in
the list box. I could only get the value and the index of the first item
from the selection, but not the others. The data loaded for the Listbox
(FieldList) is from data table. I already set the property
Sele... more >>
Datagrid Button Column with ImageButton
Posted by MattB at 4/18/2005 10:11:29 AM
I have a button column in a datagrid that is the delete button. Right
now it is just a text link. When I go into the Property Builder My
button choices are only LinkButton or PushButton. I'd like it to be an
ImageButton so I tried converting the column to a Template Column.
Then I edited th... more >>
Form Submission
Posted by TCORDON at 4/18/2005 9:55:10 AM
How can I prevent a user from submitting a form more than once if the form
is submitted by a ImageButton that cannot me disabled?
Thanks
... more >>
off-topic: cost for developing site?
Posted by VMI at 4/18/2005 8:58:04 AM
A client asked me to develop a site similar to http://www.luispachecorg.com
and I don't know how much I should charge for it. The site will have about 6
pages, and one of the pages will include a Search engine that will search for
houses in a DB that I will also create (similar to the Search ... more >>
IIS Virtual Directory
Posted by david at 4/18/2005 8:51:23 AM
I have met a problem about IIS Virtual directory.
wwwroot directory in C drive and my web application abc.aspx in D drive with
path
d:\myApp\App03\abc.aspx. I have set a virtual directory TestVirtualDir in my
web site with path
d:\myApp
When I use the web browser to get abc.aspx, I use U... more >>
Input File Type
Posted by Angel at 4/18/2005 8:48:20 AM
in the input file type control is there anyway to set the command button to
say something else other than "Browse..."?
thanks
... more >>
Regex not working in page_load
Posted by tshad at 4/18/2005 8:33:30 AM
I am trying to get a regular expression to work and I keep getting the
following error:
Compiler Error Message: BC30469: Reference to a non-shared member requires
an object reference.
The page is:
**********************************************************************************
<%@ P... more >>
Application_AuthenticateRequest cannot read Session variable
Posted by danman226 at 4/18/2005 8:29:03 AM
I will be using a companyname, user name, and password to authenicate users
in my system. I am trying to save the company name in the session for later
use. I cannot access the Session["CompanyName"] object in the
Application_AuthenticateRequest function. I need the companyname to lookup
the... more >>
How to display detailed ASP.NET error information in RemoteOnly mode
Posted by bay_dar NO[at]SPAM yahoo.com at 4/18/2005 8:04:35 AM
Hi,
According to the information in the web.config file, if I set
customErrors mode="RemoteOnly" in the web.config file then: "Display
custom (friendly) messages only to users not running on the local Web
server"
Now this has been working great for showing my custom error pages.
However, w... more >>
Server side code in-side aspx
Posted by Arne at 4/18/2005 8:04:07 AM
I usually use code-behind pages in ASP.Net, but occasionally I have to put my
server code inside an aspx file.
I have a problem finding the correct signature for a button click event.
Private Sub loginbtn_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles loginbtn.Click... more >>
excel workday function for asp.net?
Posted by SirPoonga at 4/18/2005 7:42:00 AM
I need a workday function like excel has. I found vba code for access
to dot he task. I want to try and convert it. One of the funcitosn
has the parameter "Optional dtmDate as Date = 0". I need to convert
that to something asp.net recognizes. I haven;t used the DateTime in
asp.net too much.... more >>
Creating a 3 State Rollover Button
Posted by thechaosengine at 4/18/2005 7:37:11 AM
Hi all,
Can anyone tell me what I need to do to create a 3 stage rolloever button
out of an asp.net image control.
I don't know too much about javascript or creating user controls. I'm really
hoping that someone can just tell me if there is an easy way to do it.
I normally use Dreamwea... more >>
getting uploaded file name
Posted by asad at 4/18/2005 7:18:09 AM
Hello friends, i need some help in getting uploaded file name, i am uploading
2 files and i want to get only the filename of these 2 file not a full path
so pls tell me which function or technique i use for getting this. I am using
ASP.NET built-in uploading.
Thanks.... more >>
hide the values in query string in ASP.net.
Posted by bhavik at 4/18/2005 7:13:04 AM
hi
i want to know how to hide the values in query string in ASP.net.
here i want to send the values from one page to another page through query
string with out explicitly visible the values in the query string. i want
the solution with the response.redirect method.
example : www.mysite... more >>
building dynamic list of web from controls
Posted by scottrm at 4/18/2005 7:11:13 AM
Is there a way to generate a list of say textbox controls dynamically at run
time, based on say a value coming out of a database which could vary each
time the code is run. In traditional asp you could just have run a loop to do
something like that. I am aware in you can use something like
... more >>
Querystring encoding utf-8
Posted by Manso at 4/18/2005 6:54:15 AM
Hi,
Our sites need to support utf-8 so web.config has both request and response
encoding set to utf-8. The problem is that Request.Querystring doesn't
support this and we've tried to find a solution in the newsgroups but
couldn't find one. The suggestions invole HttpUtility functions but
... more >>
Creating user defined object
Posted by Web Team NO[at]SPAM Borough of Poole at 4/18/2005 6:26:55 AM
Hi,
I need to create a new object for storing addresses. e.g.
address.postcode, address.town...etc.
I have an XSD file which defines an 'address' - Is it possible to
define my object based on this?
End result I am looking for is some way of storing a collection of
addresses.
Thanks.
... more >>
Purpose of bin folder
Posted by rajesh NO[at]SPAM solutionsoftware.com at 4/18/2005 4:19:54 AM
Hi,
Just wanted to know what is the purpose and importance of bin folder
in .NET framework? Why should an application consist of the bin folder
and what would happen if we donot have such a folder structure in a
..NET application?
Regards,
Rajesh... more >>
Client-Side Validation?
Posted by Saket Mundra at 4/18/2005 3:37:02 AM
I want to perform client side validation on click of a ASP.NET web Server
Button Control. How shall i call my javascript function to do that ?
Also i want that the data shall be posted to the server only after
validation is performed. If the validation fails i don't want the page to be
post... more >>
Client side Validation ?
Posted by Saket Mundra at 4/18/2005 3:14:01 AM
I have following queries regarding Client side validation :
1) I am using a ASP.NET web Control on my form to submit the data entered by
the user. I want to perform Validation when the user clicks this Button.
However i have no idea how to call a client side javascript function on the
butto... more >>
Crystal report PrintToPrinter in ASP.NET
Posted by CAradhana NO[at]SPAM gmail.com at 4/18/2005 2:22:54 AM
hello all,
I'm having problems printing to a network printer from the server
using ASP.NET.
I set the name of the printer using
oRpt.PrintOptions.PrinterName =3D "\\\\server\\printer"
and then I am using,
oRpt.PrintToPrinter(1,false,0,=AD0)
I get an exception thrown stating "Inval... more >>
How to connect ASP.Net with Oracle Database?
Posted by ´ï´ï at 4/18/2005 12:00:00 AM
How to connect asp.net with Oracle Database?
Where and How to? Thanks very much.
... more >>
Delete a Script Block
Posted by Kiran at 4/18/2005 12:00:00 AM
Hi,
I have a registered a script block using: Me.Page.RegisterClientScriptBlock
Is there a way to delete this registered script block using asp.net
Thanks
Kiran
... more >>
datagrid
Posted by Trond at 4/18/2005 12:00:00 AM
I have a form with a datagrid that is databound. One of the column is like
this:
<asp:BoundColumn DataField="Timediff"
SortExpression="Timediff"
HeaderText="Time difference">
<HeaderStyle Wrap="False"></HeaderStyle>
</asp:BoundColumn>
In that column i display a number from 0 to 3 mill
... more >>
security error
Posted by Ersin Gençtürk at 4/18/2005 12:00:00 AM
onk= -> why this string causes security errors ? it is'nt "<" neighter ">"
??
... more >>
Drop List.Text to include
Posted by Tim at 4/18/2005 12:00:00 AM
Hi,
I am trying to load up a drop list with semi aligned columns like so:
[Item 1 Something]
Item 2 Something Else
etc.
To do so, I have tried to fill the Text valus of ListItems like so:
dim li as new ListItem
li.Text = "Item 1" & StrDu... more >>
Problem with globalizing web application
Posted by Krzysztof Swiezynski at 4/18/2005 12:00:00 AM
Hello,
I've made a simple web application which display a welcome string based
on the choosen language selected (values: "pl" or "en") from a
DropDownList. My code is:
protected ResourceManager gStrings;
private void Page_Load(object sender, System.EventArgs e)
{
gStrings = new Resourc... more >>
is there problem to work with vs.net on web application and also to the iis to serve web clients ?
Posted by roni at 4/18/2005 12:00:00 AM
hi.
if i work with the vs.net on project X ,that is web application
is there a problem for the IIS to serve web clients with project Y dlls ,at
the same time ?
meaning, can i server web clients and develop on the IIS at the same time ?
(i want to develop while other web clients testing ... more >>
What is the Use of <Identity Impersonate="true">
Posted by Raghuram at 4/18/2005 12:00:00 AM
Hi,
What is the use of <Identity Impersonate="true" />
How can we implement this in an ASP.NET application
When are we supposed to use this.
please provide me the details with an Example.
Raghuram
... more >>
Validating a CheckBox with ASP.NET validators?
Posted by Lars Netzel at 4/18/2005 12:00:00 AM
Hi
How do I validate a CheckBox with a formvalidator from ASP.NET ? I can't
find anyway to do it and I need the look of this validation to look like the
rest of the textbox validators on the form (which are using
RequiredFieldValidators). Please help!
Best Regards
/Lars
... more >>
access denied to PDF file (when Response.WriteFile)
Posted by LP at 4/18/2005 12:00:00 AM
Hi,
I have a reporting application that exports data to different format and
sends file to the browsers with the following code:
string fileName = @"" + Request.QueryString["filename"];
//fileName = Request.QueryString["filename"];
if (fileName.Length==0)
{
Response.Red... more >>
start at specifed time
Posted by Darko Bazulj at 4/18/2005 12:00:00 AM
Hi,
Is it possible to start some code at specifed time(like scheduled task)?
How to achive that?
I can't use windows service or windows shedule task. I don't have necessary
rights.
I would appreciate if someone has an example or link, anything to point me
in the right direction.
Thank you... more >>
How to move this line to web.config?
Posted by Shapper at 4/18/2005 12:00:00 AM
Hello,
I have a dataset in an ASP.NET/VB web page:
Function dsNews() As System.Data.DataSet
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;
Ole DB Services=-4; Data Source=C:\Database\myDatabase.mdb"
Dim dbConnection As System.Data.IDbConnection = New
System.Dat... more >>
DropDownList in DataGrid EditMode
Posted by Islam Elkhayat at 4/18/2005 12:00:00 AM
In my webproject i have a datagrid.. i added a DropDownList in the edit mde
and in the Datagrrd1_ItemDataBound i bind data from dataview using:
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
DropDownList list = (DropDownList)Datagrid1.FindControl... more >>
machine.config vs web.config
Posted by Carlos at 4/18/2005 12:00:00 AM
Hi all,
I need some settings that I have created in my machine.config
of my test enironment to be available in the deployment environment.
I do not have control over that environment, and was thinking to probably
make a web.config for that application. Can I clone a machine.config
to make it... more >>
loading an empty value into a date object using vb.net
Posted by David Lozzi at 4/18/2005 12:00:00 AM
Howdy,
I am trying to accomplish the following:
dim DateSend as date
if txtDateSend.text = "" then
DateSend = dbnull.value
else
DateSend = txtDateSend.text
end if
however, the script screams about "Value of type 'System.DBNull' cannot be
converted to 'Date'." How do I send ... more >>
Invisible ASP.NET action
Posted by Tor Inge Rislaa at 4/18/2005 12:00:00 AM
Invisible ASP.NET action
I have an .aspx page with some controls and a SEND button that are sending
an e-mail based on the content in some textbox's. Is it possible to call the
page with some parameters, so that the code sending the e-mail is executed
on the server without showing any page and... more >>
Regular Expression matching double quotes
Posted by Codex Twin at 4/18/2005 12:00:00 AM
Hello folks
I am trying to use regular expressions to achieve the following:
If my searchString is: "London Trains" Paris Amsterdam "Berlin Cars"
I want to be able to split this string by those grouped by the double
quotes first, and then the non-quoted words second. So for the above stri... more >>
How to chang bgcolor of row when mouse selected a row?
Posted by Charles Shao at 4/18/2005 12:00:00 AM
How to chang bgcolor of row when mouse selected a row?
I have a HTML table in the page. I hope to change <tr.bgcolor> when user
clicks on a column, just like user has selected this row.
How can I do that ?
Thanks
Charles Shao:-)
... more >>
|