all groups > asp.net > december 2004 > threads for tuesday december 21
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
asp.net datagrid questions
Posted by Sam at 12/21/2004 11:30:28 PM
hi folks,
1. how to set column width in datagrid server control?
2. how to set row height in datagrid server control?
3. how to display scroll bar in datagrid server control?
thanks,
... more >>
Redirect visitors to registration page
Posted by Paul Evans at 12/21/2004 10:46:30 PM
Hi,
I've set up forms based authentication. What I'm not sure how to do is
redirect visitors (who have not logged on) to the registration page, when
they request a web page they are not authorised to view.
Can anyone help me?
Thanks for your time
Paul Evans
... more >>
Response.Redirect
Posted by CCORDON at 12/21/2004 10:08:22 PM
Response.Redirect("MyPage.aspx") not working, it is loading the same page
only blank.
Please Help
Thanks
... more >>
Automatic Updates?
Posted by James Thomas at 12/21/2004 8:25:16 PM
Hello -
I have a web application done in ASP .NET and SQL Server that tracks
certain things for users. Currently, they must log on to be notified
when the items they have stored are getting ready to expire.
Some have asked if they could be sent emails such that they are
automatically notifi... more >>
how close window after redirect
Posted by Volodymyr Lozovoy at 12/21/2004 7:47:12 PM
Help novice
I open new window using window.open(), then user click button in this window
and i create file and return it user using Response.Redirect(fileName). How
i can close the window after that?
... more >>
Microsoft.Web.Ui.WebControls.TabStrip not rendering
Posted by DalePres at 12/21/2004 7:32:22 PM
I have an application that uses the Microsoft.Web.UI.WebControls.TabStrip
and Multipage controls. When I test the app on my pc or on my client's
development web servers the controls render properly. When I deploy the app
to the test environment - supposedly an exact duplicate of the developm... more >>
Debugging with Web.config
Posted by gaugust at 12/21/2004 7:05:02 PM
I am running Visual Studio .Net 2003 with Windows XP Pro and SP2. I am tying
to run an ASP .Net application in debug mode. In Web.Config file I have set
debug="true" but I am getting an error:
"Error while trying to run project: Unable to start debugging on the web
server. The project is not ... more >>
Keeping a page from timing out when waiting for a long running process
Posted by Steve W at 12/21/2004 6:40:49 PM
Is it possible to keep some communication going between the browser and web
server going while waiting for a long running process to finish ?
We have one function on our app (ASP.NET / VB.NET) that does a long running
update to the database (takes upto 10 mins) and the browser will often time
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Displaying data from database
Posted by Manny Chohan at 12/21/2004 6:35:02 PM
Hi Guys,
I have a quick question. i am storing long string of data in database with
links to images etc sort of like emails. What i do in codebehind is i write
the text to textarea sort of like
textarea1.text=bulletin.text;
the page is rendered fine however the images are not displayed in... more >>
show invalid field in a datagrid
Posted by Angela Chen at 12/21/2004 6:19:29 PM
I need to put a error mark beside any field that has an invalid value .In
windows form , I can use errorprovider,but how to do it in asp.net web form?
Thanks
... more >>
ASP.Net on server with Sharepoint 2003
Posted by Robin at 12/21/2004 6:03:13 PM
I am trying to get a virtual directory ASP.Net application to work on a
Windows 2003 server that has Sharepoint 2003. I have followed the Microsoft
knowledgebase but the error message below still occurs.
http://support.microsoft.com/default.aspx?scid=kb;en-us;828810
What other changes are re... more >>
new update for windows 2000 server causes problem (aspnet_wp.exe can not start)
Posted by Darren Li at 12/21/2004 5:40:22 PM
After I update the windows 2000 server with microsoft newest update. The
ASP.NET application can not be run. It shows "Server Application
Unavailable".
I check the event log, the error says "aspnet_wp.exe could not be started."
Anyone can help me? >"<
Darren L.
... more >>
Jscript Quicke
Posted by Craig G at 12/21/2004 4:34:49 PM
again novice attack here
how in javascript can i check the value of a field then if its null throw an
alert then exit out of the function
this is my attempt, but it wont work:-
if (document.getElementById('txtAddress2')=null) window.alert("Town must be
populated") return;
Cheers,
Cr... more >>
Integrate Reports in ASP.Net Web Form
Posted by Kiran at 12/21/2004 4:01:29 PM
Hi,
I have my reports at http:\\localhost\ReportServer and need to use them in
ASP.NET Web Form.I have a few questions reg. this
------> I want to generate a PDF when a button labeled "Generate Report" is
clicked"
(1) I tried this using the below code:
Dim myResponse As Byte()
Dim u... more >>
Runtime DataGrid formating
Posted by Tina at 12/21/2004 3:43:26 PM
I have a datagrid where I specified {0:###,###,###} at design time. However
sometimes I am putting percentages in the grid instead of money and I want
to change the formating to {##%}. I've looked over the docs on such things
as the dataformatstring porperty of the boundColumn but still can'... more >>
COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is either not valid or not registered
Posted by Baski at 12/21/2004 3:20:09 PM
I have developed an ASP.Net web site in VS2003 on a Win2K server that
executes a DTS package in SQL
When I upload the project to my web server (2003 Web Edition that connects
to a remote SQL server) I get the following error:
COM object with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} is eith... more >>
Create an Outlook Appointment
Posted by chuckdfoster at 12/21/2004 3:08:45 PM
Is there a way to create an New Outlook Appointment from an ASP.NET
application? I would also need to check if Outlook is running first. Any
suggestions, advice?
... more >>
Where's Microsoft.Web.UI.WebControls.dll?
Posted by Kenneth P at 12/21/2004 2:37:06 PM
Hi,
I've downloaded the IEWebControls.exe file, I've installed it, I've run the
Build.bat and I can't find the WebControls.dll.
Where is it?
I've searched the whole computer but it doesn't exist. I've done it on
several computers.
What am I doing wrong?
TIA
Kenneth P... more >>
DNS error with every page in my app
Posted by at 12/21/2004 2:37:04 PM
Just deployed a new application, and am receiving an "Cannot find server or
DNS Error" error for every aspx page. All other ASP.NET apps are working
fine, as are both asp and html, as does a small little one-page test .NET app
I wrote to test things out. It's just this one particular app that'... more >>
can a Modal Dialog post back to itself?
Posted by Craig G at 12/21/2004 2:29:39 PM
i have a page with a grid that is opened in a modal dialog. when it posts
back it opens a new window for the page
can it postback to itself? i tried setting the target of the form showing
within the dialog to "_self" but no joy
Cheers,
Craig
... more >>
Override Render method in Label Control
Posted by Jason Dean at 12/21/2004 1:53:56 PM
Hello,
I have a simple asp:label control that I want to write some complicated HTML
to. Currently I have this code and it works fine:
myLable.Text = "<p>this is my text</p>"
Bust as my HTML gets more complicated I want to be able to use the
HTMLTextWriter to write the HTML like so:
... more >>
Session problems
Posted by Efrain Flores at 12/21/2004 1:22:06 PM
Hi
I am experimenting session problems in ASP.NET. I am developing a data entry
system composed of 3 different aspx pages. The values entered on the form
fields are stored in sesion variables. These values are saved when the user
presses the Next page button. This applies for the 3 pages. Once... more >>
ASP.Net Controls and Javascript
Posted by Jim Heavey at 12/21/2004 1:17:05 PM
I used some javascript to move entries from one ASP.Net ListBox control to
another ASP.NET Listbox control.
On the client side all appears fine, but when I click a button which causes
the page to go back to the server, the items which I placed in the ListBox
control do not show up in the Li... more >>
how is this done
Posted by Mike at 12/21/2004 1:15:01 PM
When I go to some web sites and click on a link the URL looks like this:
www.somewhere.com/something?varaible=something and that takes you to the new
page.
what is the code behind this to make this work like this? www.msn.com has
links like this as well.
... more >>
Back in Browser
Posted by Mariame at 12/21/2004 12:58:41 PM
Hi Everyone
Is it Possible to disable the back button in the browser ???
or when a user click a back button in his browser take him to a different
page using a script????
Thx in Adv
... more >>
drop down list: size
Posted by Ian Oldbury at 12/21/2004 12:18:16 PM
Hi all,
i'm trying to define the number of items that are shown at a time on a
dropdownlist. Ideally i'd like to do this within the css class if possible.
How is this done??
This the control....
<asp:dropdownlist id="ddlRange"
runat="server"
autopostback="true"
cssclass="DropDownBox... more >>
User Control (Winforms) doesn't display in web page. looks like unloaded image
Posted by Joe at 12/21/2004 12:10:03 PM
I created a user control that I need to use in a web page but the control
doesn't display. I added it to my page using:
<object id="testcontrol"
classid="http:TestControl.dll#TestControl.UserControl1">
all I get is a page with a box that looks like an image that didn't load.
This control re... more >>
Control Tab Movement in CustomValidation Script
Posted by kpg at 12/21/2004 11:45:55 AM
Hi all,
This should be simple...
I have a TextBox1 and a customvalidation control linked to it.
I use a client side script to validate the textbox.
If the data is not valid I want to return focus to the textbox.
I tried document.GetElementByID("TextBox1").focus(); and
doucment.Form1.TextBo... more >>
Clearing a dropdownlist in the code behind
Posted by PK9 at 12/21/2004 11:17:07 AM
Can someone help me with the syntax for clearing (removing) all items out of
an asp:dropdownlist from the code behind? Is there a clear method?
--
PK9... more >>
what is worng with this JScript
Posted by Craig G at 12/21/2004 11:15:53 AM
i havent a clue about javascript, i found a small snippet for launching a
datetimepicker, ive used the following to successfully open a small dialog
window for a calender. i want to do something similar for postcodes
this is the calender code and it works fine
var popUp;
function OpenCale... more >>
Help with FindControl method
Posted by Joe at 12/21/2004 11:07:03 AM
Hi,
Tried using the FindControl() but no luck in finidng this damn textbox
having id txtFirstName. Can someone help me with this method?
This is what I have been doing but it doesn't work,
Dim txtFName As TextBox
txtFName = CType(myDataGrid.FindControl("t... more >>
Singleton in web service?
Posted by Bob at 12/21/2004 11:05:04 AM
Does anyone know of any adverse affects of using singleton data access
objects in an ASP.NET Web Service? I've been forced to implement it this way
but it just doesn't seem right to me. I haven't been able to find a single
example of someone doing it this way and that's usually not a good si... more >>
download dialog box
Posted by ACaunter at 12/21/2004 10:47:01 AM
Hi,
when the download dialog box opens and i click save or open or cancel..
everything works fine.. but then it's stuck in memory or something, because
nomatter what button, listbox, combobox, etc.. i click on next.. that
download dialog box keeps coming up...
why is that???
--
AdamPC@ho... more >>
NULL value
Posted by simon at 12/21/2004 10:45:07 AM
I have item template:
<ItemTemplate>
<%#
writeProcent(DataBinder.Eval(Container.DataItem,"strosekProcentBrez")) %>
</ItemTemplate>
and function in code behind:
Protected Function writeProcent(ByVal vrednost As Decimal) As String
If vrednost = 100 Then
... more >>
set window size and position
Posted by ACaunter at 12/21/2004 10:37:09 AM
Hi,
I was wondering if there was a way to set the browser window size and
position of my asp.net website.. also if i could hide the address bar and
buttons...
this way i would have more room on my page for all to see...
thanks for the help!
--
AdamPC@hotmail.com... more >>
hyperlink and dynamically formed NavigateURL problem
Posted by Tomek R. at 12/21/2004 10:03:28 AM
Hello !
This post does'nt regard column hyperlink.
I just have single hyperlink and want to create it's NavigateUrl
dynamically.
This is my test page
<form id="Form1" method="post" runat="server">
<asp:HyperLink id="MyHLink" NavigateUrl='<%# geturl("123456") %>'
style="Z-INDEX: 101; LE... more >>
Postback question
Posted by Jeti [work] at 12/21/2004 9:55:11 AM
I override IPostBackDataHandler interface, and implement my code in the
following method:
public bool LoadPostData(string postDataKey, NameValueCollection
postCollection)
{
}
by default, this method returns "false"... what does this return value
affects? i tried to return "true", but nothoi... more >>
Getting user IP Address
Posted by Greg Smith at 12/21/2004 9:49:49 AM
I have been using the following to get the client IP address:
Request.ServerVariables["REMOTE_ADDR"]
All of a sudden it has started returning
127.0.0.1 all the time. Does anybody have any idea why this would happen?
Any help is greatly appreciated.
... more >>
Datagrid - Adding columns programmatically
Posted by JenC at 12/21/2004 9:23:05 AM
Hi,
I need to add columns programmatically to a datagrid I have on my ASP page.
I have approx 6 bound columns and I would like to add a few columns
dynamically. Basically they are calculated values (i.e. (value/No days) *
days in month).
Any help on this would be much appreciated as I se... more >>
Q: update table through datagrid
Posted by JIM.H. at 12/21/2004 9:05:04 AM
Hello,
I am bringing a table through a data grid. Some of the field in this data
grid have nothing in it and I need users type something there and click a
button to update table.
Is there any example for this? I am using visual basic asp.net
Thanks,
Jim.
... more >>
Some architecture advice
Posted by V. Jenks at 12/21/2004 8:26:31 AM
I apologize if this is the wrong forum for this, I could
not locate one that was exactly appropriate for this topic.
Over the last couple of years I've been doing a lot of
reading on design patterns and different types of
architectures for building high-performance, scalalble
n-tier apps.
... more >>
Sample for supporting file attachements
Posted by Ryan at 12/21/2004 8:25:33 AM
I am new to web programming and have a need to support file attachments...
is there any samples/tutorials on how to do this?
... more >>
Refresh Page??
Posted by ACaunter at 12/21/2004 8:15:03 AM
Hi all,
I loop through a folder in my asp.net program and display all the images.
included with all the images is 1 word document which gets downloaded.. i get
the download dialog box to come up and i can open or save the file.. but then
it gets stuck on that function.. No matter what butto... more >>
ASP.net TabStrip
Posted by Damien at 12/21/2004 8:05:35 AM
I'm need to use a TabStrip in a Web application, and many source i
found on the internet drive me to Microsoft IE WebControl. But when i
try to download then at referenced url, i'm redirected on the 404 page
of msdn site.
Dowload URL =
http://msdn.microsoft.com/downloads/samples/internet/ASP_DO... more >>
Pop Up Window..ASP.NET
Posted by seep at 12/21/2004 7:56:49 AM
Hi,
I have a webform with a button.
When the user moves their mouse over the button.. I would
like to initiate a mouseover event that shows a small
window with text.. The text will be populated from a
dataset...
Does anyone here know how to do this?
I have code that does the mouseove... more >>
dataview find?
Posted by oscar at 12/21/2004 7:31:07 AM
i've created a search function, using vc#, and i'm using the dataview.find()
method to get the index of the found record. the problem is that there are
many similar names. it always returns the same index, but it can be any one
of the items. as an example, if i type in the work "bolt" it wi... more >>
Weird stack trace
Posted by Vishal at 12/21/2004 7:13:00 AM
Hello,
I have uploaded my website from VS to my server and
unfortunaly there is an error when I visit the website.
However the stack trace of the error still points to my
local directory. It says something like this:
NNTP.readpost.BindData() in E:\NNTP\default.aspx.vb:44
NNTP.rea... more >>
Page no..
Posted by yugant NO[at]SPAM gmail.com at 12/21/2004 7:01:53 AM
Can i go directly to page no say..6 if i am using the grid control i asp.net.
Thanks
jazz... more >>
INSERT statement conflicted with COLUMN FOREIGN KEY
Posted by Tim::.. at 12/21/2004 6:57:03 AM
Can someone please tell me why I keep getting the following error from the
code below!
Error: INSERT statement conflicted with COLUMN FOREIGN KEY constraint
'FK_tblOfficePageContent_tblPageContent'. The conflict occurred in database
'CPNCMS', table 'tblPageContent', column 'pageID'. The sta... more >>
ADO.NET Adapter.Update() what's wrong in my Code
Posted by Peter.Doring NO[at]SPAM ua.net at 12/21/2004 6:10:03 AM
I will be add Data in my Example Database. I have this Code by a ASP.NET Book but this will not work. Error message: Operation must be a actually Query use.
Error in: adapter.Update(dataset,"Authors");
My Code:
private void bt_add_Click(object sender, System.EventArgs e)
{
OleDbConne... more >>
Problem with dynamically created template columns and updatecomman
Posted by Suma at 12/21/2004 5:03:05 AM
I have a problem with editable datagrid and was hoping if anyone could help
me. Please help me if possible.
I have an editable datagrid, whose column count I don’t know until runtime.
I am sure of 3 columns Id,Name and Description.
But there also might be more. So I add these 3 columns ... more >>
Framework conflict??
Posted by Problem doesn't solve at 12/21/2004 3:49:02 AM
Hello.
I'm having a big problem with asp .net. Initially, when I create a new web
applicaction and I try to open an aspx page, I get an error message:
It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by ... more >>
must be placed inside a form tag with runat=server with inheritanc
Posted by trinitypete at 12/21/2004 3:49:02 AM
Hi all,
I have searched this error but none of the posts seem to reflect my situation.
I have a base aspx page that all other pages inherit from. I know than none
of the HTML is inherited only the code behind. I do know under normal
circumstances adding a placeholder resolves this but as U... more >>
Using custom sink and cookies from ASP.NET application
Posted by otto at 12/21/2004 3:17:09 AM
Hi, all:
My question is as follows. I have one ASP.NET application that comunicates
with a remote object hosted under IIS throught .NET Remoting. I have to use
custom sink in order to add extra information to every call to the remote
object. I have developed a dll file to create my custom sin... more >>
Memory management problem
Posted by samik at 12/21/2004 12:45:04 AM
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim a As ArrayList, i As Long
a = New ArrayList
For i = 1 To 1000000
a.Add(10)
Next
E... more >>
|