|
From what I read ASP cookies are HTML-encoded, so you need to HTML-decode it first before using it in ASP.Net.
Try checking whether the "Member" cookie is null or it has some encoded values.
Hope that helps.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
I have an XML Control that takes its datasource location from the query string.
but i only want it to be able to open XML files from a certain folder on the server.
At the moment I use crpytography to make sure only links on the page (that link to the files i want it to be able to open)can pass these vales via URL to the query string.
Though i was hoping there was a simpler way to do this like control what files the XML can open files from.
|
|
|
|
|
Hi im new to ASP .NET and have to build an application that is a heavily data-driven website. More specifically the data from the application will update a image in real-time about changes to devices on a network (each device with be represented in the image (webpage) and change accordingly (e.g transition from green to red if there is a problem with it etc. So my question is could some one point me in the direction of a tutorial for making using cool graphics in ASP .NET, or point me in the direction of a tutorial/code that shows how to link ASP .NET with Flash (ACTIONSCRIPT).
Any help much appreciated.
FZ.
|
|
|
|
|
You may like to consider SVG - Scalable Vector Graphics....
I've been using this quite a bit recently for two main reasons - 1) it's VERY simple to get some really nice looking UIs and effects etc, and b) it can be scripted with any scripting language, and has build in suport for animation / attribute modification via script.
It does have its drawbacks - for instance, need an SVG viewer installed on the client (same for flash I guess), and unfortunately, there's no way to include "inline" SVG in other docs - have to use the <embed /> tag or an iFrame and a standalone SVG file. Having said that, I'm part of the way through a set of tools to simplify this stuff - basically a js lib that manipulates the DOM to add elements, and a ServerControl that does similar from the server side...quite straightforward to impl....
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
I am a novice in programming. Can somebody tell me how to capture a set of log files. Following is the scenario.
The log files reside in a directory on C drive. These log files roll every 3 months.
I need an utility which when double clicked comes up with a box asking for start date and end date and produce those reports within that period. Then these reports should be exported into excel or access.
Is this possible?
|
|
|
|
|
Fairly straightforward - you can use the various filesystem classes to get the files, but you'd have to use the object model for Excel to insert, or ADO / ADO.NET to squirt to Access - MSDN is the place to look
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
As I said, I am very new to programming, Could you give me an idea about how to do this. Or atleast direct me to the programming software, books to buy.
Thanks
sujay
|
|
|
|
|
Hi,
I use the Select html tag and I want to disable some of the options.
I use the disabled attribute and it works fine with fireFox but not in IE.
Can someone help me? (BTW, I want to avoid JavaScript becaus some users may disable JavaScript)
Thanks,
Yossi
|
|
|
|
|
That functionality is not implemented in IE.
MSDN on Disabled property for option and optgroup:
"The disabled attribute can be set and retrieved. However, the functionality specified by the HTML 4.0 standard is not implemented for this property."
I suggest that you replace the value for the disabled options with a specific value, for instance -1. Use javascript to check for the value, and also check the value when the form is posted to the server in case Javascript was disabled.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I'm try to call a webservice for a asp.net 2.0 page and it works ok...
except for the first time I call the webservice after a have build the application...
I recive a exception Response is not well-formed XML...
Can somebody tell me why this happens?
it only happens the first time after that it works fine...
Obs: I'm using a plug-in WebApplications insted of WebSites.
|
|
|
|
|
Hi,
I have some questions about Forms Authentication.
I have browsed thrue different pages regarding this issue and I think I now know which are good configurations to use in the web.config (for our site).
I have also been looking on using cookieless login (AutoDetect mode) - but it seems that it's
unsecure to do it. When using this mode you can just copy the URL and use another browser to log in by pasting the URL in the url.
Does anyone have any comments about using the cookieless mode?
Is it secure or am I using it wrong.
By the way the whole website is under SSL.
// thanks Patrik
|
|
|
|
|
|
Thanks,
but this article is for the session state not forms authentication.
Even though much of the information/advices is useful for both of them.
I read on another msdn page (also other ASP.NET security sites) that they recommended always to use cookies.
But still I was wondering if you readers have some feelings or comments about this.
regards Patrik
|
|
|
|
|
Hi,
This is a basic question but since I am new with WEB development for me it is not so basic.
I use asp .net 2.0 and C#.
I have a page with some text boxes and other controls, the user can navigate from this page to
some other pages using LinkButton. Can I run some code on the page (using c#) before the new page loads?
I want to do it because I want to save some data in the Session object before loading the new page.
I thought about using PostBackUrl, but that means I need to use it on each control that can perform "post" on the page?
Do I have a simpler way doing so?
I will appriciate any help.
Thanks,
Yossi
|
|
|
|
|
The link button should raise an event on the page it is on (view the form and double-click the link button, Visual Studio should create a default event handler and even take you to the code it created). You can save the session there and do either a Server.Transfer("nextpage.aspx") or context.Response.Redirect("nextpage.aspx") to move to the next page.
Regards,
Keith
|
|
|
|
|
A typical way to handle this is to set the values in the session variable when the page is rendered to the client. This way the session object will be available when the user navigates to the next page via the link provided.
In ASP.NET 2.0 you can post back to a different page and have access to the previous page via the PreviousPage property. Depending on the information you need this may be better than storing data in a session variable.
|
|
|
|
|
I've found about 5 articles on how to insert a blank row into a datagrid. I've seen it using footers, using hidden columns, and adding a new row to the DataSource. I am curious of other people have tried the blank row and have found one way works better than another before I start going crazy with coding.
I am also interested in creating multiple blank rows. I have a nested datagrid and one may have the user enter multiple things. The main grid is to enter information about a part. The nested datagrid is to enter multiple subparts.
Thanks!
-- modified at 9:38 Wednesday 21st June, 2006
|
|
|
|
|
On my webform a have a datagrid containing bound columns. One of these columns is a status column.
Can anyone tell me how I could display a row of data in bold text (or different background colour) if the bound status column is a specific value?
All rows of data with a different status value must be displayed in non-bold.
Thanks for your assistance.
-- modified at 8:57 Wednesday 21st June, 2006
|
|
|
|
|
Just check if u get anything in ItemDataBound or else check out the following link
http://aspalliance.com/30
Thanks and regards.
|
|
|
|
|
Hi,
iam new to xml.I have a xml document where i have to search for a string or keyword and display it in a datagrid.Plz help me
Regards,
david Boon.
|
|
|
|
|
|
|
The samples and discussions on client callback ignores one big issue for me. They all POST to the same page; therefore, there is no speed benefit since all Request, Page, and UserControls/CompositeControls initializations are being called.
I scrapped my ClientCallBack and use XMLHttpRequest instead and redirect the request to a Generic Handler page. I still need to bypass Request event handler by checking if the request is intended for the the ashx page.
Dan Satria
Principal Consultant
Graha Logica, Inc.
|
|
|
|
|
Hi,
I have a webForm with 5 treeview controls. They are populated from a data set and they have checkboxes to post their values to another form.
In two of the treeview controls I don’t want to allow multiple selections in the check boxes so I assume that I need client validation the question is how ?
Thanks
|
|
|
|
|
Hi there,
+ You can use javascript to scan all the checkboxes of the treeview control based on thier ids to validate.
+ You can persist the current number of the selected checkboxed of the treeview. To do that you might use the client event onclick of the treeview control, you then use javascript to validate this value, you can also persist the value in a hidden field and use the CompareValidator to validate the control.
Just some ideas.
|
|
|
|