all groups > asp.net > march 2008 > threads for friday march 7
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
Detecting .NET CLR from IE?
Posted by Asaf at 3/7/2008 10:57:00 PM
Hello,
I would like to detect .NET CLR on user computer to notice him if he will
need to install .NET 3.5 runtime from IE.
I have tried to detect using the code
"Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727" and
I have installed .NET version 3.5 on my machine.
... more >>
string, int and session
Posted by rodchar at 3/7/2008 10:18:00 PM
hey all,
can someone please tell me if there's a big difference among the following:
i want to store a string and an int in session.
is it better to store it like:
1. delimited string (i.e. session["test"]="test1" + ";" + 1
2. in an array
3. or 2 separate sessions
how would each one rate?
... more >>
FileIOPermissionAccess.PathDiscovery permission needed
Posted by Brian Stoop at 3/7/2008 10:15:59 PM
How can I give the logged in User FileIOPermissionAccess.PathDiscovery
permission to execute a Environment.SpecialFolder.ApplicationData method ?
thanks Brian,
... more >>
cssClass set but with no effects..........
Posted by lander at 3/7/2008 9:10:00 PM
In the theme folder, i define a css as:
..QuestionText
{
margin-top:20px;
text-align:center;
}
Here, i use it:
<asp:Label ID="question" runat="server" Height="96px" Text="Label"
Width="648px" BackColor="WhiteSmoke" BorderColor="CornflowerBlue"
BorderStyle="Solid" CssClass="Questio... more >>
Storing/Retrieving Files In Database
Posted by Cindy at 3/7/2008 8:31:14 PM
Hi. I'm using SQL Server 2005. I'd like to know if anyone has any
reference on how to allow users to upload a file **onto a database**.
In other words, a user can have several related files belonging to
him. Also, I would need a syntax that allowed me to retrieve those
files.
I'm sure this... more >>
how to apply forecolor to listitem of dropdownlist in function of some values?
Posted by Vincent at 3/7/2008 7:05:02 PM
Hi,
i would like to have a forecolor for each listitem with some values only of
the dropdownlist:
If i=5 ot i=10 or i=15 then apply red forecolor to those listitems otherwise
no color.
For i = 1 To 20
z = New ListItem("item" & i, i)
DropDownList1.Items.Add(z)
??
next
Thanks
Vinc... more >>
Is the code under App_code reentrant???
Posted by lander at 3/7/2008 6:36:04 PM
That is, if multiple users are requesting or posting to the same page,
is the the code under app_code reentrant??? Why?
Thanks~!... more >>
Access Control In DataGrid Header
Posted by RN1 at 3/7/2008 6:01:42 PM
Consider the following DataGrid:
--------------------------------------------------------------------------------
<asp:DataGrid ID="dgMarks" AutoGenerateColumns="false" runat="server">
<Columns>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:CheckBox ID="chkHeader" OnCheckedChanged="CheckUncheck... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQL Database at a WebHoast
Posted by Lars at 3/7/2008 3:34:02 PM
Hi
In VS2008 I need to add a connection to a database that's on the server for
my WebHoast. I can't have a local database under the development unless I
use an Access Database.
Does any one know how you manage users for webpages in ASP.NET 2.0 and 3.5
that's located on Web Hoasts where ther... more >>
AJAX search
Posted by Peter Morris at 3/7/2008 3:24:49 PM
Hi all
I have a structure like so
Product 1---* Edition 1---* Collateral
I would like a search page on my site which allows the user to enter
keywords and see a list of thumbnail images (already PNG files on my server)
in the box below. What I would also like is the following
01: Y... more >>
Problem with processmodel memorylimit property
Posted by Husam at 3/7/2008 3:14:01 PM
Hi EvereyBody:
I have the following code that I uesd to download data from my web
application:
The Code:
Dim rawan As New List(Of String) ' for File Name
Dim rawan1 As New List(Of Byte()) ' for the data for each file
Dim objconn As SqlConnection = New
SqlConnection(ConfigurationMan... more >>
WebRequest/WebResponse gotcha
Posted by George Ter-Saakov at 3/7/2008 2:40:54 PM
Just learned (hard way) one gotcha about working with WebRequest.
Decided to share with with you guys since it's kind of not documented ( =
at least I did not see it).
Given following code
try
{
HttpWebRequest httpWebRequest =3D =
WebRequest.Create(http://www.site.com);
HttpWebResp... more >>
Using Framework 2.0 in VS2008
Posted by Lars at 3/7/2008 2:15:33 PM
Hi
How do I tell my ASP.NEt project to use framework 2.0 in stead of 3.5. My
webhoast doesn't support .NET Framework 3.5 they only supports 1.1 and 2.0
Lars
... more >>
ViewState and TextBox behavior
Posted by Dwight Johnson at 3/7/2008 2:00:30 PM
I have read countless posts about how people are expecting a textbox
to clear after postbacks, and they do not, and the developer is
confused. And the responses always say "well, this is the way it was
designed to work", and leave it at that. What I NEVER see is how to
get a page to do what all ... more >>
Environment.SpecialFolder.ApplicationData problem
Posted by Brian Stoop at 3/7/2008 1:16:18 PM
Hi,
In my ASP.NET application I want to rerieve the APPDATA folder of the logged
in user. The Web Application is using C# .NET 1.1 and has
Impersonation=True
I use this code:
"string
appdata=Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData).ToString()";
If my We... more >>
Rating control
Posted by Joe at 3/7/2008 1:06:11 PM
Hi all!
I'm looking for a good rating control with the following features:
1. 5 Star
2. Supports some type of tracking to only allow one vote per day per person.
3. Displays half stars
4. Displays actual number such as 4.3
I'm currently using the Rating control from the AJAX toolkit but it... more >>
Code Behind File Function ASP.NET 2.0 Page Load
Posted by ABHIJIT B at 3/7/2008 12:48:22 PM
Hi All,
I am calling Code behind file function in one of JavaScript method as
given below,
I don't want to call Code behind file function during Page Load.
Kindly help me out for same.
I tried to call btnDelete.Attributes.Add("onclick",
"javascript:vDelete();");
in if(IsPostBack) and ... more >>
Looking for SqlServer --> Web generator tool.
Posted by Peter Rilling at 3/7/2008 12:29:19 PM
Hi,
I am looking for a tool that will take a SqlServer database and generate a
web UI with both display and edit capabilities. Does anyone know what tool
are out there (that are free) that can do this?
... more >>
setting textbox focus at the end of the text
Posted by ton at 3/7/2008 11:44:17 AM
Hi,
I'm using Ajax to seach direct in a gridview. It works fine. I even keep the
focus on the input text box. Here is my code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
TextBox2.Attributes.Add("onKeyUp", "javascript:__doPostBa... more >>
Session breaking on redirect
Posted by Hrvoje Vrbanc at 3/7/2008 11:00:21 AM
Hello all,
I have recently encountered a very strange problem: on every redirect from a
codebehind page, sessions break.
A varible is correctly stored in a session on a page and then, when a
redirect occurs (on the click of the button, for example), the session is
immediately empty when a ... more >>
Use data. What is the correct way to do this?
Posted by shapper at 3/7/2008 10:41:20 AM
Hello,
I have 10 labels in different parts of a page, each one displaying a
value.
I have a class that uses Linq to retrieve all those values from a
database and places them in its properties.
I don't want to create an instance of this class on each control init
event because I will be a... more >>
image url in gridview, problem
Posted by Jeff at 3/7/2008 10:31:18 AM
hey
asp.net 3.5
I have a gridview where I'm trying to display a image which the user can
click on and some action will be triggered:
The image here isn't displayed, instead a broken image is displayed and alt
text is displayed
<asp:HyperLinkField Text="<img border='0' runat='server'
... more >>
opening a new web page
Posted by jaems at 3/7/2008 9:49:17 AM
Currently I use Response.Redirect("http://mywebsite.org/mypage.aspx") to
open a new web page from asp.net.
How can I open a new webpage in a new tab? do I need some javascript? if so
what?
... more >>
how to put color in listitems of dropdownlist?
Posted by Vincent at 3/7/2008 9:24:28 AM
Hi,
i would like to have a background color for each listitem in the
dropdownlist which is fed with code-behind:
For i = 1 To 20
z = New ListItem("item" & i, i)
DropDownList1.Items.Add(z)
next
Thanks
Vincent
... more >>
Login Failed after running aspnet_regsql
Posted by cs_in_va at 3/7/2008 9:12:51 AM
I ran aspnet_regsql to create the membership tables in my current
database (ADAHSystem), however, now when I try to configure the user
accounts I get, "Cannot open user default database. Login failed." I
have done some googling and found in the the examples I see something
like this:
<remove ... more >>
dynamically adding databound controls
Posted by trullock@googlemail.com at 3/7/2008 9:12:00 AM
Hi,
I have a usercontrol which contains two dropdown lists and a textbox.
One of the dropdowns is databound, the other is a static list.
i add this control to my page via a button click.
Inorder to make the control remain on the page after subsequent
postbacks im adding the control again ... more >>
if statement inside Repeater ItemTemplate
Posted by Oleg at 3/7/2008 7:21:02 AM
using .net 2.0
Trying to put condition on current value in repeater in this manner:
<% if(<%# DataBinder.Eval(Container.DataItem, "FROM_NET") != "Hourly
Rate")%> %>
<asp:TextBox Value='<%# DataBinder.Eval(Container.DataItem, "DELIVERY")
%>' runat="server"/>
<% else %>
<asp:Label Text='... more >>
file io
Posted by AVL at 3/7/2008 5:13:02 AM
Hi,
I've a requirement wherein I need to close an opened file programatically.
How can I acheive it/
Thanks
Vijaya
... more >>
Controls
Posted by RN1 at 3/7/2008 4:49:21 AM
A Form has a Label & a DataGrid. Note that the DataGrid comes after
the Label. The DataGrid has 11 columns - the 1st column is a
TemplateColumn, the 2nd column is a HyperLinkColumn, the 3rd column is
again a TemplateColumn (with a Label), columns 4 to 9 are
BoundColumns, the 10th column is a But... more >>
HTC X7500 Advantage and Postbacks
Posted by maury at 3/7/2008 4:35:45 AM
Hello,
I have and HTC X7500/ADVANTAGE
with Windows Mobile 6 professional
I use it to navigate to a web site I developed with Asp.Net 2.0
for standard browsers (Explorer and FireFox)
in some pages I click on buttons or hyperlink buttons
and it happens...nothing.
Can you help me to spot thi... more >>
Hashtable in Cahe seems to have items removed
Posted by bloodsugarsuckerfish at 3/7/2008 4:24:33 AM
Hi all,
I have in the ASP.NET cache a Hashtable of items. What seems to be
happening,is that some of the actual entries in the hashtable are
being removed, perhaps under memory pressure, when what I would have
expected is that the actual hashtable be removed.
I cannot see an other reason th... more >>
Treeview & XPath
Posted by Olivier7777 at 3/7/2008 2:11:01 AM
Hi,
I have an issue displaying data with the treeview control.
Here is my xml file :
<ROOT>
<FOLDER>
<MODEL>
<REPORT>
<MARKER id="1" />
</REPORT>
</MODEL>
<MODEL>
<REPORT>
<MARKER id="2" />
</REPORT>
</MODEL>
</FOLDE... more >>
Execute SSIS Package from aspx page (2.0)
Posted by Luigi at 3/7/2008 1:53:02 AM
Hi all,
how can I execute a SSIS Package from an aspx page in C#?
I'm using .NET 2.0.
Thanks a lot.
--
Luigi
http://blogs.dotnethell.it/ciupaz/... more >>
Difficulty picking up field value from second webform
Posted by Jonathan at 3/7/2008 12:45:59 AM
I have 3 webforms on 1 page each with Submit buttons.
VB.net code activated by clicking the submit button in form 3 is not picking
up the value of a field in form 2. It is just returning Null or "" even
though I enter data in the text box.
I am referring to the Form 2 field's unique name as ... more >>
|