all groups > asp.net > april 2004 > threads for wednesday april 14
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
Web User Control - calls to server side code
Posted by Dan Brussee at 4/14/2004 11:24:08 PM
I know, of course that client side stuff cant call server code
directly. What I am doing is putting in a basic LeftHand menu bar
using a user control that contains a datagrid composed of linkbutton
controls. I am populating this either manually (one item at a time
programatically) or via a DataB... more >>
HOW TO Use asp Include in ASP.NET ?
Posted by Tiraman at 4/14/2004 10:51:55 PM
Hi ,
can I use an asp (not aspx) file as include in my aspx files ?
lets say that I have a regular asp file that hold few functions , params
(dim x etc ....) and cost's
and i don't want to rewrite this file as aspx so how can i use it in my aspx
files ?
Thanks In Advanced
Tiraman .... more >>
Sesson_End in Global.asax
Posted by Alex Smotritsky at 4/14/2004 9:38:01 PM
Session_End doesn't seem to get fired when a user closes their browser
as I thought it would. Since this seems to be the case, how do I execute
code that I want executed when a user closes the browser?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in US... more >>
Syntax Highlighting / Code Completion for non-compiled apps
Posted by BLiTZWiNG at 4/14/2004 9:21:03 PM
I am currently creating a compile on demand asp.net application because I need to query a database and return only an xml string using Response.Write, but visual studio wont colour or give me intellisense in a .aspx file that doesn't have code behind
I assume there is no way to make it do that, bu... more >>
Changing the paste behavior in the HTML source editor.
Posted by Todd Burry at 4/14/2004 9:19:49 PM
When I cut and paste text in the HTML editor is there any way to get the
exact text that I copied to paste rather than having ID attributes
inserted into all of the runat="server" controls with no tags? There
just has to be a way to get the editor to act in this more
straightforward fashion. ... more >>
SessionID
Posted by Alex Smotritsky at 4/14/2004 9:07:50 PM
With cookie based InProc sessions Session.SessionID gets changed after
browser restarts as expected. Session.Abandon() and the session timing
out however results in no change in the value of Session.SessionID. Does
anyone know of a way to make asp.net provide a new Session.SessionID
without a br... more >>
whats the best way to do this?
Posted by suzy at 4/14/2004 8:42:54 PM
hi,
i am 3 xml files containing train timetables, the columns in each xml file
are "departuretime" and "destination". the difference between the 3 files
are they contain train times for 3 different train companies.
i want to display 3 columns (1 for each company), and display (in HTML) the
... more >>
close subwindow using vb.net
Posted by Marcel at 4/14/2004 8:23:05 PM
I have a subwindow hich displays a grid. When the user selects a row from
the grid, I wish to store the selected row ID in session state and close the
subwindow, returning focus to the parent (opener).
Normally I would do this in javascript, but I cannot find any client side
intelligence in th... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
define CSS for ListItem in CheckBoxList programmatically
Posted by Shaul Feldman at 4/14/2004 6:42:50 PM
Hello,
I have something really awkward at work - fighting with CheckBoxList...
How can I define CSS for ListItem in CheckBoxList programmatically.
I add CheckBoxList's Items on the fly, something like
dim li as ListItem
li = new ListItem("title","value");
'' how to define here the CSS for Li... more >>
DataBinder.Eval(Container.DataItem, "date") when date might be missing
Posted by bg at 4/14/2004 6:19:20 PM
Hi!
How do I check if "date" exists before using that code?
I've built a RSSreader and sometimes there's a date in it and sometimes not.
How can I check if it exists to avoid crash (DataBinder.Eval:
'System.Data.DataRowView' does not contain a property with the name date)
<asp:DataGrid
... more >>
Image control querystring params
Posted by Brian H at 4/14/2004 5:58:59 PM
Hi all,
I'm trying to add querystring parameters onto an ASP image control ImageUrl
property.
Basically, the aspx page defines the base URL (such as ImageUrl =
http://localhost) and the class is adding on paramters. But when I do this,
the parameters are getting HTML encoded... so for exam... more >>
n00b Help with Beginning SQL for ASP.NET App
Posted by newgenre at 4/14/2004 5:58:36 PM
I am using a pre-built package of code for my site, which is called
EasyDisc. All it does is it creates an interactive forum on your site, like
any forum you see anywhere.
I am having a problem getting started as I am new to .NET and sql. The app,
once unzipped, tells me to "Make note of your S... more >>
webparts & sqlclientpermission
Posted by António Pinho at 4/14/2004 5:45:35 PM
Hi,
I have a big problem with an webpart/assembly. i'm trying to connect to sql
server but i get the error "Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.". i've searched fo... more >>
Server tags cannot contain <% ... %> constructs
Posted by Marcos MOS at 4/14/2004 5:35:41 PM
Hi,
I've put a appSetting tag into my web.config, but when I try to catch its
value to my Image WebControl occurs the follow error: "Server tags cannot
contain <% ... %> constructs."
on myPage.aspx (Notice the ImageUrl tag):
<asp:Image id="Image1" runat="server"
ImageUrl=<%=System.Configur... more >>
Tooltip question
Posted by me NO[at]SPAM privacy.net at 4/14/2004 4:43:03 PM
Is there a way to change the "fadeout" of a tooltip? In other words, it'll
display for about 10 seconds which may or may not be long enough for a user
to read the tooltip. I'd like to programatically adjust it if possible, and
if that's not, I would like to increase the time duration.
Anyone... more >>
split tab string
Posted by Grey at 4/14/2004 4:41:25 PM
how to split the string which the separator is TAB.e.g.
string a =3D "abc bcd abc";
a.split('Tab');
Does it need to use some special character...which like vbTab in VB6...
Million Thanks... more >>
Parameter in a directorysearcher.filter?
Posted by Jay at 4/14/2004 4:36:29 PM
I need to add a parameter to a directorysearcher.filter rather than using
hard-coded text. I have the following code that finds all members of an AD
group and then for each of those results tries to find that users
samAccountName.
Perhaps I'm going about this incorrectly but I know if I could... more >>
Setting the SelectedIndex of a DropDownList in a Datagrid
Posted by K Bryan at 4/14/2004 4:34:07 PM
Hi There,
I have two datagrids on a webform both of which display DropDownLists when
edit mode is invoked.
That being said, does anyone have a generic or straightforward way in C# so
that when I go into the edit mode of a row, the dropdownlists display the
field values of that row? (They cu... more >>
Title Tag
Posted by Rob T at 4/14/2004 4:31:23 PM
How do you change the <title> tag on programmatically? (in VB.net)
Thanks.
... more >>
FindControl and repeater
Posted by MattB at 4/14/2004 4:30:58 PM
This is just a rephrased version of a question I posted earlier. I think I'm
closer now, so it seemed worthy of a new (more specific) post.
In my repeater I'm dynamically creating text boxes, so at compile time I
don't know what text boxes are going to be present at run time. This is
where it ... more >>
"Input string was not in a correct format." Error when returning DataViewRow as a form property
Posted by John Chorlton at 4/14/2004 4:01:07 PM
I've been attempting to pass a chunk of data back from a child Windows form using public properties on the form and have been getting some odd errors. I wanted to return a row of data to avoid creating many public properties on the form to do the same thing. At first I tried returning a DataViewR... more >>
Datagrid on two tables
Posted by Vik at 4/14/2004 3:51:04 PM
Is it possible to have a dataview and a datagrid based on two or more tables
in a dataset?
Thank you.
... more >>
Basic simple dumb question
Posted by ItNerd at 4/14/2004 3:19:37 PM
Someone PLEASE HELP ME!!!!!
All I want to do is a simple postback and grab the value from a textbox
on clicking a linkbutton like below, but the value is not writing to the
screen. I am frustrated with this seemingly simple task. I have
enabledviewstate=true on the @Page directive, and I ... more >>
Passing server control values between pages
Posted by Greg Decos at 4/14/2004 2:55:54 PM
Hi,
Any Idea how this can be done when the values to pass are
part of a web control?
Thanks
Greg
... more >>
QueryString and Frames
Posted by David Krussow at 4/14/2004 2:54:50 PM
I have three aspx pages that are displayed to the user in a frameset. One
aspx page holds title information and displays in the top frame, the aspx
page in the left frame lists products, and the aspx page in the right frame
shows product details.
When the user first opens the ASP.NET Web appli... more >>
Open Window, Please Help!
Posted by bucrepus at 4/14/2004 2:49:13 PM
I know response.redirect doesn't open a new page. I have read many posts on
how to fix this but I can't get the first one to work. Please help.. I have
tried on 2 diff dev machines with no success (VS 2003) ASP.NET Web appl.
with Java Script setting in design properties.
I created a simple app w... more >>
getting text from textboxes in a repeater
Posted by MattB at 4/14/2004 2:44:22 PM
I have a repeater control with text boxes in it that get built on the
fly based on values in web.config. Now I need to grab the text from those
boxes when the form is submitted. I can't just do something like testing to
see if the id is nothing, because that id isn't declared, so my app won't... more >>
Client Print PDF
Posted by Jim Ciotuszynski at 4/14/2004 2:24:59 PM
Does anybody know of a way to print a PDF on a clients browser without
opening the activeX PDF viewer (that is if the client has it installed.
TIA,
Jim
... more >>
Session_start is not called .... :o(
Posted by M O J O at 4/14/2004 2:21:21 PM
Hi,
I have a test application, that is a Web.config, a Global.asax,
default.aspx and a final.aspx page.
When a user enters my application, I want session_start to always
redirect him to the final.aspx page.
Here's my Web.config:
<configuration>
<system.web>
<identity impersonate... more >>
retrieve data from IFrame textbox
Posted by Jan Van Steenbergen at 4/14/2004 2:11:14 PM
Hi all
i'm having a little problem
I have a aspx file with a iFrame defined
The iframe is loaded with a html webeditor
After editing data in the webeditor textbox, i want t
get the data to a hidden field in the aspx file
What is the best way todo this
Is it possible to add some sample code b... more >>
Change style values in ASP.NET
Posted by Grey at 4/14/2004 1:50:32 PM
I want to know that is it possible to change the values of STYLE =
attributes.
I want to change the position of panel object when I click a =
button....is it need to use STYLE to change the position.=20
e.g.
style=3D"Z-INDEX: 102; LEFT: 80px; POSITION: absolute; TOP: 32px"
Million Thanks..... more >>
Variable Lifetime
Posted by bucrepus at 4/14/2004 1:49:37 PM
I created a simple asp.net web application, with a button.
I declared the var tmpStr
Imports ....
Public Class myClass
dim tmpStr as string
Private Sub Page_Load
check for postback and set tmpStr
if not ispostback then
tmpStr = "ABCDEFG"
'I debug check tmpstr here and it is "ABCD... more >>
When Page.OnInit is done and exited, can I be sure that ALL child controls have called OnInit as well?
Posted by pookiebearbottom NO[at]SPAM yahoo.com at 4/14/2004 1:11:00 PM
Just confused about when OnInit and Constructor gets called in the
parent/child case.
Page.Constructor()
Page.AddParsedSubObject() <- do all the sub's constructors get called
here?
Page.OnInit() Children.OnInit() (from what I have read, no particular
oder)
So where does CreateChildContr... more >>
Support for classic ASP
Posted by Sri at 4/14/2004 12:45:30 PM
Does anyone know when Microsoft would stop supporting ASP3.0, now that they
moved over to .NET ?
Thanks
-S
... more >>
First Try With DataList
Posted by Jim Heavey at 4/14/2004 12:41:11 PM
Hello, I am trying the DataList control for the first time and I am not
able to get the information to show up in the control.
I know that there is data in my data table.
My DataList has a field which is bound to a column in my data table with
the following code..
<ItemTemplate>
<asp:... more >>
Design Tab UI with ASP.NET
Posted by Grey at 4/14/2004 12:07:33 PM
how can I use ASP.NET to design the Tab strip like UI... more >>
How to retain the PASSWORD field values during postback?
Posted by sahoo NO[at]SPAM mississippi.org at 4/14/2004 12:00:09 PM
Hello,
I have a registration page where I am collecting user information
(username, password, last name, age, etc...). I made the password
field as PASSWORD (field type from the textbox). If user leaves any
field and presses the SUBMIT button, Then the edit checks are
performed and if any Error... more >>
static problem? Object reference not set to an instance of an object
Posted by Michael Meckelein at 4/14/2004 11:32:28 AM
ASP.NET 1.1, c# web application
I get an exception "Object reference not set to an instance of an object"
for the follwoing line:
myProductItem[0].ProductName = strProductName;
I have a class for product information "productitem":
public class productitem
{
public string ProductNam... more >>
Validation Controls
Posted by Murphy at 4/14/2004 11:10:13 AM
Is it possible using the validation controls to ensure the user enters
either a phone or mobile number and that it is exactly 10 numeric characters
?
Thanks
Murphy
... more >>
Error using RegisterClientScriptBlock
Posted by Steven K at 4/14/2004 11:05:54 AM
Hello,
I am trying to create a JavaScript function and am getting the following
error: 'jsFormValidation' is not a member of 'ASP.ciJava_aspx'.
Sub Page_Load(Sender As Object, E As EventArgs)
Dim ctrlValidate As String = tbxSubmitter.ID
Dim strFormValidation As String = _
"<script lang... more >>
VSLive experiences
Posted by Raymond Lewallen at 4/14/2004 11:05:44 AM
I am considering asking the government to spend your tax dollars to send me
and a few others to VSLive, possibly the Orlando in September. None of us
in my developer group have been to VSLive before, and was curious as to the
value of information received.
Thank you for any feedback regarding... more >>
setfocus eh ! help
Posted by jaffer the but at 4/14/2004 10:56:45 AM
Hi
whats the new alternative to setfocus in vb.net ?
thanks in antisipation - j
... more >>
Help With the Response Command.
Posted by Ric Pullen at 4/14/2004 10:49:38 AM
I'm using Crystal reports to display a page in PDF format now this works but
can take some time. I found a good example of how to dislpay a dynamic
"loading....." whilst the page loads. Unfortunately the two do not seem to
be compatible as it says
Server cannot clear headers after HTTP headers... more >>
Three headers needed in DataGrid
Posted by ericlangland NO[at]SPAM hotmail.com at 4/14/2004 10:18:03 AM
Hey there. I'm trying to figure out how to implement three headers
into my datagrid so that it looks like the following.
_______________________________________
| Header 1 |
|-------------------------------------|
| Header 2 |
|----------... more >>
multiple applications, same files...
Posted by stynan NO[at]SPAM missionmaker.com at 4/14/2004 10:07:29 AM
I have an ASP.NET web application that needs to be rolled out to a
number of clients.
The functionality is the same in all applications, but each client has
its own database.
At the moment, I have one application per client, but most of the
files in the applications are the same, so this is n... more >>
stopping the designer from working at all!
Posted by foldface NO[at]SPAM yahoo.co.uk at 4/14/2004 9:56:48 AM
Hi
If you place a class in the top of a aspx.cs file that isn't the main
class then the designer doesn't work. Good. I want to stop
the designer from being able to work so that it can't accidently
screw up my aspx formatting.
Is there a better way of doing this? I don't really want to make ... more >>
Help - directory access for ASPNET user
Posted by Hari at 4/14/2004 9:51:06 AM
Hi
I have an ASP.NET application that writes to a log file in a directory outside the webapp directory (e.g. c:\program files\myapp\logs). OS is Windows 2003
If I see the list of users in the "Security" tab for the 'logs' directory, I see that <localmachine>\Users already exists. Now, <localmach... more >>
javascript function call a asp.net sub procedure
Posted by Steven K at 4/14/2004 9:42:34 AM
Hello,
Can you call a vb.net procedure inside a JavaScript function? For example I
need to validate 20-30 fields using JavaScript and if everything flies, run
a vb.net procedure:
<script language="JavaScript" type="text/JavaScript">
function frmValidate(theForm)
{
strName = theForm.Reque... more >>
Problem ASP.NET to SQL Server
Posted by Tim Almond at 4/14/2004 9:34:26 AM
Already posted to sql server group but maybe some help here....
If I run my application, I get a 'database does not exist'. If I then go
onto the machine with the database on (different machine) and log in to
query analyser, I can then go back to the web browser, it connects fine.
Three mach... more >>
Problem with Validation on Deployed Solution
Posted by Lars Netzel at 4/14/2004 9:21:15 AM
I have made a simple webform (a form for adding/editing users) that has a
bunch of Dunamic RequiredFieldValidators.
When I develop locallay things run perfect but when I deploy my solution to
the Test Enviroment (via FTP) none of the validation works anymore. When I
press the Save button on th... more >>
Data Grid will not display
Posted by Leo at 4/14/2004 8:11:06 AM
Thanks for the Help in Advance!!
I am a beginner in VB.Net. I am trying to create a form which is displayed in a email for our customers to fill in a Request for quote. I would like them to type data into fields and have it added to the Datagrid.
I am constantly getting the error Column 'O... more >>
How do I insert multiple record in a loop with ado.net ?
Posted by Jeff at 4/14/2004 8:11:02 AM
I have to insert all Items of a listbox to a table ? How can I do that ? The code bellow always add the same first item to the table. must be another way to do this. Thank'
Dim Conn As String = "Provider=Microsoft.Jet.OLEDB......
Dim strSQL = "Insert into Documents (IdFiche, PathDoc) values (@IdF... more >>
Deleted .resx files, VS.NET no longer works
Posted by Cory Nelson at 4/14/2004 8:07:03 AM
Help! I accidentally deleted all the .resx files in my project, and now I
can't edit anything without VS.NET getting massive bugs. Is there a way to
re-generate these files?
... more >>
Storing Data objects for global access
Posted by ALPO at 4/14/2004 7:56:07 AM
WHere is the best place to store Data objects such as Adapters, Connection Strings, COmmand obejcts etc... I am thinking the web config file for the Conneciton String, can I also store the adapter and command defintions there?... more >>
Mulitple datafields in a template column
Posted by sonny at 4/14/2004 7:56:03 AM
Hi folks
This is what I would like to do
<asp:TemplateColumn HeaderText="Purchase Order"><ItemTemplate><asp:HyperLink
runat="server"
Text='<%# DataBinder.Eval(Container, "DataItem.ID1") %>'
NavigateUrl='page.aspx?var1='<%# DataBinder.Eval(Container, "DataItem.ID1") %>'var2='<%# Da... more >>
Passing Arrays to Javascript
Posted by hclarius at 4/14/2004 7:07:05 AM
I am populating a Session array from a database query. I would like to
transfer this array to a javascript array to avoid going back to the server.
How?
... more >>
Calendar control
Posted by Mark Goldin at 4/14/2004 4:58:21 AM
Is it possible to add a text or pictures to "days" cells of a Calendar
control?
... more >>
Add row to DataGrid
Posted by Yanir at 4/14/2004 4:11:03 AM
H
What is the common practice to add a new row to a DataGrid, So the "Lookand fill" will be consistent part of the DataGrid?... more >>
Session variables
Posted by Bonj at 4/14/2004 2:31:06 AM
I see Session variables time out after 20 minutes (or whatever number of minutes you define)
I want to have some variables that won't time out, but they only occupy very small amounts of data, say 10-20 bytes per user, so I think it won't too much of a performance impact to store it in the web serv... more >>
How to Stop the DataGrid Displaying when DataSource Is empty?
Posted by holy at 4/14/2004 1:51:05 AM
Hi
If the DataSource is empty, I just want to avoid showing the Empty DataGrid with Column headers. How can I do this
TIA
Holysmoke... more >>
|