all groups > asp.net > march 2007 > threads for thursday march 8
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
Problem retaining values of dropdownlist controls after postback
Posted by den 2005 at 3/8/2007 11:54:02 PM
Hi,
Trouble in retaining values of dropdownlist, textboxes, and other
controls when
dropdownlist selectedindexchanged event is triggered, the controls are
inside a user control and this user control inside a parent user control with
an update panel. Can you guys help me hwo to retain t... more >>
How to add programmatically a label into a content page?
Posted by Phil at 3/8/2007 11:31:27 PM
Hi,
How to add programmatically a label into a content page?
I tried this but doesn't work:
Thanks
Phil
content page:
------------
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
code-behind:
-----------
dim lb as label
lb ... more >>
ListBox Event
Posted by Bret at 3/8/2007 11:28:05 PM
I have a Listbox that displays Names. When user selects a name then clicks a
button of the form, a SQL statement is run and the the resultant records
autofills into corresponding textboxes. I want to bypass the button and
just have the process execute when user selects the name in the listb... more >>
Images in datagrid!
Posted by rcoco at 3/8/2007 11:02:52 PM
Hi guys,
Could some one help me out? I have a datagrid where one Row is for
selecting from radiobuttonlist of too, one has to be chosen. When it's
chosen it is stored in the database and appears to the datagrid after
the insert button pressed. But now I have two images that are supposed
to corr... more >>
Disabling months in my calendar control
Posted by Garg at 3/8/2007 11:02:33 PM
Hi
i want to disable soem months in my calendar control.
I dont want to display certain months at all in my calendar. How do i
do that?
Shivani
... more >>
ADO.NET Connection object into session variable
Posted by Charles Zhang at 3/8/2007 10:23:18 PM
I want to reuse ADO.NET Connection object from session to session, are
there any way to do that?
Thanks
Charles Zhang... more >>
i want to change font_style (hyper link<a href...>text</a>) normal to italics,when load a page..?
Posted by ajaspersonal NO[at]SPAM gmail.com at 3/8/2007 10:00:57 PM
"i want to change font_style (hyper link<a href...>text</a>) normal to
italics.when load a page"
this is my problem
but
that label included in one 'USERCONTROL'
This user controls may condain 4 link
(<a href...>page1.aspx</a> <br> <a href ....>page2</a> etc..).
that will redirect anoth... more >>
why does this code return an empty Alert window?
Posted by Phil at 3/8/2007 9:39:32 PM
Hi,
This code produces an empty Alert window. No error.
How to get the value into the Alert window?
Thanks
Phil
aspx file (content page):
------------------------
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
asp:Label ID="Label1" runat="serve... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.net occassionally very slow
Posted by Chris at 3/8/2007 9:11:32 PM
I have a web app which is, most of the time, very responsive. Occassionally
it will slow down as if it is recompiling all the files, a little like the
first time you run the app. This slow down tends to happen when the app
hasn't been used for a while. Is it recompiling the pages? Can anyone s... more >>
Find in Files Regular Expression
Posted by Chris at 3/8/2007 9:08:23 PM
Not sure if this is the right place to post. I have a large amount of files
of classic asp. I need to test which ones don't have an include file. Using
find in files for patterns that exist is OK but what regular expression
would I use to do it the other way around? Regards, Chris.
... more >>
Two-floor tab control (Ajax)
Posted by ronchese at 3/8/2007 8:48:34 PM
Hello All.
I'm looking a way to set a Ajax TabContainer show the TabPanes in two or
more floors.
This is necessary because I have too many tabs to show, and they are
bypassing the region I want to show them.
Is there any setting or workaround that allows me do that?
[]s
Cesar
PS.... more >>
Starting my new ASP.NET site from a Template
Posted by Bazza Formez at 3/8/2007 8:46:27 PM
Hi,
I am wanting to build a new site & have decided to start with a
template from www.asp.net ... the TimeTracker template is an ideal
starting point for me.
I started a new web site from VS 2005 & used the TimeTracker
template.. all good.. it even ran straight off. Great.
However, now ... more >>
precedence between OnClientClick and OnClick?
Posted by Phil at 3/8/2007 7:09:34 PM
Hi,
I'm a little confused about the precedence of actions between OnClientClick
and OnClick. In this example, what will be executed first and why?
Thanks
Phil
in code-behind:
---------------
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles But... more >>
Sending dynamic fields to a store procedure
Posted by mazdotnet at 3/8/2007 6:30:04 PM
Hi,
I have a C# web app that searches my database table using the
following search parameters
Search string, criteria (> < =) and the field you want to perform your
search on. My understanding is that stored procedure is the way to go.
What's the best way of doing this using stored procedur... more >>
undefined value in Alert window
Posted by Phil at 3/8/2007 6:28:23 PM
Hi,
The Alert window appears but the value is "undefined".
I tried two ways
What don't i see here?
Thanks
Phil
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server"><title>Untitled Page</title></head>
<body> <form id="form1" runat="server">
<asp:Label ID="label1" runat="ser... more >>
Enable Check Box in GridView
Posted by shapper at 3/8/2007 6:16:09 PM
Hello,
I have a CheckBoxField in my GridView but it is disabled.
I need to make it enable so that the user can set that data field to
true or false.
Then on a click of a button I would need to get the updated data.
How can I do this?
Thanks,
Miguel
... more >>
How to decode this partially encoded string?
Posted by nospam NO[at]SPAM nospam.sss at 3/8/2007 5:43:49 PM
This is part of submitted form. Which .NET function can be used to convert
the encoded characters?
....
Address%2525051%252505Berguvsv%2525E4gen%252520%2525208%2503City%2525052%25
2505Lule%2525E5%2503CompanyName%2525053%252505Berglunds
John Dalberg... more >>
Calendar Control ID unexpected result
Posted by John Kotuby at 3/8/2007 4:53:18 PM
Hi all,
I am trying to use a calendar server control which I have ID="Calendar1" in
the source code. What I am trying to do is emulate a JavaScript calendar
that was being used in an older ASP version of the application. The
javascript version worked nicely -- you click on a calendar.gif in... more >>
GridView ... confusing behavior
Posted by shapper at 3/8/2007 4:36:13 PM
Hello,
I created a GridView which DataSource is created a DataView created in
a function.
The DataView is created from a DataTable which is saved on a Session
Variable.
The DataView has 3 bound fields:
Name, Description and Visible
And 1 Button Field:
Remove
The DataView is crea... more >>
PDF's in .net application
Posted by Blasting Cap at 3/8/2007 4:29:20 PM
A co-worker and I are developing an application where an internal user
will upload pdf files into a sql database, and the external part of the
application will be to force the external users to assent to reading
this pdf bulletin before they can proceed further into this particular
website.
... more >>
Master Pages - Content Panel at Top Z
Posted by Marcus Smaby at 3/8/2007 3:27:28 PM
I am trying to build a simple site using a master page containing a header
graphic and a vertical side menu. I use the MS ASP Menu control. There is a
single contents panel. The menu is multiple level and expands to the right.
To the right of the menu is the contents control.
The problem ... more >>
Format GridView with AutoGenerateColumns=true
Posted by nkw at 3/8/2007 2:48:02 PM
I have a gridview which need to filled by various data according to user's
action. I want to format the dynamical displayed data. For example the number
should be right aligned, datetime column using short format, etc.
Anyway to implement it? Can RowDataBound event do it? Sounds I need to kno... more >>
Call Oracle Stored Proceedure VB.NET
Posted by Problematic coder at 3/8/2007 2:35:39 PM
I have a form based application that inputs values into various oracle
tables, after it has done this I want to call a stored proceedure in
Oracle which is already written to do more work on this data, it does
not return any values to vb nor does it expect any criteria or input.
I already have... more >>
Can web.config add an IIS mime mapping to allow serving a non standard file extension?
Posted by Dave at 3/8/2007 2:07:24 PM
I am hosting on a GoDaddy server and need the server to serve a file
extension that is currently not server.
My understanding is in general there are no filetype restrictions but that
if any filetypes are added tot he MIME mapping in IIS then any non-standard
filetypes must be mentioned.
... more >>
Adrotater management system ... any free?
Posted by Mikael Syska at 3/8/2007 2:01:16 PM
Hey,
I have a site in asp.net ... and want to place some add's ... just
wonddered if there were any premade admin system's for that? with a
mssql backend ...
Been searching google and I can't find any thing ...
thanks in advance ...
best regards
Mikael Syska... more >>
Loop to display nested items in Repeater control?
Posted by parsifal at 3/8/2007 1:46:58 PM
Hi everyone :-)
I am learning to use the Repeater control to display a list of data.
Each of my list items (or rows, however you look at it) has some child
items that are 1..N in length. So I'd like to be able to - within the
Repeater's ItemTemplate - loop over those child elements and displa... more >>
Flipping languages with resource files
Posted by Ryan at 3/8/2007 1:01:22 PM
Hello,
I have what I thought was a simple problem, and perhaps there is still a
simple solution. I have a page that is using local resource files to store
all the necessary control properties on the form. I am using
initializeculture() to retrieve the user's preference from our database and... more >>
store a null in varbinary
Posted by rodchar at 3/8/2007 12:59:11 PM
hey all,
could someone please show me how to store a null value in my database
record's varbinary field using a paramerterized query?
The following doesn't work:
SqlParameter prm = new SqlParameter("@BLOBData",
SqlDbType.VarBinary, bytBLOBData.Length, ParameterDirection.In... more >>
Date and Time question
Posted by JoeP at 3/8/2007 12:49:44 PM
Hi all,
I have the below code for sending e-mail:
oMailMessage.Subject =3D Now.Date.ToString() & " " & =
Now.DayOfWeek.ToString() & " XYZ"
From some reason the time portion of the Date shows all the time the =
12.00:00 AM instead of the real time.
Any idea?
Thanks,
Joe... more >>
Wizard control within AJAX Panel
Posted by BJ at 3/8/2007 12:39:13 PM
I had this crazy idea. We have an existing application that could
use
some rework. I was going to redo the application (currently ASP.Net
1.1) using ASP.Net 2.0:
Master page with Header, Footer, Side bar and Body
One of the content panels would use a Wizard control stepping the
user
throu... more >>
textbox height different than input height
Posted by tshad at 3/8/2007 12:05:15 PM
I have 2 objects - one an aspx textbox object and one an html Input object:
<asp:TextBox ID="UserName" CssClass="top-links" style="height:10px"
Columns="12" runat="server"/>
<input name="textfield222" type="text" class="top-links" size="12"
height="10px" />
The heights are d... more >>
Changing the 404 Page not found page.
Posted by JB at 3/8/2007 11:43:58 AM
I have found where I can change the page that is displayed for 404 in IIS.
Question is - can I use an aspx page? I want to have the page send me an
e-mail of the URL of the page they are trying to access. The main site is a
..Net 2.site.
TIA - Jeff.
... more >>
a simple hyperlink
Posted by Carlos at 3/8/2007 11:32:34 AM
Hi all,
I would like to have a hyperlink control inside a table that just
uses the value of a string being passed from the previous page.
for example when navigating from the default page the string is
mypage.aspx?id='23', I would like the hyperlink inside a table in
the mypage.aspx to gra... more >>
What Happened to getElementsByTagName in ASP.NET 2.0 Javascript?
Posted by EagleRed NO[at]SPAM HighFlyingBirds.com at 3/8/2007 11:32:14 AM
I am writing an application using VS2005 and I am using javascript on the
client side. I have a table that contains textboxes and I want to set the
contents of all of them to the empty string in javascript. I cannot permit a
postback in this scenario. I want to find the textboxes by using:
... more >>
windows authentication login
Posted by xke at 3/8/2007 11:11:57 AM
I have windows authentication mode enabled on my application.
If I access the website with localhost/mywebsite I get logged in
directly and LoginView control will display my account name.
When I access my application from another machine (ipaddress/
mywebsite) a login screen will pop up. Eve... more >>
Attributes in XML file conflict problem? How to read them from DOM
Posted by david at 3/8/2007 11:00:58 AM
When I define id attribute for both parent and child nodes, I get error of
conflict. For example, the following is invalid:
<parent id="1">
<child id="1">Name 1</child>
<child id="2">Name 2</child>
</parent>
Questions:
(1) If I do want to use id for both of them, how can I do?
(2)... more >>
How do I uninstall codeSMART?
Posted by Steve Kershaw at 3/8/2007 9:39:18 AM
Hi
I installed codeSMART for evaluation purposes. Now I want to uninstall
it but it has no entry in the "Add or Remove Programs" application.
Does anyone know how to uninstall codeSMART?
Thanks
Steve
... more >>
Use administrative tool on production?
Posted by dgk at 3/8/2007 9:39:06 AM
Once I've published a website and have the membership, profile, and
role info in a production database, how can I use the Webadmin tool to
create new roles or maintain the site?
User and profile administration has been built into the app, but if I
change the app to have a new role, I don't see... more >>
VS 05 IDE question
Posted by Jonn at 3/8/2007 9:07:30 AM
OK, I have VS 05 installed on 2 boxes and it was installed from the same
DVD. One is a laptop and one is a desktop.
On the desktop I can run a application without being in debug mode I select
Debug -- > run without debugging. On the desktop I can also change the build
configuration to 'rele... more >>
Cache.Add not adding
Posted by Ismail at 3/8/2007 8:27:36 AM
I have asp.net20 web application in my class file in app_code i have
the following code:
HttpContext.Current.Cache.Insert("CampaignImage",
path, null, cacheD,
Cache.NoSlidingExpiration
);
the function where i am doin... more >>
Move my login application to my host
Posted by Marty at 3/8/2007 7:58:18 AM
As you will soon be able to tell I am new to web development.
I am using VS2005 and I have created a simple site and used the Login
control to have members login. I used the ASP configuration to create
a database.
Now I would like to move this to my hosting account except there are
problems.
M... more >>
changing the gridview header text
Posted by fredd00 at 3/8/2007 7:48:04 AM
hi
i'm trying to change the gridview columns header text
the columns are not auto generated, i have set specific headertext
values for each column
i want to change the header text based on the specific header text. i
want to load a new text from a global resource file.
what i'm actually ... more >>
NEWBIE Q:Selecting Distinct records from a datasource
Posted by AlecL at 3/8/2007 7:38:11 AM
I am trying to create linkbutton with a repeater and the repeater does
this fine but it is showing all the records in a particular column. I
would like it to show only the distinct records in that column.
I am trying to accomplish this by:
Me.<<Repeater_Control>>.Datasource = <<A temporary
t... more >>
How can I stop my Calendar control from firing the form validation events?
Posted by mark4asp at 3/8/2007 6:54:54 AM
How can I stop my Calendar control from firing the form validation
events?
I have a form containing several controls which have several
validation controls each.
One control is a TextBox where the date is entered. Connected to this
is an image button which launches a popup window containing... more >>
Roles not loaded at in LoggedIn event
Posted by Iain at 3/8/2007 6:11:25 AM
I've a simple asp.net applicaiton in which I'm using the login control.
I trap the LoggedIn event and then decide which pages to redirect the user
to based on their role.
The problem is that no roles appear to be loaded at this point.
Curiously, if I login twice, the second time the roles... more >>
GridView Primary Key
Posted by shapper at 3/8/2007 4:44:00 AM
Hello,
I have a data table which is already created with all columns and
data.
I need to define LevelName column as its Primary Key so I can use Find
in it.
I tried the following but it is giving me errors:
dtLevels.PrimaryKey = dtLevels.Columns.Item("LevelName")
What am I doing w... more >>
Filter Records
Posted by shapper at 3/8/2007 4:13:15 AM
Hello,
I have a GridView and I need to display only the records which field
in datasource named "visible" is set to true.
How can I do this?
Thanks,
Miguel
... more >>
Session Variable
Posted by shapper at 3/8/2007 3:44:37 AM
Hello,
Could someone tell me how to check if a session variable exists and if
not to create it.
Thanks,
Miguel
... more >>
Problem when using anchor in user control
Posted by remy.bur NO[at]SPAM gmail.com at 3/8/2007 2:25:49 AM
Hi,
When adding an anchor (which is runat="server") in a user control, the
link generated will be based on the user control location and not on
the page which is using the control location.
For example, if the user control is located in an include folder, here
is what I will get:
<a href="incl... more >>
Datagrid Items
Posted by Mrv at 3/8/2007 1:58:30 AM
Hi,
When I tried DataGrid1.Items.Item with vb.net in web application, it
is working fine.
But with c#.net "item" is not visible after "DataGrid1.Items."
My purpose is to get all data in datagrid to arraylist.
Any insight into this, please?
Thanks & Regards,
Vaibhav
... more >>
Can application develop in framework 2.0 run on server wtih .net framework 1.1 installed ?
Posted by pizza at 3/8/2007 1:52:35 AM
Hi !
can a asp.net application developed in vs.net 2005 run in server
with .net framework 1.1 installed ?
... more >>
javascript error: "Object required"
Posted by Phil at 3/8/2007 12:00:00 AM
Hi,
This code gives an javascript error: "Object required" and never let see the
Alert window.
in code-behind:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Button1.Click
Hiddenfield1.value="end text"
end sub
in aspx file:
<asp:Hidde... more >>
|