all groups > asp.net > february 2006 > threads for wednesday february 22
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
GridView and HyperLinkField
Posted by dm1608 at 2/22/2006 10:58:46 PM
I have a GridView that is displaying a field as a hyperlink. I would like
to add an onclick event to open another browser window using javascript.
How can I accomplish this? I can do this successfully with just a simple
HyperLink control. The HyperlinkField for a GridView doesn't compile wi... more >>
Dynamic Controls and MasterPage Problem
Posted by dawg1998 at 2/22/2006 10:52:49 PM
I have a page that creates dynamic textboxes based on the number of
fields a user chooses to fill out. Basically, I am able to create the
controls via this method (with other details):
Dim txtbxTextBox as New Textbox()
Form.Controls.Add(txtbxTextBox1)
Then, when the page is submitted (via P... more >>
need to have 'validation group'
Posted by Lloyd Dupont at 2/22/2006 10:49:13 PM
On my page the user is ask to set of question.
Say there I have 2 controls like that
== pseudo-C#-code for my control ==
class MyControl : CompositeControl
{
TextBox text;
LinkButton button
override void CreateChildControl()
{
text = new TextBox();
text.ID... more >>
Checking the contents of the ViewState?
Posted by Tarun Mistry at 2/22/2006 10:30:09 PM
Hi there, is there a simple way to check if something is in the viewstate
without getting null pointer errors?
I.e. obviously the "exisits" method doesnt exisit, i have just put it there
to explain my point
if(exisits(ViewState["something"] ))
{
}
All my attemps seem to cause object i... more >>
MSDataSetGenerator Failed
Posted by Joe Reggae at 2/22/2006 8:50:36 PM
In a Windows Forms project (c#, VS2003) I have a dataSet problem I don't
understand. Opening the project, this error displays in the VS Task List
area ...
"The custom tool 'MSDataSetGenerator' failed while processing the file
'dsMain.xsd."
In the VS Solution Explorer I have three dataSet... more >>
Is there a way to bind a simple Table or similar to...
Posted by Jaybuffet at 2/22/2006 8:23:27 PM
a custom object. Similar to how I bind a collection of objects to a
repeater. Is there a way to bind a single object to a Table? I could use a
repeater, but seems over kill for a single object.
Thanks for any help.... more >>
What is the best hosting service for ASP.NET 2.0 and SQL Server
Posted by Brooke at 2/22/2006 7:38:08 PM
I am looking for some advice as to which hosting service to use for ASP.NET
2.0 and SQL Server development. I have looked at GoDaddy, BoundGrid,
Interland and a few others but I still haven't made a decision. I also
haven't been able to find a decent service that supports SQL 2005, most
su... more >>
Force different page to postback.
Posted by Shawn at 2/22/2006 7:30:21 PM
Any ideas how I can have a button click on one open page force a postback on
a different page.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
String.Replace() in .net 1.1 did not work!
Posted by Andrew at 2/22/2006 7:21:27 PM
Hi, guys,
The following source code in Page_Load() did not work:
string pathVal = "2006\";
pathVal.Replace("\\", "/");
I still had the value "2006\", not "2006/", the one I expected.
I then tried the second line as:
pathVal.Replace('\', '/');
still no luck.
Any ideas? Thanks.
... more >>
Set application variable from a class
Posted by Grant Merwitz at 2/22/2006 7:20:07 PM
Hi
I am trying to set an application variable from a class file in my website.
Currently, the class file inherits from System.Web.UI.Page
I also referenced all the namespaces a normal webform would.
However, when i try save my application variable like such:
Application["test"] = "hel... more >>
Using objEncoderParams when saving an image
Posted by darrel at 2/22/2006 7:09:56 PM
I'm currently saving a JPG file as such:
imgOutput.Save("path/filename.jpg", System.Drawing.Imaging.ImageFormat.Jpeg)
That saves the imgOutput as a JPG to the path shown.
Works fine.
Now, I'd like to change the JPG compression it uses. I apparently can do
that with an EncoderParameter:... more >>
mobile web forms
Posted by Andreas Bauer at 2/22/2006 6:09:58 PM
Hi,
I've just create a mobile web form with visual web developer express.
But when I try to run it, it shows just up the default.aspx. But when I
enter start.ascx (the mobile page) I receive this error:
Server Error in '/tourist' Application.
This type of page is not served.
Description: T... more >>
Putting a hyperlink in a Calendar Control
Posted by Tina at 2/22/2006 5:58:34 PM
This does not work...
Private Sub calWO_DayRender(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DayRenderEventArgs) Handles calWO.DayRender
If e.Day.Date.Day = 18 Then
Dim myControl As New LiteralControl("<a
href='http://www.google.com'></a>")
e... more >>
Easy way to store page state for later requests.
Posted by Shadow Lynx at 2/22/2006 5:26:14 PM
I realize that his question has been asked, in many other forms, many
times in this group. Even so, my tired eyes have not yet found a
sufficient answer, so I've decided to "reask" it even though I'm sure
this will offend some of the more seasoned verterans of this board.
The Players:
Cons... more >>
Help: ASP.NET GRIDVIEW problem
Posted by Progman at 2/22/2006 5:18:19 PM
I save comments including its carriage-return linefeed from an ASP.NET
textbox to a Varchar(200) field in an SQL Server Database.
I show these records in an ASP.NET gridview with other columns (nae, city,
country, etc). The comment appears on one row.
How can I get multiline in a gridview.... more >>
SqlDataSource - how get first row in SELECT?
Posted by VB Programmer at 2/22/2006 4:45:30 PM
I have a sqldatasource on a webform. How do I (in code) retrieve the value
of a particular column in the first row? Do I have to save the
sqldatasource SELECT results into a datatable and look at it that way? A
code sample would help.
Thanks!
... more >>
BUG: ASP.NET 2.0 FileNotFoundException
Posted by Alan Samet at 2/22/2006 4:30:14 PM
I've just started getting random exceptions of type
FileNotFoundException on a framework I've ported to ASP.NET 2.0. The
exact message of the Exception is as follows:
Could not load file or assembly 'App_Web_tim3bwzz, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its depende... more >>
Textbox.text not getting value
Posted by seanmle NO[at]SPAM gmail.com at 2/22/2006 4:26:13 PM
I am using javascript to clear a textbox. After the users clicks on the
button to clear the textbox via javascript, the user then enters in the
new text and clicks on save. When the save button is click, the click
event on code behind is trigger but the textbox.text is "", not the
value the user... more >>
Textbox.text not getting value
Posted by seanmle NO[at]SPAM gmail.com at 2/22/2006 4:26:06 PM
I am using javascrip to clear a textbox. After the users clicks on the
button to clear the textbox via javascript, the user then enters in the
new text and clicks on save. When the save button is click, the click
event on code behind is trigger but the textbox.text is "", not the
value the user ... more >>
How to disable security questions in user accounts?
Posted by Tomas Machala at 2/22/2006 4:16:55 PM
Hi,
How do I disable security questions in accounts in ASP.NET 2.0?
Thanks.
... more >>
Website Administration Tool
Posted by qwende NO[at]SPAM yahoo.com at 2/22/2006 4:01:59 PM
I just tried to manage individual pages using the website
administration tool, but instead of seeing the individual pages I only
see individual folders when looking at my website via the tool. How do
I set access roles using this utility for individual pages?
This is what I do:
1) From VS: ... more >>
How to load a Javascript file in Asp.Net 2.0?
Posted by Miguel Dias Moura at 2/22/2006 3:44:19 PM
Hello,
I have MyPage.aspx created from a master page.
I want to load the MyPage.js with javascript functions.
How can I load this file in my runtime code, i.e., MyPage.aspx.vb?
I am working in Asp.Net 2.0.
Thank You,
Miguel
... more >>
Problem with making GridView Visble and Invisible. I am on this for 1 week. Need help. Thank You.
Posted by Miguel Dias Moura at 2/22/2006 3:39:25 PM
Hello,
I have a GridView in my page which is created in runtime. It works fine.
My page has 2 Asp Buttons:
- The HIDE button makes GridView.Visible = False;
- The SHOW button makes GridView.Visible = True.
I press HIDE and the GridView disappears as expected.
After it I press SHOW and th... more >>
2.0: Merge all assemblies/output into one DLL without .compiled files?
Posted by Stu Carter at 2/22/2006 3:17:25 PM
Hi,
ENV: VS 2005, .Net 2.0
Our goal with ASP.Net 2.0 is to distribute one assembly that contains all
the output of our Web; simplifying deployment, installation, upgrades, hot
fixes etc.
We've tried our hardest but cannot find a way to do it. The closest we've
got is having a single ... more >>
Alternative to Session State
Posted by Mujir at 2/22/2006 3:00:27 PM
Hi,
I have used Session variables in my ASP.NET 2.0 application to save data
across multiple pages. My production environment does not allow me to use
session state.
I have to find an alternative way, ViewState will not be of much help. can
somebody help me by suggesting a good way to solv... more >>
Need Value support for <asp:CheckBox>
Posted by Chaprasi at 2/22/2006 2:44:02 PM
hey guys
How can I get a value property for the checkbox, I don't want to use
the checkbox list.
Help is appreciated.
Thanks,
Chaprasi Bhai
... more >>
Problems with Thread Impersonation
Posted by Matthias Wohlmann at 2/22/2006 2:38:37 PM
Hi,
I've got an ASP.NET Web-Application written in C#.
In IIS 6.0 (Windows Server 2003) I have set the application to allow
anonymous access, but instead of the default user I use an own
windows-user account. That account does not have too much rights (just
access to the application director... more >>
Newbie Question About Crystal Reports in Web App
Posted by Ren at 2/22/2006 2:25:57 PM
Hi All,
I have an existing HTML report in my web application that I need to convert to a
Crystal Report. I've been looking at examples of how to create a CR on the web
and all the examples show the report data being pulled from a database or a
dataset. The data in my report is all calculated... more >>
Where to put App.config
Posted by WT at 2/22/2006 2:11:51 PM
My web site is using a library created in a separate project.
VS 2005 has created for it an App.config file.
The library is included as a refernce in my web site.
When I copied my web site to it's destination the app.config has not been
copied by vs 2005. The library itself is in the bin direct... more >>
ASP.NET 2.0 Easier than ASP? Gimmie a Break!
Posted by dm1608 at 2/22/2006 1:46:51 PM
I know all the hype right now from Microsoft is how much easier, faster, and
less code ASP.NET 2.0 provides over previous versions. I'm puzzled by this
as I could turn out an classic ASP webpage in a few hours to query a
database, display a grid/table, and not have much to worry about. Doin... more >>
.Net 2.0 - Application Event Log
Posted by Garth Wells at 2/22/2006 1:38:57 PM
What's the easiest way to write to the Application Event Log
using C# in .Net 2.0?
Thanks
... more >>
graphas and charts in ASP
Posted by Cimento Cola at 2/22/2006 1:18:46 PM
Hello everyone!
Can anybody point me to some help about builting graphs in ASP?
I´m trying to build pie and/or bar graphs like the ones in
http://www.hanengcharts.com/Chart_Gallery.asp
I´ve downloaded a trial version and it works great, but one has to pay to
have
it...
Does anyone know of ... more >>
Possible to open Word document in specified-size window?
Posted by Doug at 2/22/2006 1:06:36 PM
When opening a DOC file via a hyperlink, is it possible to force
Microsoft Word to open in a specified-size window? For example, a
600x300 window?
I realize that MS Word will 'remember' the window size and placement
from the last instance that was created/exited.
Help is appreciated. Than... more >>
How to stop interpolation of Escape character in variable?
Posted by \ at 2/22/2006 1:02:38 PM
I have this code.....
<script language="JavaScript">
function getLogonUser() {
var u = '<% Response.Write(
Request.ServerVariables("LOGON_USER") ) %>'
alert( u )
}
</script>
......should return "MYDOMAIN\rob.test".....but the "\r" turns into a
Carriage ... more >>
asp:CreateUserWizard
Posted by BobLaughland at 2/22/2006 12:45:19 PM
Hi All,
I have an asp:CreateUserWizard control.
Whenever I enter a user and password it tells me that I have to have a
'non alpha numeric' character in the password.
E.G. I cannot have '123werwer' it has to be '123werwer_'
Is there a way to remove that restriction?
Thanks,
Peter.
... more >>
HTTP1.1 500 Server Error
Posted by llevi at 2/22/2006 12:44:47 PM
I've had this error for months:
When trying to open a new asp .net project under .net 2003, i get the
following error:
The Web server reported the following error when attempting to create or
open the Web project located at the following URL: HTTP1.1 500 Server Error>
Does anyone know how t... more >>
ASP.net/VB.net generating gibberish in file write.
Posted by Merennulli at 2/22/2006 12:35:45 PM
Ok, did some seriously ugly meddling with javascript so that my user
can do a level of formatting which gets shunted into a hidden input
field as raw HTML code. That code is then passed back and written
directly to a file. This works..almost.
Problems:
70% of the time, when I click the "Creat... more >>
Vehicle Sales DB
Posted by Jesse Johnson at 2/22/2006 12:24:26 PM
I dont know if this question belongs in here, but I will try. Does anyone
know where I could get a veicle sales DB??? Example: someone comes to the web
app and they see "select make" then "selct model" then "select year" and
finally "select options". Does anyone know if there is a datasource o... more >>
Master Page custom property always null :(
Posted by fishek NO[at]SPAM gmail.com at 2/22/2006 12:09:02 PM
I have a Master Page with a property defined in codebehind like this:
private string profile;
public string Profile {
get { return profile; }
}
I can set the property value in the master page fine (normally
page_load or page_preinit), i.e.:
profile = "custom";
In the page that use... more >>
asp.net 2.0 master page asp:menu bug
Posted by tfsmag at 2/22/2006 11:46:46 AM
Has anyone had a problem with putting a menu control into a master page
in .net 2.0? I have a problem where if i just drop a menu control on a
regular page the menu works fine, the submenus work perfect. But if I
put that exact same code inside a master page, when i go to view one of
the files t... more >>
system.drawing error. Need help debugging.
Posted by darrel at 2/22/2006 11:34:56 AM
I'm modyfying an image upload and resizing script that we've had laying
around for a long while.
I'm getting a NullReferenceException error (see full error at bottom) from
this line:
Dim g As System.Drawing.Image =
System.Drawing.Image.FromFile(strTempFullFileName)
I'm not sure what... more >>
ViewState not restoring in composite control (ASPNET2)
Posted by Mark Olbert at 2/22/2006 11:23:40 AM
I have a "master" composite control which, in turn, holds an instance of a "detail" composite control (the "master" control will
ultimately contain multiple instances of the "detail" control, but I'm keeping things simple to try and figure out what's going
wrong). The master control supports datab... more >>
How do I access MasterPage functionality from an App_Code class?
Posted by dawg1998 at 2/22/2006 11:17:08 AM
I am trying to access a label located in a MasterPage from a class
located in my application's App_Code folder. The problem seems to be
that the class cannot communicate with the MasterPage due to a lack of
reference to it. How do I supply a reference to the class so that it
can populate the lab... more >>
Problem with VS 2005 Forms Authentication
Posted by Carlo Marchesoni at 2/22/2006 9:50:27 AM
If I create a new solution from scratch in VS 2005 and decide to use Forms
Authentication (not using the login controls, just creating a Login.aspx page
as it was in VS 2003) everything works okay, except that for the Login page
the styles and images are not visible.
For the other pages of th... more >>
Partial Caching AddCacheItemDependency problem
Posted by the4man at 2/22/2006 9:32:50 AM
Hi all!!
I have a very stupid and simple project, just for testing, with only
one page (default.aspx), and one user control. The user control only
shows the time in an asp:literal each time the page is requested.
I want to cache the content of the user control (not the entire page),
and I w... more >>
File Based Web Server Development on a LAN
Posted by Mark at 2/22/2006 9:23:21 AM
The new file based web server that comes with Visual Studio 2005 allows you
to develop and debug an ASP.NET on a remote computer rather than having to
rely on IIS. Assuming you've got decent LAN bandwidth, is anyone out there
developing applications off of a file server share/network drive? ... more >>
asp:buttons, access keys, underlining and submit
Posted by Sarmatia NO[at]SPAM gmail.com at 2/22/2006 9:12:24 AM
I had a page working. The user moves data around the page - to and from
different ListBoxes and could save the changes with a click of a
button. Sounds easy, but *that's* a whole other nightmare.
Nevertheless, it was working. The Submit button was an asp:button with
an OnClick server-side me... more >>
Procedure question
Posted by et at 2/22/2006 9:01:52 AM
I am new to asp.net. I am writing a program that will revolve around an
extensive client database, and wonder what the best way to design the
program is, using classes. I have about 10 different sections, or
categories if you will, about a client. For instance, some clients have
data rega... more >>
Newbie mistake or Custom Validator bug?
Posted by B. Chernick at 2/22/2006 8:42:06 AM
I have a very strange problem involving controls and the CustomValidator.
We have created a custom control. The control includes an ordinary textbox,
a customvalidator with the ControlToValidate set to the textbox, and a
VBScript validator subroutine. The purpose of the sub is to insure t... more >>
Why the .pdf can not be shown?
Posted by Andrew at 2/22/2006 8:39:04 AM
Hello, friends,
I developed a web page with the following statement as part of it:
<td width="80%" height="800" valign="top">
<iframe width="100%" height="100%"
src="c:\DeptFiles\shs_test.pdf"></iframe>
</td>
It worked fine in dev machine (in a local network).
However, after de... more >>
I just want to use server.transfer and still have viewstate
Posted by lanem at 2/22/2006 8:10:29 AM
I want to use server.transfer to go to a new aspx page. I want to be able to
still have the viewstate from the previous page. I have researched this and
see a lot about it, but I can't find a good straight forward example. Does
anyone know how to do this? I'm using asp.net 2.0 and vb.net. ... more >>
Strange query string behavior
Posted by Chad at 2/22/2006 8:00:41 AM
This question is one of pure curiosity. Clearly the url is incorrectly
formatted, but the funny is most of the time it works. Occasionally it
does not work. By not work I mean does not call page load. By work I
mean calls page load.
Sample failing url
sample.aspx?a=ON=
Sample working url
... more >>
Web User Controls (asp.net 1.1)
Posted by Stimp at 2/22/2006 7:44:13 AM
I am using a web control stored in the root directory containing an
image like:
<IMG height="84" alt="" src="images/image1.gif" width="120" border="0">
This works fine on .aspx pages that are in the same directory as the
..ascx file, but when I call the user control from an .aspx page in a... more >>
Best practices for creating reports
Posted by Przemo at 2/22/2006 7:21:26 AM
Hi,
I have an ASP.NET 2.0 application. I need to generate some documents
(reports) like invoices, orders, etc. Users need them to preview and print.
Which of methods is the best for doing it:
1. Creating HTML page containing data (problems with rendering and
unexpected behavior when dynamic... more >>
ASP.NET 2.0 Word interop assembly
Posted by Dustin van de Sande at 2/22/2006 7:10:27 AM
I'm developing a ASP.NET 2.0 web application which exports and imports Word
documents.
The functionality is implemented in a DLL project which is referenced by the
web application.
In the DLL I've added a reference to the COM Microsoft.Word 11 Object
library and set the property Copy Local ... more >>
Pass viewstate to a new window in asp.net 2.0
Posted by lanem at 2/22/2006 6:29:27 AM
I want to pop open a new window from my asp.net 2.0 web page. I want it to
pass or submit the current viewstate to the new window. Does anyone know how
to do that? Thanks.... more >>
Stripping out unwanted characters
Posted by et at 2/22/2006 6:19:23 AM
How can I strip out unwanted characters in a string before updating the
database? For instance, in names & addresses in our client table, we want
only letters and numbers, no punctuation. Is there a way to do this?
... more >>
.ASP = Timer() and in .ASPX = ???
Posted by Jonadabe PT at 2/22/2006 5:52:32 AM
Hi there,
I'm searching a possible way to do something like this, but in .aspx:
VBscript
<%
Dim startTime, abc
startTime = timer()
abc = Round((timer - StartTime)*1000)
Response.write ("This page was generated in "&abc&" seconds.")
%>
How can I do this in .aspx ???
Thanks,
Jonadabe... more >>
error when moving a vs 2005 precompiled site to test server
Posted by eswanson at 2/22/2006 5:01:29 AM
I have a site that has multiple web site projects. I got it working on my
windows xp sp2 computer in pre-compiled mode.
I created a new site on a windows 2003 server and copied the pre-compiled
site up to this server.
Now I am getting the following error:
Server Error in '/' Applicati... more >>
question about using multiple asp.net projects for a web site
Posted by eswanson at 2/22/2006 5:01:26 AM
I have broken up my web site into smaller web site projects. When I look at
the precompiled files, it always has the virtual directory in them ie:
<preserve resultType="3" virtualPath="/Security/DefaultLogin.aspx"
hash="fde4916e6" filehash="ffffe84d717a4765" flags="110000"
assembly="App_We... more >>
javascript:window.open question
Posted by Fowler at 2/22/2006 3:31:28 AM
1.) i want to open a browser when click a button
the browser can only be open ONE only, no TWO can be open!
... more >>
how ASP.NET to generate excel report
Posted by ken at 2/22/2006 3:20:28 AM
how ASP.NET to generate excel report(office 2003) to client
what component i need to reference into the asp.net application
and what component i need to install to the server?
Moreover, does it free?... more >>
How to use variable instead of session
Posted by staeri NO[at]SPAM gmail.com at 2/22/2006 1:50:07 AM
I use the following code in OnRowDataBound for getting the column sum
in a GridView:
Protected Sub dg(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow Then
Session("intAccountGroup") =
Dat... more >>
How to get connection string from web.config in public class?
Posted by staeri NO[at]SPAM gmail.com at 2/22/2006 1:39:50 AM
I have a public class in a vb file placed in the app_code directory
where I would like to put generic db functions.
I was hoping to get the connection string from web.config with the
following code but it doesn't work:
Public Shared ConnectionString As String =
ConfigurationSettings.AppSett... more >>
ASP .NET and client's MAC address
Posted by James at 2/22/2006 12:00:00 AM
Hi,
I'm new to ASP .NET, working on a school project, which i need to find out
the client's MAC address. However in my search on the web, i have not find
any method available, and some mention that it is not possible.
I hope someone will be able to help me out about this!
Thanks!
Regar... more >>
How to abandon connection
Posted by ad at 2/22/2006 12:00:00 AM
The connections to IIS of XP is limited below 10.
When the 11th user want to connection to IIS, the system will refuse.
He must wait until one of the connections is disconnected.
I use the login controls of VS 2005. but I found that when a user press
logout,
the 11th user still can't login, ... more >>
any type of document reading
Posted by B. Deepak at 2/22/2006 12:00:00 AM
Hi Grp,
Please suggest a best method ( in terms of performance )to read the document
hosted on web server. Like in our case, we are using sharepoint server for
document hosting and these documents are of type pdf,word,txt,html.
Please do let me know the standard way to read any type of docum... more >>
Best way to store a time?
Posted by Tarun Mistry at 2/22/2006 12:00:00 AM
Hi everyone, i would like to store the time when something happened, to be
entered manually by a user.
What would be the best way to enter this information and then to store it in
an MSSQL database?
I.e. 4.05 pm ?
Im unsure if there are some inbuild classes to handle such events in c#.
... more >>
|