all groups > asp.net > december 2003 > threads for tuesday december 23
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
Comparison Operators
Posted by J Jones at 12/23/2003 11:44:22 PM
This may be the wrong newsgroup to be asking about this but I'll ask
anyway..
I have 200 possible conditions expressed as comparisons eg. A <= 100 And A
> 69. They are stored in an SQL database. I also have a datatable with one
row containing 10 values (A,B,C,D,E,F,G,H,I,J). How can I test th... more >>
Execute a string of code as if it were a page
Posted by nickgieschen NO[at]SPAM hotmail.com at 12/23/2003 10:29:12 PM
Hi,
I wondering if it is possible in asp.net to somehow execute a string
of code as if it were a page on the server. That is to say, if I
executed the following code which resided in an aspx page
<html>
<body>
<% Response.Write("Hi.") %>
</body>
</html>
the output would be
<html>
... more >>
run a vb.net module in asp.net across WAN
Posted by ben at 12/23/2003 9:57:56 PM
Hi.
BACKGROUND:
I am trying to deploy an application across a WAN. I
have already written the app in vb.net and it works
fine. I connect to a local SQL server that takes too
much bandwidth for the remote users. So I figured after
I wrote the app I could make a simple asp.net page that... more >>
c#/.NET coding standard?
Posted by kdbryant NO[at]SPAM snopud.com at 12/23/2003 8:35:17 PM
Hi there - my dev team is looking for some c# coding
standards....Does anyone have any documentation? I know
a lot of people use pascal, but I was wondering what is
the standard. Also, looking what the standard should be
for name id's on a webform, ex. txtLastName or
frmLastNameTB...
... more >>
Databound Textbox - DataSet not getting updated value
Posted by John Rose at 12/23/2003 8:25:49 PM
I have one databound TextBox on a page with one button. The TextBox loads
the correct SQL record data but typing a new string into the Textbox fails
to change the DataSet. Any ideas? There must be some way to force the
edited TextBox to update the DataSet since it appears to not be done
autom... more >>
update to c# library would not propagate
Posted by greg at 12/23/2003 6:57:28 PM
Hi
I got some crazy stuff here
I have a web app that uses some library I also developed
at some point i noticed that changes I made to one of the files in that
library
are not taking effect
I changed from debug to release and back
tryed to clen in some places - no effect
Help
GSL
... more >>
.NET 1.0/1.1, VS 2002/VS 2003
Posted by .NET Developer at 12/23/2003 6:40:22 PM
Currently all of our Dev/Test/Production servers have .NET Framework 1.0 on
WIN 2000 servers. We use VS.NET 2002 for development. We have various
applications such as InterNet app, IntraNet app, Windows service,
Executables, Webservices etc written in C# . We are planning to migrate to
..NET Fra... more >>
Do a postback without updating client's page?
Posted by Guogang at 12/23/2003 5:38:05 PM
In a .aspx web page, I created a button that will do a postback
What I want to do: let the button do postback, and process the postback data
in my code behind, but the client side's page won't be affected (because I
have javascript to change the web page at client side).
In C#, I need such a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
See no DataList
Posted by Thanh at 12/23/2003 5:37:55 PM
I created an ASP.NET project and dropped a DataList on
the web form. I then wrote a simple class to return data:
namespace Playing
{
public class PositionData
{
private string name;
private string ticker;
public PositionData(string name, string ticker)
{
t... more >>
convert date
Posted by simon at 12/23/2003 5:06:25 PM
if I convert dt with this function:
dt = DateTime.ParseExact(string, "dd.MM.yyyy h:mm:ss",
System.Globalization.CultureInfo.CurrentCulture)
I get as a result:
dt =#12/24/2003 10:00:00 PM#
but I would like to get without PM and AM:
dt= #12/24/2003 22:00:00#
or in fact:
dt= #24.12... more >>
Popup windows.......
Posted by ALPO at 12/23/2003 4:37:59 PM
Any good advice or examples of popup data entry windows
for ASP.NET?... more >>
Change forecolor for individual listitems in CheckBoxList
Posted by erobishaw NO[at]SPAM getintheword.com at 12/23/2003 4:33:54 PM
I'm adding items to a CheckBoxList Control, and need the text in each
checkbox list item to be a specific color. Here's what I'm trying:
ListItem li = new ListItem(GroupName, GroupID);
li.Attributes.Add("ForeColor", GroupColor);
GroupList.Items.Add (li);
When viewing the produced HTML... t... more >>
XMLReader or XMLDocument ?
Posted by john88m NO[at]SPAM hotmail.com at 12/23/2003 4:27:10 PM
How do I read the attributes of this XML? I have a page with text boxes that
i want to read
these values in. notice there are 2 Parameter tags with the same attributes.
Code would help
<TranslationRecords>
<TranslationRecord TrxID="1">
<ParameterCollection>
<Parameter KeyName="FielD... more >>
proble with web.config
Posted by aa at 12/23/2003 4:16:23 PM
I am using VS2003 and when I am launching the web application in the sub
folder page he me show the error
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify ... more >>
WebClient URL after Response.redirect
Posted by jwgoerlich NO[at]SPAM quantaonline.com at 12/23/2003 3:57:40 PM
Here is the scenario: New WebClient, DownloadData from a URL, URL
returns a Response.redirect and then the data, WebClient has the data.
I need to determine the final URL after the remote IIS server has
responded with the redirect.
Any ideas?
J Wolfgang Goerlich... more >>
Inheritance Problem (src vs. Codebehind)
Posted by Michael at 12/23/2003 3:15:28 PM
Hello,
I'm trying to implement sample I found on page templates, so I do not have
to maintain "<html><head>..." on all my documents. But don't let that
confuse you, this is an inheritance problem.
Basically, I'm using VS.NET IDE for development, If I use the src="..." tag
in the @Page dire... more >>
events for dropdownlist found in a datagrid?
Posted by Jeffrey at 12/23/2003 3:12:33 PM
hi
how can i process the OnSelectedIndexChanged for a DDL in a datagrid???... i
added the
OnSelectedIndexChanged = "MyFunction"
in the asp tag and it doesnot seem to call MyFunction
And I cannot add the
handles ddl.OnSelectedIndexChanged
in the function declaration
... more >>
Problem with a DataList
Posted by Jenny C. at 12/23/2003 3:11:07 PM
Hi Guys
I have this problem: I'm trying to put a LinkButton inside a Datalist. But I can't add an event handle
for the button. If I double click on the LinkButton, I get forwarded to the method : dtlMyDataList_SelectedIndexChanged
but that method is not fired when I click on one of the buttons a... more >>
read xml
Posted by john88m NO[at]SPAM hotmail.com at 12/23/2003 2:58:59 PM
How do I read this XML? I have a page with text boxes that i want to read
these values in.
<TranslationRecords>
<TranslationRecord TrxID="1">
<ParameterCollection>
<Parameter KeyName="FielDelimiterChar" KeyValue="29" />
<Parameter KeyName="SegmentDelimiterChar" KeyValue="30" />
... more >>
Access Denied!
Posted by Dave at 12/23/2003 2:50:44 PM
About half the time when I start my app with debugging I
get:
BC31011: Unable to load referenced
library 'c:\winnt\microsoft.net\framework\v1.1.4322
\temporary asp.net files\securitypoints.gui\447da937
\deaebeb2\assembly\dl2\49de659f\14edd8e4_a2c9c301
\securitypoints.data.dll': Access is d... more >>
Generating Excel with HTML
Posted by Evan T. Basalik at 12/23/2003 2:49:56 PM
In my ASP.NET application, I have a table (really a datagrid) that I am
converting into an Excel sheet using ContentType =
"application/vnd.ms-excel". It seems to work fine for most of my results,
but if my table gets too long, I get a message saying "Excel is unable to
read the file".
Any i... more >>
truncate time from date in DataTable.Select()
Posted by eddie90278 NO[at]SPAM yahoo.com at 12/23/2003 2:21:03 PM
I have a DataTable.Select() statement with a DateTime field that is
being compared to a Date:
Dim drCal as DataRow() = tblCal.Select("CalendarItemDate
='12/1/2003'", "CalendarItemDate", DataViewRowState.CurrentRows)
This never returns any rows because all the CalendarItemDate fields
that co... more >>
can't put a url into the value of a key in appSettings (web.config)
Posted by Jason Shohet at 12/23/2003 2:00:08 PM
in web.config, I want to have a key in appSettings:
<add key="Url" value="http://gisbox/mypage.htm?action=state&city="/>
But that value doesn't take... I get an error saying it expects a semicolon.
Any idea why? If I just put value = "abc" it works fine.
TY
Jason Shohet
... more >>
How send parameters to user control
Posted by Yuri at 12/23/2003 1:51:47 PM
Hello, friends!
I created a simple user control which reuse common UI
functionality.
I have successfully gotten it working. The only problem I
passing parameters to the User control from design time.
Maybe it's not possible it all.
The code in design time looks like this:
<%@ Register TagP... more >>
Datagrid Header
Posted by Steve at 12/23/2003 12:58:37 PM
Hi Guys,
I'm wondering if anybody knows of some way to repeat a header row of a
datagrid? We've got a large list of data and would like the headings to
repeat every 20 or 30 rows to make it easier to read. Is this possible?
I've not seen a solution anywhere.
Thanks in advance.
Steve
... more >>
2 Simple Questions About Session_Start
Posted by Jeff Smythe at 12/23/2003 12:54:02 PM
Why does Session_Start in Global.asax fire for every page opened during a
session of an ASP.NET application?
Am I wrong to expect that it would fire only when the first page (i.e., any
page in the app that is opened before any other page during the session) is
opened?
Thanks.
... more >>
Centering controls on a Web Form
Posted by Joe Bonavita at 12/23/2003 12:06:00 PM
I'm sure this is a stupid question but I'll ask anyway :)
Is there a way to center controls on a Web Form? I notice Dreamweaver
centers the controls by default.
The problem I have is if I have 2 images on 2 seperate panels they display
differently with different resolutions.
... more >>
Converting DataSet to object type
Posted by George Durzi at 12/23/2003 11:53:19 AM
I want to convert a dataset to type object so I can pass it to a generalized
function which accepts an object and adds it to the cache.
If I pass it in like:
Convert.ChangeType(MyDataSet, typeof(object))
or
(object)Convert.ChangeType(MyDataSet, typeof(object))
I get an InvalidCastException... more >>
client/server form post
Posted by Harry Simpson at 12/23/2003 11:46:24 AM
I've got a commerce site. I submit a client side form when the clientside
submit button is pressed.
The action for this post is a redirect to a VeriSign PayFlow link page.
Question is....I'd like to save the data on the form into the database when
the form is submitted.
Is there a way i ca... more >>
Customize a DataGrid Row
Posted by James Lennon at 12/23/2003 11:43:28 AM
How can I customize a DataGrid row based on the row
properties. For istance if a column is 0 make the row
bold or red. I have only been able to format a datagrid
based on columns.
James... more >>
Pass an additionnal HTTP parameter while using Server.Transfer
Posted by Julien C. at 12/23/2003 11:35:52 AM
Hi all,
I have an "EditeItem.aspx" page which lets me edit properties of an "Item".
In the OnClick() event of my Save button, I do save Item changes to the
database and then I redirect the user to the Item page "ViewItem.aspx" with
a simple :
Server.Transfer("ViewItem.aspx");
I'd... more >>
Session Related Problem ???
Posted by JJY at 12/23/2003 11:29:32 AM
Hi.
I have a web application. I login to my app and click on some links. It
logs me out and takes me to a login screen. I tried to reset the session by
putting session.abandon in a page and take it out. It didn't resolve the
problem.
Is there anything I can try ? Please give me some id... more >>
custom user logging tracking
Posted by ramA at 12/23/2003 11:28:45 AM
I would like to log specific web user requests and other
specific actions to a file in XML format to analyze site
usage and track users.I would appreciate it if anyone can
suggest or point me to any resource on how to do this,
especially keeping in mind the issue of mutiple users
simulta... more >>
requested recommendation on data presentation
Posted by David Bartosik - MS MVP at 12/23/2003 11:18:06 AM
I am wanting to display my data in columns horizontally across the page
rather than vertically down the page to avoid scrolling.
in other words rather than have
column 1 column 2
I want
column 1 column 2 column 1 column 2 column 1 column 2
with so many options, datagrid,... more >>
Conditional Row in Grid
Posted by DC at 12/23/2003 10:48:29 AM
I have this datagrid:
<asp:DataGrid id="dgList" runat="server" Width="100%" CssClass="BodyText"
AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" PageSize="20" BorderColor="#CC9966"
BorderStyle="None" BorderWidth="1px"
BackColor="White" CellPadding="4" HorizontalAli... more >>
web.config question
Posted by Krishnan at 12/23/2003 10:44:30 AM
Hi,
Could anybody please let me know if I can have custom tags in Web.Config
file just as we do for app.config? If yes, how? If no, how do we generally
configure dynamic properties for an asp.net application?
TIA
Krishnan
Anything good in life is either illegal, immoral or fattening
... more >>
Page Load called twice!
Posted by Colin Basterfield at 12/23/2003 10:40:54 AM
Hi,
Hmmm, a strange one for me, but hopefully not for others...
I have a base page which has
virtual protected void PageLoadEvent(object sender, System.EventArgs e){}
In the Page_Load method I call this
PageLoadEvent(sender, e);
In all the forms that inherit from it I have a protec... more >>
How to select text in textboxs by clicking on it?
Posted by Lily at 12/23/2003 10:13:39 AM
Hi there,
I have 10 textboxs on a page. When tab into a textbox, the entire text
($0.00) in a textbox is selected in blue. How do I have this effect by
single clicking on the textbox?
... more >>
Problem with a DropDownList
Posted by Jenny C. at 12/23/2003 10:06:15 AM
Hi
I have a DropDownList in a ASP.NET (C#) page. This control is bound to a DataTable to get the values to display
However, the SelectedItem never seems to change
For example, if I change manually the item selected in the DropDownList, then click a SubmitButton and then try to use the property ... more >>
Using cookies to determine the last page visited
Posted by Anita C at 12/23/2003 9:43:17 AM
Hi,
How cookies can be used to set and then determine the last page visited by a
person browsing a particular website ? Also the page last visited is loaded
in an iframe, so the page last visited inside a particular iframe is what
really needs to be determined. So when the application starts up ... more >>
smartscroller v1.1
Posted by Brent Burkart at 12/23/2003 9:35:04 AM
Does anyone know where I can find smartscroller v1.1? I understand that
SmartScroller v1.2 is not compatible with .NET 1.1. Are there any other
suggestions?
Brent
... more >>
Frames / dll issue
Posted by K.C. Brown at 12/23/2003 9:30:22 AM
I'm trying to finish up an app that uses a left and right
frame extensively. The left frame contains a dynamically
built menu and the right is used as the target for links
selected from the left.
Everything runs pretty well except for a 3rd party dll
that is called when certain restrict... more >>
Page Validation and Submit problems in ASP.NET
Posted by Arun K at 12/23/2003 9:30:06 AM
Hi,
I am creating a simple .aspx page to add some fields with validation.
I have used different .NET validations like REquiredFieldValidator,
RegularExpressionValidator and showed the summary in the bulleted list
on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One
for ... more >>
Masking DataTextField Output For Display In a ListBox
Posted by DesignLink NO[at]SPAM earthlink.net at 12/23/2003 9:09:50 AM
I can't figure this one out. Here's the situation, should be pretty
for the pros in here.
I have a ListBox that is populated with the DataTextField and
DataValueField flags of the DataSet. Everything populates just fine
and works great.
The DataTextField displays text from a database column... more >>
Fade Image Region with GDI+ ?
Posted by localhost at 12/23/2003 8:40:24 AM
I want to read an image from disk, get the total width,
and then find the bottom region (say an area of 120 high
x the total width) and fade-away each pixel by a
percentage to white, and then output that memory-modified
image to the HTTP stream.
Where should I look for info or samples on ... more >>
Code in the HTML, bad idea?
Posted by Michael at 12/23/2003 8:38:59 AM
What is the general opinion of having code in the html section of an asp.net
page. For example..
<img src="<%=myImageString%>" />
I see something like that done many times in examples, but I'm wondering if
this is a good practice, or something to be avoided. If one of the goals of
asp.net... more >>
HO HO HO UserControls what's the Dealie-O
Posted by Santa at 12/23/2003 8:38:08 AM
I'm creating a webform this winter, and using multiple
usercontrols on the page. Each of these controls has a
textbox and button. When page gets postedback the button
I clicked event handler never fires.
What's the best method to handle this, I mostly just
pack gifts and things so any... more >>
Running an App in the background
Posted by Toby at 12/23/2003 8:29:08 AM
How do i create an ASP.NET application which executes in
the background regardless of who is connected to the web
server? For instance, i want to send an email out to a
list of users based on a timer. Thnx... more >>
Visual Studio HTML Designer
Posted by Dave at 12/23/2003 8:16:58 AM
Does anyone know how to turn off the glyphs in visual
studio designer?... more >>
Print Web Reports (impersonate)
Posted by Alvaro Pereira at 12/23/2003 7:52:48 AM
I have a ASP.NET project that prints a report to a NETWORK-
PRINTER. I have impersonate=true in my web.config, but all
reports are printed under ASPNET user (the one that is
setted in MACHINE.CONFIG).
I'm using Crystal Reports on WEB-SERVER, and it is running
FRAMEWORK 1.0 in Windows 2000 ... more >>
Cannot run ASP.NET in the browser
Posted by Vinit Kumar at 12/23/2003 5:59:37 AM
Hi all,
I installed .NET Framework (ver 1.0.3705) on my laptop
recently. I created the simplest of ASP.NET form having a
button and a label. When I build the application I get no
errors or warnings. But when I run the application in a
browser I dont see the controls. I can see the label
... more >>
Safari Display Problem
Posted by Jane Hawkins at 12/23/2003 4:43:14 AM
My asp.net-created page looks fine for most browsers, but on Safari the text
assigned to a label at the end of my file displays over the top of the
beginning text.
Any idea how I can fix this?
Thanks!
... more >>
Appplication_Start
Posted by Abc at 12/23/2003 4:05:08 AM
hi
When is the Global.application_start method called.
Thanks,
Reshma... more >>
Passing variables problem
Posted by acko bogicevic at 12/23/2003 3:40:12 AM
Hi i have a folowing problem
I have a textbox and a link.
When i click a link i would like to pass and value of the txtDeadLine,
but i do not know sintax.
Here is what i have:
<asp:TextBox id="txtDeadLine" runat="server" Width="100px"
CssClass="DDiText"></asp:TextBox>
<A
onclick="window.... more >>
pdf in the web browser
Posted by geetha at 12/23/2003 1:46:06 AM
hai friends
can any one tell me, how to display the pdf file in the web brower so that the user can take ONLY the print. (I should not allow the user to save the file). any sample codes?
Thanks
geetha.... more >>
sorry...me newbie...
Posted by josephtthomas at 12/23/2003 1:24:16 AM
i dunno how to...i am very very new at this.....pls gimme
some example and links...
tks a lot...really appreciate your help..... more >>
How to show user default 401 Error site ?
Posted by Gawel at 12/23/2003 1:01:49 AM
When I discover during runtime, that user have no rights to see a certain
site I would
like to show him this site : C:\WINDOWS\Help\iisHelp\common\401-1.htm
I thought that new HttpException(401, "ble") is enaough.
Maybe I have wrong configuration ?
Thanks in advance
Gawel
----------------... more >>
Pass aspx pages to designer
Posted by Carlo Marchesoni at 12/23/2003 12:47:28 AM
Ideally I would be able to give my aspx/ascx pages to a
designer which makes them nice and since I'm, using code-
behind he will not destroy my code.
But unfortunately he says that this format (aspx) is not
recognized by FrontPage - is there another tool that
designers like and allows to wor... more >>
|