all groups > asp.net > may 2004 > threads for thursday may 13
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
Master pages poll
Posted by Sasha at 5/13/2004 10:24:39 PM
Hi all asp.net proffesionals out there,
How do you implement master pages in your applications? What libraries do
you use and what have been your experience?
Sasha
... more >>
showModalDialog
Posted by Shaul Feldman at 5/13/2004 10:21:31 PM
Hello,
I'm trying to change the page in the modal window opened with
openModalDialog. The page change must be done from the modal window itself
WITHOUT postback. For now I have problems since it's not opening in the
modal window, but in a new window... I saw something about <base
target="_self"... more >>
ASP .NET Web Controls
Posted by codeWarrior at 5/13/2004 10:16:05 PM
I'm having trouble working with web controls from the C# code behind file
Some controls are accessible to me programatically, and some are not
For example, I trying to hide, or display an <asp:Table> on post back o
the page, here is my code
HTM
<asp:Table id="commentTable
runat="Serve... more >>
Display an image from access database
Posted by Eric Keung at 5/13/2004 9:41:03 PM
Hi all,
my case is I want to get an image from access database and I just know it's "OLE object" field type at access
I also don't know how to insert it into access
here is my code and it just can display a invalid image
try
dim strConn as string
strConn = "Provider=Microsoft.Jet... more >>
Getting Source Code from DLLs
Posted by SourceChallenged NO[at]SPAM aspland.net at 5/13/2004 9:17:04 PM
Can anyone point me in the right direction to extract my source files from a
DLL.
I had a hard drive crash on my dev machine and was not using source safe (
boo )
On the webserver I had just my .aspx pages and my dll
Can i get my source back from the dll ?
Robert.... more >>
Resources for flow of the web form...
Posted by Gill Smith at 5/13/2004 8:33:28 PM
I am looking for resources on the net which expalins how exactly the web
pages are processed. Somehow in my application part of the program is
causing the web form to post back and my page is getting resubmitted. I am
bit confused when exactly the page will be submitted. Can you please advice
me... more >>
CreateChildControls problem
Posted by popman at 5/13/2004 8:02:03 PM
I develop a class which inherits textbox class.and I override the
CreateChildControls method like code below:
Protected Overrides Sub CreateChildControls()
Controls.Add(New LiteralControl("<b>kkkkkkkkkk</b>"))
End Sub
But it didn't work.What's the problem?
Thanks.
... more >>
ASPX Performance - Slow?
Posted by BlueBall at 5/13/2004 7:31:32 PM
I am writing some kind of network testing tool and I have wrote the
following code in ASP.NET with C#
int size= 10048576; // around 10 MB data
string buffer = "";
for (int j=1; j<=1024; j++) {
buffer = String.Concat(buffer, "x");
// I tried buffer += "x"; sa... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Drag & Drop Question
Posted by theintrepidfox NO[at]SPAM hotmail.com at 5/13/2004 7:29:57 PM
Dear Group
I'm having two textboxes on a form, TextBoxA and TextBoxB.
In IE6, I can highlight the content of TextBoxA and just drag & drop
it to TextBoxB. The problem is that when doing this, the text
disappears from TextBoxA. Is there any way to keep the text in
TextBoxA e.g. if I simply wou... more >>
PostBack
Posted by ruca at 5/13/2004 7:26:09 PM
Can I force my page to do postback?
I have a page that only have links, but I wish that every time I click a
link that execute a function that I have in my code.
I know that with simple links, that postback does not exist.
I must have links and not link buttons, because I have to set the targe... more >>
Have IE prompt to save user name and password
Posted by Morten at 5/13/2004 7:10:30 PM
Hi!
I'm wondering what it is that makes IE prompt users to save user name and
password. I have a web site coded in C#/.Net and part of it is protected by
means of a form. When I key in user name and password I'm not prompted to
save this information. Lots of other web sites that I access give ... more >>
Set Page Size
Posted by Wayne Wengert at 5/13/2004 6:31:12 PM
In VSNET how do you set the overall size of a web form?
Wayne
... more >>
Smart Card Authentication
Posted by noodles at 5/13/2004 5:36:03 PM
I have a ASP.Net application, and I want to authenticate the user against a smart card. Can anyone help me out? Sample code would be great, but if someone could point me in the right direction that would be cool too
Thank
... more >>
How to add a Validator for a TEXTBOX with TextMode = multiLine
Posted by RSB at 5/13/2004 5:15:31 PM
Hi Guys..
its me again.. ;o))
now i have a TextBox with properties Textmode = singleline and MaxLength =
100. So this works fine and i cannot enter more then 100 Chars. But as soon
as i change the TextMode to MultiLIne the MaxLength gets ignore as it is
painted as TEXTAREA. so how do i add ... more >>
javascript inputbox and datagrid
Posted by Reza Alirezaei at 5/13/2004 4:39:02 PM
Is ther a way to insert output of a javascript inputbox into a datagrid in
asp.net application with c#?
... more >>
MailMerge dataset/datatable results with a local Word doc
Posted by Valerian John at 5/13/2004 4:35:59 PM
I am looking for tips/samples on how the records in a dataset/table can be
merged with a Word doc on the local PC. Perhaps using XML?
TIA,
Val
... more >>
Response.write tool
Posted by freewonga NO[at]SPAM surf.to at 5/13/2004 4:31:38 PM
Hi,
Is there a macro or add-on to Visual Studio.net that can easily
convert HTML to response.write statements with any "s escaped?
Handling <%=string%> inline script as concatenation would be helpful
too as I have an old ASP site to update that uses a lot of these in
functions. So you could h... more >>
DataGrid Examples
Posted by RSB at 5/13/2004 4:16:38 PM
Hi
do we have any good DataGrid Example.. e.g. How to customize the datagrid or
add your own controls etc etc.
Thanks
RSB
... more >>
How To include a js file ?
Posted by Stan Sainte-Rose at 5/13/2004 3:55:54 PM
Hi,
With asp, I used to use the following line
<Script language="javascript" src="<%=JsFile%>"></script>
I would like to know how this can be done with asp.net ?
Thanks
Stan
... more >>
Client/Server-side execution of code
Posted by Chris at 5/13/2004 3:53:49 PM
Hi,
1) is it possible for an asp-button control to execute client-side scripting
as well ?
2) and for an HTML-server control ? I would like to execute client-side code
, and then execute server-side code.
Thnx
Chris
... more >>
Use Server.Transfer in a try-catch
Posted by Mark at 5/13/2004 3:51:02 PM
Hello
I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop)
The problem is that the Server.Transfer always throws the ThreadAbortException. MSDN acknowledges that this is a unque exce... more >>
Asp.net web form vs7 generated info
Posted by R.A. at 5/13/2004 3:35:02 PM
Hi
Do I need the following lines?
<meta name="GENERATOR content="Microsoft ...">
<meta name="CODE_LANGUAGE" ...>
<meta name="vs_defaultClientScript" ...>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
This are generated every time I create a c# web f... more >>
Impersonation issue
Posted by Kallely Sajan [MVP] at 5/13/2004 3:33:42 PM
We have an Authentication COM component written using SSPI functions . The
component provides methods to Impersonate and Revert back to original
security context. When use this component in an ASP page to Authenticate and
then Impersonate the authenticated user, the identity is correctly set to
... more >>
how do I add an custom attribute to a listitem inside a dynamically created listbox?
Posted by John at 5/13/2004 3:29:27 PM
Hi everyone, I have a asp.net listbox (lstAvailable) that is populated via
as ADO DataSet.
[vbcode]
lstAvailable.DataSource = oDs
lstAvailable.DataTextField = oDs.Tables(0).Columns(0).ToString
lstAvailable.DataBind()
[/vbcode]
This works fine, but what I would like to do is for ea... more >>
question regarding redirecting through code...
Posted by Paul M at 5/13/2004 3:22:43 PM
hi there,
i have an <asp:button> control on my webpage that when clicked, i want to
redirect the HTTP request to an EXE file, but instead of actually directing
the browser and address bar to there, i only want the SaveAs box to appear,
to download the file, and the actual web page to remain th... more >>
ssl lock not showing when using aspx
Posted by R.A. at 5/13/2004 3:19:50 PM
Hi
I have the web pages developed using c#. When I change the http to https the
lock showing the secure site is not showing. Is there more beside changing
the http to https to convert the web page to secure?
Thanks
... more >>
How to Set focus?
Posted by IMRAN SAROIA at 5/13/2004 2:57:55 PM
Hi!
Please advise how to set focus on Windows and Web forms please.
I have tried
formp.Control..focus()
But it does not appear applicable.
Please advise!
Imran
... more >>
Need help with ASP
Posted by Kalie at 5/13/2004 2:56:05 PM
This is simple ASP page which is connected to Access database. When user enters data in English it enters into the database, but some of the user are requesting if they can enter data in Japanese. Right now if they enter in Japanese they get an error page. What will I need to do? To be able to accep... more >>
Regular Expression
Posted by Jim Heavey at 5/13/2004 2:55:19 PM
I am trying to find the regulare expression which will let me key anything
between 1-99, I thought [1-99], but this really only allows 1-9. What do I
need to do to get 1-99?... more >>
Re: cannot run .aspx file
Posted by jerri at 5/13/2004 2:45:16 PM
--
Regards, jerri
"jerri" <support@networkgc.com> wrote in message news:...
> but i dont have any web.config file with the folder itself
>
>
> --
> Regards, jerri
> "KIM" <mik.roman@globe.cz> wrote in message
> news:uLVzpQLOEHA.484@TK2MSFTNGP10.phx.gbl...
> > When you have <customErr... more >>
too many Questions.. How to Access a Field in the USER control
Posted by RSB at 5/13/2004 2:44:44 PM
Hi all,
Sorry for asking to many questions..
one more problem.
i have a Form and in that form i am adding a user control "myUserControl"
which has two text boxes. textbox1 and textbox2.
Now if i am executing a Javascript function right inside the user control ..
say again a validation ... more >>
How to Ignore the RequiredFieldValidator when i click on Cancel.
Posted by RSB at 5/13/2004 2:38:08 PM
Hi every one ,
i am creating this form and i have two asp:Linkbuttons one for save and one
for Cancel.
Now i also have some RequiredFieldValidators on this Form and i only want to
Execute those once i click on Save but not when i click Cancel.
Also for the Cancel button i am executing s... more >>
How to Ignore a Asp:Button or asp:linkbutton click
Posted by RSB at 5/13/2004 2:34:20 PM
Hi
I am executing a JavaScript Function for a Button and doing some custom data
validation.
Now i want to Ignore the Button Click if the Data validation Fails. i am
using return(false) in the JavaScript Function but that does not work.
Please help.
Thanks
RSB
... more >>
cannot run .aspx file
Posted by jerri at 5/13/2004 2:28:25 PM
http://www.geesegroup.com/
can any help me to figure out, what is happening? i cannot run my .aspx
i had properly setup the IIS and .NET framework 1.1
--
Regards, jerri
... more >>
Where does the list of DLLs in Add References come from?
Posted by Bob at 5/13/2004 2:09:16 PM
When you right click on References and select Add References in VS.NET, the
..NET tab on the popup window is populated with all the framework DLLs, and
some other DLLs. I would think this list is configurable. How do I make my
own DLLs to show up in this list without having to click on Browse..... more >>
Could not find installable ISAM
Posted by Sandeep at 5/13/2004 1:57:27 PM
Hi
I m using following lines to access a MsAccess Database its there
conn=new
OledbCOnnection("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\\DB1.MDB;Jet
OLEDB:Max Buffer Size=256;")
conn.open()
But its giving problem giving an error
Could not find installable ISAM.
What to Do
Plea... more >>
SSL Certificates
Posted by DaveF at 5/13/2004 1:35:52 PM
Can anyone reccomend a good company that does not cost an arm and a leg?
--
Dave
... more >>
Strange bugg with asp.net in Visual Studio
Posted by Andla Rand at 5/13/2004 1:29:35 PM
Hi,
I would appreciates some hints or help regarding a strange behaviour in
visual studio dotnet when using asp.net. I'm working with authentication
and somewhere in the process the framework goes nuts. Let me explain the
behaviour for you.
First you have a register page in the root of your pro... more >>
Send PDF to Printer Server Side
Posted by travis_newman NO[at]SPAM yahoo.com at 5/13/2004 1:11:33 PM
In C# .NET...I would like to write onto a PDF document with text from
the database(like www.tallcomponents.com), then send the PDF to the
physical printer in a looped batch print mode (50 PDFs total). I want
to do this all on the server side inside our network. Any help?
Travis Newman... more >>
Page Not Found on Postback
Posted by Nathan Truhan at 5/13/2004 12:56:04 PM
Hello
I am currently in the process of creating a web page to display and edit reporting data. It consists of a few label
with instructions, a Drop-Down-List and Button (Load) to select a report to display, when the user selects a report and clicks the load button it will perform a postback and p... more >>
ASP.NET Excel download defaults to HTML with XLS extension
Posted by A B at 5/13/2004 12:55:06 PM
Hello,
I have the following two lines in my VB.NET code to cause a datagrid to
output in Excel format:
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("Content-disposition","attachment;filename=HubXLOut.xls")
When I click the "Open" dialog box and then Save As ->, th... more >>
Disable Image Caching
Posted by Kamyar Souri at 5/13/2004 12:46:12 PM
How can I disable Image caching?
I use ASP.NET Image web control that it's ImageUrl is constant but the image
is being changed by the code. because of cachin I always see the same image
in my Image web control.
Thank you in advance.
... more >>
Newbie Question - ASP.NET Making Forms Similair to Access
Posted by Rob G at 5/13/2004 12:35:58 PM
Hi,
I am new to this so pardon the dumb question.
I have used MS Access and VBA programming for quite sometime. I am now
trying to learn new things and I've been reading the ASP.NET Developer's
Jumpstart book. So far it is pretty good.
I understand (a bit) about data binding to a DataGrid... more >>
Check if DB table has changed
Posted by mike at 5/13/2004 11:46:43 AM
I'm writting a q&a chat application and hae a small refeshing IFRAME to
check if there has been a new or modified chat item written, if so the main
chat window refreshes and the datagrid gets refreshed with the new data.
My problem is the "check if there has been a change in the Database"
does... more >>
Event Log
Posted by Z D at 5/13/2004 11:44:31 AM
Hello,
I'm currently using IISv6 & ASP.NET.
I was wondering what permissions I need to give to the identity my
application pool runs under in order to allow writing to the event log?
Currently, I'm unable to do so, however, if I make the account a member of
the admin group then I'm able t... more >>
Custom roles with AD and windows authentication
Posted by TS at 5/13/2004 11:42:21 AM
What are my options to implement custom roles and still authenticate with
active directory and windows authentication? I haven't seen any articles
saying how to do it, usually it uses forms authentication to do it.
... more >>
newbie question: interprocess communication
Posted by Dave Bartlett at 5/13/2004 11:36:38 AM
I need a simple way to signal an event from an ASP.NET page to a VB.NET
appliation running on the same machine.
This may be a stupid question, but can I use RaiseEvent to raise an event
that can be handled in a different process? Or do I need to look at
something like .Net Remoting?
Thanks
... more >>
Capturing Keystrokes
Posted by Rob T at 5/13/2004 11:03:20 AM
In the past, I've made several poor attempts at capturing keyboard strokes
with JS. Mostly, I would want to hit something like ALT-H or F1 for a help
screen....
Hitting the Alt key usually kicks you into the IE menu and doesn't really
allow me to trap the keystrokes.
So....on our new Excha... more >>
Parameter in function
Posted by simon at 5/13/2004 10:45:11 AM
I have functions dll includet in my project and inside I have payment
function with integer parameter.
This works:
<ItemTemplate>
<%=functions.payment(1)%>
</ItemTemplate>
How can I include dataField instead of 1, something like this:
(this example doesn't work)
<ItemTemplat... more >>
formatting buttons in datagrid
Posted by Lerp at 5/13/2004 10:42:42 AM
Hi all,
I have several template columns in my datagrid, is there an attribute that
sets the fore color for the text in these buttons...I would like them to be
black instead of the default link colors, or even better yet, can I use
custom images for my buttons and where would I find an example ... more >>
Oninit ( Init Event) of page / control
Posted by sourabh at 5/13/2004 10:42:30 AM
Hi
I was going thru a document on web page life cycle which says on page
initialization "A page's controls (and the page itself) are first
initialized in their raw form". I was trying to understand what excatly is
happening here.
Any links / documents which could give more comprehensive explant... more >>
Does data have to be bound to something to display it?
Posted by darrel at 5/13/2004 10:41:35 AM
I've been working on a few userControls that display data. I've been using
datalists and repeater controls for this. I bind the data to the datalist or
repeater, then display it.
However, sometimes I just need to pull up one record. Is it incorrect to use
a datalist or repeater to just show on... more >>
UI Design Question
Posted by Guadala Harry at 5/13/2004 9:50:20 AM
I have a need to display nodes in a hierarchy - an inverted tree of sorts -
but a bit more complicated than a simple tree or set of inverted trees. The
nodes I'm dealing with exist in a definite hierarchy, however any given node
can have more than one parent and can have multiple children (except... more >>
security considertations in deploying asp.net web apps
Posted by Andy Fish at 5/13/2004 9:47:36 AM
Hi,
I am about to deploy an asp.net web app which will consist of a web server
in the DMZ invoking web services hosted inside the corporate firewall. Both
will be hosted on IIS 5 or 6 using windows 2000 or 2003 server
I am well versed in the general security considerations for this type of
... more >>
Number of classes in the .NET Framework
Posted by Mark at 5/13/2004 9:15:58 AM
I have it in my head that I saw a marketing document from Microsoft with the
total number of classes and methods in the .NET Framework. Something like
70,000 methods? I don't need precise numbers, but a rough estimate of the
number of classes and methods would be useful ....
Thanks in advance... more >>
Re: How to Ignore a Asp:Button or asp:linkbutton click
Posted by Phil Winstanley [Microsoft MVP] at 5/13/2004 9:04:50 AM
Hi,
This should help: -
http://www.porjes.com/idocs/forms/_FORM_onSubmit.html
Phil Winstanley.
Microsoft ASP.NET MVP
... more >>
HTML Hex Encoding
Posted by cboekhoudt at 5/13/2004 8:13:56 AM
Does anyone know how and if it's possible to convert a
string like:
<div><a href="http://www.cnn.com">www.cnn.com</a></div>
<div>test string</div>
to something like this:
"\u003cdiv\u003e\u003ca href=\u0022http://www.cnn.com\u0022
\u003ewww.cnn.com\u003c/a\u003e\u003c/div\u003e\r\n\u003... more >>
DataBinder.Eval and fields with a dot in the name
Posted by Søren_Lund at 5/13/2004 8:06:50 AM
Hello,
I am trying to bind a DataGrid with some data from a DataSet which
contains fields in the form "group.fieldname". I am certain that my
data source contains the field but I cannot get my head around which
syntax to use when specifying which field to bind to the DataGrid.
I have tried
... more >>
Re: too many Questions.. How to Access a Field in the USER control
Posted by Phil Winstanley [Microsoft MVP] at 5/13/2004 7:23:31 AM
Hi,
At runtime on the ServerSide you can access the .ClientId property of
the TextBoxes, this will give you the ID of the controls as they will
be renered on the client, if you Write this in to your Script
dynamically then you should always get the right Id.
Hth,
Phil Winstanley
Microsoft... more >>
WebClient Class Method=Post
Posted by Paul J. Lay at 5/13/2004 7:16:01 AM
I am sending and receiving multipart messages using the WebClient UploadData
method Method=Post. Everything seems to work well except when the URL
contains parameters. For example:
http://www.someURL.com?parm1=data1&parm2=data2. I don't believe these
paramters are transmitted as part of the UR... more >>
Re: How to Ignore a Asp:Button or asp:linkbutton click
Posted by Phil Winstanley [Microsoft MVP] at 5/13/2004 7:14:02 AM
You need to return false to the Form's Clientside OnSubmit event.
Hth,
Phil.
... more >>
Re: Parameters
Posted by Phil Winstanley [Microsoft MVP] at 5/13/2004 6:30:15 AM
Hi,
The answer to this question all depends on your setup, could you
describe your situation a little more?
Thanks,
Phil.
... more >>
DataItem = Nothing in DotNetNuke
Posted by pierre NO[at]SPAM sentinal.co.za at 5/13/2004 6:29:03 AM
I recently installed DotNetNuke and started using it and it's
framework. One thing I have a problem with is that the CBO functions
(FillCollection) returns ArrayLists and this is then bound to
DataGrids etc. When you then access the DataGrid Commands there are no
value in e.Item.DataItem. What I... more >>
validate input in datagrid
Posted by mats at 5/13/2004 5:51:14 AM
Hell
My problem is that I do not know how to validate input that I let the user type into my datagrid
In one grid I let the user to type in a value into a template column - how do I make sure that this input is an integer on the client sid
In a diffrent grid I have an edit command column and the... more >>
Re: 2 problems with the RadioButtonList
Posted by Hamad at 5/13/2004 5:19:32 AM
Hello,
First Problem:
I couldn't maintain the state of the selected Item of th
RadioButtonList. That is, each time I select a radio button fron th
list the page postback and the elment that I've selected has bee
cleared!!!!!!!!!!
can any one solve this problem for me?? please...
Sec... more >>
Loading the session state from the database
Posted by svercuski NO[at]SPAM neo.rr.com at 5/13/2004 4:41:08 AM
Hello all,
I've got a question about session state. Is it possible to
declare and load a session into a session object from the sql server
database. Here's the scenario ...
I've got a website using SqlServer as the session state manager.
I've got a web service that I'd like to pa... more >>
Client side validation does not fire on deployment server
Posted by zzzzzz45 NO[at]SPAM hotmail.com at 5/13/2004 4:00:21 AM
Hi,
I've been having problems with the validation controls not working on
my deployment server. Initially it was a security issue with the
anonymous account not having permissions to access
/aspnet_client/system_web/1_1_4322/WebUIValidation.js but I think I've
now fixed this.
What is happe... more >>
sessionTimeout
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/13/2004 2:50:52 AM
Hi,
how can I set the sessionTimeout at runtime ? (so not using the value in web.config)
is the sessionTimeout only used when the sessionMode is 'InProc' ? or as well when mode = 'StateServer' or 'SQLServer' ?
thanks
Chris
************************************************************... more >>
Problem with datagrid checkbox
Posted by CaptRR at 5/13/2004 1:58:47 AM
Well, it seems as though every time I fix one problem I make yet another.
Anyhow, this is probably an easy one but I haven't found any answers
doing a search so I figured I would ask it here. I have a data grid
with check boxes in it, each check box called chkSelect. If I check
all the c... more >>
Form postbacks not in viewstate?
Posted by foldface NO[at]SPAM yahoo.co.uk at 5/13/2004 1:41:55 AM
Hi
I have only just become aware that form values posted to the server don't
need to be preserved in viewstate because asp.net preserves them anyway
separately from this.
2 questions
(1) What is the mechanism that preserves them? (Purely for academic interest)
(2) I have a property on a cont... more >>
HtmlOutputStream
Posted by Garnet at 5/13/2004 1:21:11 AM
Hello
I need to automatically send a user a copy of a report when they view it on a web application
I have been trying to do this with
System.IO.Stream stream = this.Response.OutputStream
byte[] buffer = new byte[buffer.Length]; //Length not support exceptio
stream.Read(buffer, 0, buffer.Len... more >>
updating database using parameters
Posted by Mark at 5/13/2004 12:40:42 AM
Hi:
I have an access db that I'm accessing via ASP.Net. I'm using WebMatrix's
wizard to write the tedious db query code using parameters.
Select, insert, and delete work fine using the database parameters. I
can't seem to get the update code to work. If I write my own code using a
standard ... more >>
OWC11 Spreadsheet layout help needed
Posted by Gerry Roston at 5/13/2004 12:05:53 AM
I have a rather simple ASP.NET program for displaying a formatted
spreadsheet. (Needless to say, there will be some data added!):
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim xlsheet As New SpreadsheetClass
Dim... more >>
|