Showing posts with label web. Show all posts
Showing posts with label web. Show all posts

Saturday, March 31, 2012

Submitting a web form to a web server from a running windows servive.

hi and help. i have a windows service, in wich i want to submite a web from to a web server with some hidden fiels. how do i do this. and afterwords how can i get response from web server in windows service.
----------
From: Muhammad Saifullah

--------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>i6K//UAKUk2P/CaV2/rNFA==</Id>look up HttpWebRequest

Submitting a web form to a web server from a running windows servive.

hi and help. i have a windows service, in wich i want to submite a web from
to a web server with some hidden fiels. how do i do this. and afterwords how
can i get response from web server in windows service.
--
From: Muhammad Saifullah
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>i6K//UAKUk2P/CaV2/rNFA==</Id>look up HttpWebRequest

Submitting form with a unique ID

Hi All,

I'm looking for some information/code samples on how I can create a
simple web form that includes an auto-generated Unique ID on the form.

The form includes the following 3 fields (Unique ID, First Name and
Last Name). I have a SQL Server 2000 back-end with the table created
as follows:

UniqueID - numeric (9)
FirstName - varchar (50)
LastName - varchar (50)

Ideally I would like the user just to enter their First and Last Name
and the form automatically creates a Unique ID for them. Once they
type in their First/Last Name the user submits the information to the
database. I've managed to get the web form created so that it submits
the First/Last Name successfully but I can't think how to create the
Unique ID, ideally I'd like this to be based around the time/date of
submittal.

Any guidance would be much appreciated.

Thanks

ScottJames... If you declare an IDENTITY column, SQL will return a
uniqueID upon INSERT. If you want to generate your own
uniqueID you could do a concatenation of the MAC address of the
client ethernet card plus a timestamp.

Regards,
Jeff
>I've managed to get the web form created so that it submits
the First/Last Name successfully but I can't think how to create the
Unique ID, ideally I'd like this to be based around the time/date of
submittal.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Using a system generated GUID is quick and easy, although kinda long.
16 bytes minimum.

"James Brown" <i.m@.winning.com> wrote in message
news:1f88a50b.0307051028.3caafaf1@.posting.google.c om...
> Hi All,
> I'm looking for some information/code samples on how I can create a
> simple web form that includes an auto-generated Unique ID on the form.
> The form includes the following 3 fields (Unique ID, First Name and
> Last Name). I have a SQL Server 2000 back-end with the table created
> as follows:
> UniqueID - numeric (9)
> FirstName - varchar (50)
> LastName - varchar (50)
> Ideally I would like the user just to enter their First and Last Name
> and the form automatically creates a Unique ID for them. Once they
> type in their First/Last Name the user submits the information to the
> database. I've managed to get the web form created so that it submits
> the First/Last Name successfully but I can't think how to create the
> Unique ID, ideally I'd like this to be based around the time/date of
> submittal.
> Any guidance would be much appreciated.
> Thanks
> Scott

Subscription website software in ASP.NET C#

Looking for an all-in-one solution for building and managing subscription or member's only web sites in ASP.NET C#. A quick scope of features are the ability to bill monthly to our subscribers via real-time credit card processing, posting content features (news, articles, blogs, etc), manage subscribers, shopping cart, discussion groups, RSS, flexible searching (tags, etc..) and basic reports.

Any ideas and comments welcomed.

Thanks,
Gio

Look to Sharepoint. Most the things are inbuilt in this. Its a Microsoft Product. Click try to search Sharepoint at msdn.microsoft.com or google.

SubSonic web.config problem

Hi,

I'm using SubSonic tool, and my website works fine on my machine. When I try to host my website on my hosting account, I get web.config error:

-- ERROR --

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

...

Line 25: <SubSonicService defaultProvider="MYWebsiteDB">

-- ERROR --

- Here's the full web.config file.

Thanks!


<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="MyWebsiteConnection" connectionString="Data Source=localhost\SQL2005;Database=MyWebsiteDB;User ID=myUser;Password=myPass;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<SubSonicService defaultProvider="MyWebsiteSQL">
<providers>
<add name="MyWebsiteSQL" type="SubSonic.SqlDataProvider, SubSonic" connectionStringName="MyWebsiteConnection" generatedNamespace="MyWebsite.DataAccess" fixPluralClassName="true"/>
</providers>
</SubSonicService>
<appSettings>
<add key="SupplierFilePath" value="~/admin/SuppliersFiles/"/>
<add key="SupplierFilePathTemp" value="~/admin/SuppliersFiles/Temp/"/>
</appSettings>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
</authentication>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>
</configuration>You have a virtual directory under a virtual directory with a web.config in it. Am I right?

Wednesday, March 28, 2012

substitute data from database into web form

Hello.

Newbie here, I have a field in a database called status with the values "I" or "A". I need to display "Inactive" or "Active" in a gridview or formview web page. How do I substitute these values.

Thanks in advance.

Is this data being displayed in a datalist / datagrid? You can either create a temp table in your sql or modify your code. If you post your code I can show you how, otherwise you can do something like this in your sql:

create table #temp(
activeInactiveField1 char(5)
, activeInactiveField2 char(10)
-- , your other fields here
)

Insert into #Temp(
-- all fields from your existing sql
from all your existing tables

update #temp
set activeInactiveField2 = 'Active'
where activeInactiveField1 = 'A'

update #temp
setActiveInactiveField2 = 'Inactive'
where activeInactiveField1 = 'I'

select * from #Temp
drop table #Temp

Then you can databind the field in your webform to activeInactiveField2


Hello, Thank you for the quick response. Below is my code. As stated I am a newbie and the filed I am working with is status. Thanks a lot.

<%@.PageLanguage="VB"AutoEventWireup="false"CodeFile="Default2.aspx.vb"Inherits="Default2" %>

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<htmlxmlns="http://www.w3.org/1999/xhtml">

<headrunat="server">

<title>Untitled Page</title>

</head>

<body>

<formid="form1"runat="server">

<div>

<asp:GridViewID="GridView1"runat="server"AutoGenerateColumns="False"DataSourceID="SqlDataSource1"

Style="z-index: 100; left: 0px; position: absolute; top: 0px">

<Columns>

<asp:BoundFieldDataField="Citation"HeaderText="Citation"SortExpression="Citation"/>

<asp:BoundFieldDataField="Type"HeaderText="Type"SortExpression="Type"/>

<asp:BoundFieldDataField="Status"HeaderText="Status"SortExpression="Status"/>

<asp:BoundFieldDataField="Last Name"HeaderText="Last Name"SortExpression="Last Name"/>

<asp:BoundFieldDataField="First Name"HeaderText="First Name"SortExpression="First Name"/>

<asp:BoundFieldDataField="Middle"HeaderText="Middle"SortExpression="Middle"/>

<asp:BoundFieldDataField="DOB"HeaderText="DOB"SortExpression="DOB"/>

<asp:BoundFieldDataField="Violation Date"HeaderText="Violation Date"SortExpression="Violation Date"/>

<asp:BoundFieldDataField="Charge"HeaderText="Charge"SortExpression="Charge"/>

<asp:BoundFieldDataField="Description"HeaderText="Description"SortExpression="Description"/>

<asp:BoundFieldDataField="Disposition"HeaderText="Disposition"SortExpression="Disposition"/>

<asp:BoundFieldDataField="Cost"HeaderText="Cost"SortExpression="Cost"/>

<asp:BoundFieldDataField="Paid"HeaderText="Paid"SortExpression="Paid"/>

<asp:BoundFieldDataField="Balance"HeaderText="Balance"SortExpression="Balance"/>

</Columns>

</asp:GridView>

<asp:SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ ConnectionStrings:MUNI_COURTConnectionString4 %>"

ProviderName="<%$ ConnectionStrings:MUNI_COURTConnectionString4.ProviderName %>"

SelectCommand="SELECT * FROM [MUNI_COURT_REC]"></asp:SqlDataSource>

</div>

</form>

</body>

</html>


You can handle this in RowDataBound event of the gridview. To add this event to your gridview, when in design view of Visual Studio, click on gridview once to get the properties window. From that, go to the events window (identified by a small "lightning" icon) and look for RowDataBound event. Double click on this event and an event hadler will created in your code file. Just copy and paste this code there.

protected void gridView_RowDataBound(object sender, GridViewRowEventArgs e) {if (e.Row.RowType == DataControlRowType.DataRow) {if(e.Row.Cells[7].Text =="A") { e.Row.Cells[7].Text ="Active"; }else { e.Row.Cells[7].Text ="Inactive"; } } }

Or you can change your select statement - something like select case status when 'i' then 'inactive' else 'active' end as status from blah blah blah...

By the way, it's never good practice to do a select *.


Hi, try this inline IIF statement to evaulate the status field and display conditional text. You will have to first convert your GridView to a template so you have control over the HTML controls.

<asp:LabelID="LabelStatus"runat="server"Text='<%# IIF(CONVERT.ToString(Eval("Status"))="A","Active", "Inactive") %>'></asp:Label>


Thanks I got that suggestion to work in a gridview and formview. Big Smile

What if I had another field called type that I had to change

"H" to "Harbor"

"C" to "Civil"

"T" to "Traffic"

"L" to "Local"


You can use the same solutions that are marked as answer to extend the functionality. Like in mine, you can access the columns by their index (0 based). So whatever the index of your "Type" column, access it in RowDataBound event, check the text of the cell, and change it accordigly.


Sorry bullpit,

when I run your suggestion I get the following error message

Compiler Error Message:BC30205: End of statement expected.

I believe your suggestion would work best.

I forgot to uncheck the answer message button


Paste your code here. Please use the InsertCode option in the text editor.


Partial Class Default2 Inherits System.Web.UI.Page Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBoundprotected void gridView1_RowDataBound(object sender, GridViewRowEventArgs e) {if (e.Row.RowType == DataControlRowType.DataRow) {if(e.Row.Cells[7].Text =="A") { e.Row.Cells[7].Text ="Active"; } Else { e.Row.Cells[7].Text ="Inactive"; } } } End SubEnd Class

Thanks


learn_asp_fast:

Partial Class Default2 Inherits System.Web.UI.Page Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBoundprotected void gridView1_RowDataBound(object sender, GridViewRowEventArgs e) {if (e.Row.RowType == DataControlRowType.DataRow) {if(e.Row.Cells[7].Text =="A") { e.Row.Cells[7].Text ="Active"; } Else { e.Row.Cells[7].Text ="Inactive"; } } } End SubEnd Class

The piece of code I posted was an event handler for RowDataBound event. An event handler is a method (function) by itself. What you did was that you attached an event handler the way I mentioned (by double clicking the RowDataBound event in designer) but also copied and pasted the event handler that I posted into the event handler that the designer generated. So now you have a function defined in another function, which is not right. Morover, you are using VB and the code I pasted was C#. Change the above code to this:

Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBoundIf e.Row.RowType = DataControlRowType.DataRowThen If e.Row.Cells(7).Text ="A"Then e.Row.Cells(7).Text ="Active"Else e.Row.Cells(7).Text ="Inactive"End If End If End Sub

Bullpit,

Thank you very much for your time. I did realize I pasted the code into another function, but neith er way worked for me. I should be able to get this sample to work in other ways for me.

This a very helpful board.


Also, change the column index (7 in the code I posted) to the column index where you want to change the text. That might be the problem. For example, in your gridview, the "STATUS" colum index maybe 4 instead of 7.


Bullpit,

If you do not mind hopw do I get that to work in a Formview?

Thanks in advance

Subweb / Subprojects VS2005

I have a web site which we use to service many customers. The base part of
the web site is the same for every customer. Then there are sub-webs for
each customer that contain customer specific pages only. How do we structur
e
the projects such that I don't need to build one solution which contains the
base web and every customer web while maintaining session accross all the
webs? One of the frustrating things about VS is that if it finds a sub web
it tries to compile it. So i remove the sub-web and everything compiles, bu
t
now how do I test the sub-web when I can't navigate through the base web?
More info...each web (base and customer) has a bunch of supporting
assemblies (service, data, rules, etc). The base web should not change ver
y
frequently but each sub-web (customer specific) will be on a different
release cycle. So I need to keep them separate.
I have read the Guthrie articles on VS2005 projects and while they get me
pretty close, they don't seem to address my issues.
I refuse to belive that this problem is uniqute and hopefully someone on the
ASP.NET / VS team has thought about this scenario. Any help would be much
appreciated.
Thanks,
curtSilence sucks, if I am off my rocker just tell me so ;-).
Thanks,
curt
"Curt Koppang" wrote:

> I have a web site which we use to service many customers. The base part o
f
> the web site is the same for every customer. Then there are sub-webs for
> each customer that contain customer specific pages only. How do we struct
ure
> the projects such that I don't need to build one solution which contains t
he
> base web and every customer web while maintaining session accross all the
> webs? One of the frustrating things about VS is that if it finds a sub we
b
> it tries to compile it. So i remove the sub-web and everything compiles,
but
> now how do I test the sub-web when I can't navigate through the base web?
> More info...each web (base and customer) has a bunch of supporting
> assemblies (service, data, rules, etc). The base web should not change v
ery
> frequently but each sub-web (customer specific) will be on a different
> release cycle. So I need to keep them separate.
> I have read the Guthrie articles on VS2005 projects and while they get me
> pretty close, they don't seem to address my issues.
> I refuse to belive that this problem is uniqute and hopefully someone on t
he
> ASP.NET / VS team has thought about this scenario. Any help would be much
> appreciated.
> Thanks,
> curt

sub-web.config

ok, i have a web.config in my main solution directory and i have a web.config in a subdirectory. the only other files in the subdirectory are web user controls, but i would like the web.config in there to be used, as well as the web.config in the main solution directory.

is this possible? I'm not calling any aspx files from the subdir, just using the web user controls from there in other aspx's.

matt.

I don't know, I would think not, because the user controls would be a control in the pages control tree, and such, would probably use the main web.config. Only pages I believe would use a sub web.config.

Just try it out to see if it works.

Personally I think that user controls are merged with your page and so the user controls runs in the web.config of that folder where the webform resides. Of course, I could be wrong on that one because I didn't test it.

Grz, Kris.


http://weblogs.asp.net/pwilson/archive/2003/04/09/5261.aspx

I see that it can be done. But I can't get it to work - my .NET just doesn't appear to read the subconfig file. My code looks just like in the page linked above!


The link you provided explains how to put configuration data in an external config file (YourSettings.config) and link to that file from the web.config. It has nothing to do with your original question.

Grz, Kris.


yes it does; it's one potential solution...

"i would like the web.config in there to be used, as well as the web.config in the main solution directory"

if it can be made to work.

i'm not going to *** semantics here - what i'm looking for, now, is how to get this apparently wonderful appSettings attribute to work.

Suddenly can't load assembly

I am using VS2005, and yesterday I copied a web site from my
development machine to
a Windows 2003 server, and the web site worked fine.
Today I made a few changes on my machine, and tried to repeat the
process,
but I get an error message:
Could not load file or assembly 'BaseRS' or one of its dependencies.
Access is denied
BaseRS.dll is in the bin folder, as it was previously.
Any ideas about what causes this message?What were the "few changes" you made ?
Anything to do with file permissions or the ASP.NET account ?
Did you enable impersonation and now a different account needs permissions ?
Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
<jhcorey@.yahoo.com> wrote in message news:1133453674.384226.289410@.z14g2000cwz.googlegroups
.com...
>I am using VS2005, and yesterday I copied a web site from my
> development machine to
> a Windows 2003 server, and the web site worked fine.
> Today I made a few changes on my machine, and tried to repeat the
> process,
> but I get an error message:
> Could not load file or assembly 'BaseRS' or one of its dependencies.
> Access is denied
> BaseRS.dll is in the bin folder, as it was previously.
> Any ideas about what causes this message?
>
Did you try IISReset before doing the deployment.
If not, you may like to do that. Also, clear all your Temporary Asp.net
files from the folder C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files
before you deploy the application.
If that doesn't help you can try Filemon utility from www.sysinternals.com
and serch for access denied after you reproduce the error and save the log
file from the Filemon utility.
HTH
--
Cheers,
Rahul Soni
-->The secret to creativity is knowing how to hide your sources<--
"jhcorey@.yahoo.com" wrote:

> I am using VS2005, and yesterday I copied a web site from my
> development machine to
> a Windows 2003 server, and the web site worked fine.
> Today I made a few changes on my machine, and tried to repeat the
> process,
> but I get an error message:
> Could not load file or assembly 'BaseRS' or one of its dependencies.
> Access is denied
> BaseRS.dll is in the bin folder, as it was previously.
> Any ideas about what causes this message?
>
The app does use impersonation, and that may have been a change in the
web.config.
(Although it uses anonymous access, and yes there was a reason for this
that made sense at one point).
I can experiment without impersonation and see if that makes a
difference. What would I do if it does?
I'm not familiar with any new deployment procedures, so I figure I
better take a look in help.
But I assumed that copying the folders would work for deployment, as it
did in ASP.NET 1.
Anyway, I'll try Rahul's suggestions as well, thanks.
re:
> I can experiment without impersonation and see if that
> makes a difference. What would I do if it does?
Run this aspx page :
identity.aspx :
--
<%@. Page Language="VB" %>
<script runat="server">
Sub Page_Load(obj as object, e as eventargs)
Dim user as string = Environment.Username
lblUser.Text = user
End Sub
</script>
<html>
<body>
<asp:Label id="lblUser" runat="server"/></asp:Label>
</body>
</html>
--
That will tell you which account needs permission to the directory
where the BaseRS assembly is located ( the /bin dir, right ? ).
Juan T. Llibre
ASP.NET.FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
<jhcorey@.yahoo.com> wrote in message news:1133455339.559879.253270@.g44g2000cwa.googlegroups
.com...
> The app does use impersonation, and that may have been a change in the
> web.config.
> (Although it uses anonymous access, and yes there was a reason for this
> that made sense at one point).
> I can experiment without impersonation and see if that makes a
> difference. What would I do if it does?
> I'm not familiar with any new deployment procedures, so I figure I
> better take a look in help.
> But I assumed that copying the folders would work for deployment, as it
> did in ASP.NET 1.
> Anyway, I'll try Rahul's suggestions as well, thanks.
>
Juan,
Impersonation was indeed the issue. The impersonation user id is from
a different domain.
For some reason this did not cause a problem on my development machine.
I'm not sure if I should address this within the folder system or
within IIS6.
I tried changing the security on the folder (it already had 'Everyone'
with full control)
to give explicit access to this userid, but it didn't help.
Thanks,
Jim
Finally got this working (I think)
After quite a bit more playing around with security for impersonated
user,
I googled some more and saw that I had to grant permissions (full
control) on
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
and so I'm running...
Jim

Monday, March 26, 2012

Suddenly my web run very slow.

I have very big and complicated website. Suddenly (in the past few days) it started to run very slow. In each page it "can't find" one or two images (usually very small ones like arrow or something) and the browser show "open 1 item…" and stuck. As much as I can remember I didn't change any thing that related to the images or to my home page.

Does any body have idea what can cause such behavior?

Have you rebooted recently? You might have some memory issues on the server.

Nick


oh, yes... again and again.

Suggested Graphics Programs for use with VS

Hello -

I have developed the world's ugliest website -- functions well, but it
leaves a lot to be desired aesthetically.

What are the recommended web graphics programs to integrate with Visual
Studio projects? I don't want to just go out and buy something without
knowing it works well with VS.

Also, how would you integrate it? Just copy and paste stuff?

Any help will be greatly appreciated!
--
SandyMicrosoft has several visual editing tools in beta that can generate UI
elements but these tools are for future releases of Vista and so on. There's
really nothing available now in the context I think you are asking.

I've used PaintShop Pro (PSP) for years myself. It is inexpensive, generally
considered easy to use, and rivals the over-priced PhotoShop. Use PSP for
screen captures of various elements from other sites and paste up various
'comps' (compositions) as reference works. I also recommend you use a
reference book such as "Designer's Guide To Color 2" as it is an excellent
resource for color combinations you can recreate using PSP.

Some of the basic techniques designer's use to make page elements distintive
are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be
able to understand simply by observing the use of these techniques at my
current homepage noting I had to beat myself up with CSS to get the effect
without turning the page into an over-weight slow loading sleeper. I'm also
still using multiple stylesheets because IE has been crippleware and I
haven't mastered the dozen and more CSS hacks IE requires to build
'standards compliant' GUIs.

Get a grip on color, page layout, and a couple of artsy-fartsy techniques
and you're all set for a clean page with distinctive design elements but
remember to go easy on the eye shadow ;-)

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/

[1]
http://www.amazon.com/exec/obidos/t...723165?v=glance

"Sandy" <Sandy@.discussions.microsoft.com> wrote in message
news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
> Hello -
> I have developed the world's ugliest website -- functions well, but it
> leaves a lot to be desired aesthetically.
> What are the recommended web graphics programs to integrate with Visual
> Studio projects? I don't want to just go out and buy something without
> knowing it works well with VS.
> Also, how would you integrate it? Just copy and paste stuff?
> Any help will be greatly appreciated!
> --
> Sandy
re:
> I've used PaintShop Pro (PSP) for years

That's a good choice.

I use Snagit :

http://www.techsmith.com/products/snagit/default.asp

It does everything I need to do.

PhotoShop is overkill for most situations but
for specialized requirements, it can't be beat.

Its learning curve is quite stiff, though.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI elements but
> these tools are for future releases of Vista and so on. There's really nothing available
> now in the context I think you are asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive, generally considered
> easy to use, and rivals the over-priced PhotoShop. Use PSP for screen captures of
> various elements from other sites and paste up various 'comps' (compositions) as
> reference works. I also recommend you use a reference book such as "Designer's Guide To
> Color 2" as it is an excellent resource for color combinations you can recreate using
> PSP.
> Some of the basic techniques designer's use to make page elements distintive are
> 'over-lays' and 'juxtapositions' which is artsy-fartsy talk you may be able to
> understand simply by observing the use of these techniques at my current homepage noting
> I had to beat myself up with CSS to get the effect without turning the page into an
> over-weight slow loading sleeper. I'm also still using multiple stylesheets because IE
> has been crippleware and I haven't mastered the dozen and more CSS hacks IE requires to
> build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques and you're all
> set for a clean page with distinctive design elements but remember to go easy on the eye
> shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> http://www.amazon.com/exec/obidos/t...723165?v=glance

> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>> Hello -
>>
>> I have developed the world's ugliest website -- functions well, but it
>> leaves a lot to be desired aesthetically.
>>
>> What are the recommended web graphics programs to integrate with Visual
>> Studio projects? I don't want to just go out and buy something without
>> knowing it works well with VS.
>>
>> Also, how would you integrate it? Just copy and paste stuff?
>>
>> Any help will be greatly appreciated!
>> --
>> Sandy
PSP is exceptionally good.

However, when I read this post, I thought the OP 'May' be talking about
general presentation rather than just the graphics themselves, such as that
made easier by using packages like Front Page or Dreamweaver etc.

On that subject, I do know two professional designers ( ASP.NET ) who use
third parties to create their design and then back-engineer ( or add
accurately ) the coding to fit the ASP.NET model.

This way, they dont have the less than intuative VS interface for designing
web sites but have the benefit of all the managability features already
built in to Front Page for example.

This can present difficulties in itself and you really have to know what
your doing, but it's how some people work.

It would be nice if one day Front Page could be absorbed into Visual Studio
( At least all the good bits )

;-)

Regards - Mr N

"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message
news:urQ7G$qxFHA.3856@.tk2msftngp13.phx.gbl...
> re:
>> I've used PaintShop Pro (PSP) for years
> That's a good choice.
> I use Snagit :
> http://www.techsmith.com/products/snagit/default.asp
> It does everything I need to do.
> PhotoShop is overkill for most situations but
> for specialized requirements, it can't be beat.
> Its learning curve is quite stiff, though.
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
> news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
>> Microsoft has several visual editing tools in beta that can generate UI
>> elements but these tools are for future releases of Vista and so on.
>> There's really nothing available now in the context I think you are
>> asking.
>>
>> I've used PaintShop Pro (PSP) for years myself. It is inexpensive,
>> generally considered easy to use, and rivals the over-priced PhotoShop.
>> Use PSP for screen captures of various elements from other sites and
>> paste up various 'comps' (compositions) as reference works. I also
>> recommend you use a reference book such as "Designer's Guide To Color 2"
>> as it is an excellent resource for color combinations you can recreate
>> using PSP.
>>
>> Some of the basic techniques designer's use to make page elements
>> distintive are 'over-lays' and 'juxtapositions' which is artsy-fartsy
>> talk you may be able to understand simply by observing the use of these
>> techniques at my current homepage noting I had to beat myself up with CSS
>> to get the effect without turning the page into an over-weight slow
>> loading sleeper. I'm also still using multiple stylesheets because IE has
>> been crippleware and I haven't mastered the dozen and more CSS hacks IE
>> requires to build 'standards compliant' GUIs.
>>
>> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
>> and you're all set for a clean page with distinctive design elements but
>> remember to go easy on the eye shadow ;-)
>>
>> <%= Clinton Gallagher
>> METROmilwaukee (sm) "A Regional Information Service"
>> NET csgallagher AT metromilwaukee.com
>> URL http://metromilwaukee.com/
>> URL http://clintongallagher.metromilwaukee.com/
>>
>> [1]
>> http://www.amazon.com/exec/obidos/t...723165?v=glance
>
>> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
>> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>>> Hello -
>>>
>>> I have developed the world's ugliest website -- functions well, but it
>>> leaves a lot to be desired aesthetically.
>>>
>>> What are the recommended web graphics programs to integrate with Visual
>>> Studio projects? I don't want to just go out and buy something without
>>> knowing it works well with VS.
>>>
>>> Also, how would you integrate it? Just copy and paste stuff?
>>>
>>> Any help will be greatly appreciated!
>>> --
>>> Sandy
>>
>>
Your comments about Colour are both interesting and incisive.

I think teaching Software Engineers to appreciate Colour may be more
difficult than teaching artists to design web sites. Logical thinkers
rarely make great artists in my humble opinion (get ready for the
flames!!!), although I am sure there are exceptions to the rule.

Marketing departments also have their own interesting take on use of
colours; apparently colours signify things to people. For example, the Roman
Purple/Blue promotes a feeling of reliability, depth and maturity.

All good stuff as they say !

Cheers - Mr N. . . .

"clintonG" <csgallagher@.REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:uLX$QwqxFHA.664@.tk2msftngp13.phx.gbl...
> Microsoft has several visual editing tools in beta that can generate UI
> elements but these tools are for future releases of Vista and so on.
> There's really nothing available now in the context I think you are
> asking.
> I've used PaintShop Pro (PSP) for years myself. It is inexpensive,
> generally considered easy to use, and rivals the over-priced PhotoShop.
> Use PSP for screen captures of various elements from other sites and paste
> up various 'comps' (compositions) as reference works. I also recommend you
> use a reference book such as "Designer's Guide To Color 2" as it is an
> excellent resource for color combinations you can recreate using PSP.
> Some of the basic techniques designer's use to make page elements
> distintive are 'over-lays' and 'juxtapositions' which is artsy-fartsy talk
> you may be able to understand simply by observing the use of these
> techniques at my current homepage noting I had to beat myself up with CSS
> to get the effect without turning the page into an over-weight slow
> loading sleeper. I'm also still using multiple stylesheets because IE has
> been crippleware and I haven't mastered the dozen and more CSS hacks IE
> requires to build 'standards compliant' GUIs.
> Get a grip on color, page layout, and a couple of artsy-fartsy techniques
> and you're all set for a clean page with distinctive design elements but
> remember to go easy on the eye shadow ;-)
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
> [1]
> http://www.amazon.com/exec/obidos/t...723165?v=glance
>
> "Sandy" <Sandy@.discussions.microsoft.com> wrote in message
> news:8C416C92-207F-44EE-AE08-D32FFA07DC47@.microsoft.com...
>> Hello -
>>
>> I have developed the world's ugliest website -- functions well, but it
>> leaves a lot to be desired aesthetically.
>>
>> What are the recommended web graphics programs to integrate with Visual
>> Studio projects? I don't want to just go out and buy something without
>> knowing it works well with VS.
>>
>> Also, how would you integrate it? Just copy and paste stuff?
>>
>> Any help will be greatly appreciated!
>> --
>> Sandy

Suggestion for a good ASP.NET Web hosting?

At http://www.asp.net/Customers/Displa...x?IndustryId=27, there
are hundred of ASP.NET hosting companies.

Can you suggest one or a couple of good ones?

I'm looking to build a small Web site (for fun only). Might not even need a
database, but if there is SQL Server, that would be great. The cheaper, the
better. Free would be great, but I do want FTP access. Being able to upload
from VS.NET would be great too, but not essential. ASP.NET 1.1 is prefered.

Thanks.I'm extremely happy with Webhost4life
(http://webhost4life.com/default.asp?refid=dwier)
They are very reasonable price-wise-quite a bit of web space and sql Server
space, if you need it - unlimited bandwidth and the service, as far as what
I've needed far outweighs most of the other hosting services I've tried in
the past. -- unlimited domains (depending on space), subdomains, etc.

Note - I don't recommend them because of the referral program either - -
though that's a plus for me - - note, that my refreral id is in the link
above - - I've been with them almost a year and wouldn't recommend them if I
wasn't going to stay

David Wier
http://aspnet101.com
http://aspexpress.com

"Michael" <a@.b.c> wrote in message
news:e8LsIkGWDHA.2272@.TK2MSFTNGP11.phx.gbl...
> At http://www.asp.net/Customers/Displa...x?IndustryId=27,
there
> are hundred of ASP.NET hosting companies.
> Can you suggest one or a couple of good ones?
> I'm looking to build a small Web site (for fun only). Might not even need
a
> database, but if there is SQL Server, that would be great. The cheaper,
the
> better. Free would be great, but I do want FTP access. Being able to
upload
> from VS.NET would be great too, but not essential. ASP.NET 1.1 is
prefered.
> Thanks.
Thanks David. I'll check it out.

"David Wier" <dwier@.nospamASPNet101.com> wrote in message
news:%239huosGWDHA.1780@.TK2MSFTNGP11.phx.gbl...
> I'm extremely happy with Webhost4life
> (http://webhost4life.com/default.asp?refid=dwier)
> They are very reasonable price-wise-quite a bit of web space and sql
Server
> space, if you need it - unlimited bandwidth and the service, as far as
what
> I've needed far outweighs most of the other hosting services I've tried in
> the past. -- unlimited domains (depending on space), subdomains, etc.
> Note - I don't recommend them because of the referral program either - -
> though that's a plus for me - - note, that my refreral id is in the link
> above - - I've been with them almost a year and wouldn't recommend them if
I
> wasn't going to stay
> David Wier
> http://aspnet101.com
> http://aspexpress.com
> "Michael" <a@.b.c> wrote in message
> news:e8LsIkGWDHA.2272@.TK2MSFTNGP11.phx.gbl...
> > At http://www.asp.net/Customers/Displa...x?IndustryId=27,
> there
> > are hundred of ASP.NET hosting companies.
> > Can you suggest one or a couple of good ones?
> > I'm looking to build a small Web site (for fun only). Might not even
need
> a
> > database, but if there is SQL Server, that would be great. The cheaper,
> the
> > better. Free would be great, but I do want FTP access. Being able to
> upload
> > from VS.NET would be great too, but not essential. ASP.NET 1.1 is
> prefered.
> > Thanks.
also look at www.crystaltech.com
I have about 10 sites w/ them and totally satisfied. Support is fantastic
and they have a control panel powered by dot net that lets you administer
all aspects of your site
"Michael" <a@.b.c> wrote in message
news:OYaO3KIWDHA.2024@.TK2MSFTNGP12.phx.gbl...
> Thanks David. I'll check it out.
>
> "David Wier" <dwier@.nospamASPNet101.com> wrote in message
> news:%239huosGWDHA.1780@.TK2MSFTNGP11.phx.gbl...
> > I'm extremely happy with Webhost4life
> > (http://webhost4life.com/default.asp?refid=dwier)
> > They are very reasonable price-wise-quite a bit of web space and sql
> Server
> > space, if you need it - unlimited bandwidth and the service, as far as
> what
> > I've needed far outweighs most of the other hosting services I've tried
in
> > the past. -- unlimited domains (depending on space), subdomains, etc.
> > Note - I don't recommend them because of the referral program either - -
> > though that's a plus for me - - note, that my refreral id is in the link
> > above - - I've been with them almost a year and wouldn't recommend them
if
> I
> > wasn't going to stay
> > David Wier
> > http://aspnet101.com
> > http://aspexpress.com
> > "Michael" <a@.b.c> wrote in message
> > news:e8LsIkGWDHA.2272@.TK2MSFTNGP11.phx.gbl...
> > > At http://www.asp.net/Customers/Displa...x?IndustryId=27,
> > there
> > > are hundred of ASP.NET hosting companies.
> > > > Can you suggest one or a couple of good ones?
> > > > I'm looking to build a small Web site (for fun only). Might not even
> need
> > a
> > > database, but if there is SQL Server, that would be great. The
cheaper,
> > the
> > > better. Free would be great, but I do want FTP access. Being able to
> > upload
> > > from VS.NET would be great too, but not essential. ASP.NET 1.1 is
> > prefered.
> > > > Thanks.
> >
Also look at DiscountASP.net. Great for me!
"Michael" <a@.b.c> wrote in message
news:e8LsIkGWDHA.2272@.TK2MSFTNGP11.phx.gbl...
> At http://www.asp.net/Customers/Displa...x?IndustryId=27,
there
> are hundred of ASP.NET hosting companies.
> Can you suggest one or a couple of good ones?
> I'm looking to build a small Web site (for fun only). Might not even need
a
> database, but if there is SQL Server, that would be great. The cheaper,
the
> better. Free would be great, but I do want FTP access. Being able to
upload
> from VS.NET would be great too, but not essential. ASP.NET 1.1 is
prefered.
> Thanks.

Suggestion for App

I am trying to do a web page with a network status on it for several apps. I have tried it one way and posted it here but no replies. Any suggestions on how to have it ping a server with many different servers with online if it gets a reply or offline if it gets the time out or cant ping. Any helpe would be appreciated.

Thanks

To simply ping a server it is as simple asMy.Computer.Network.Ping("hostnameOrIp")

It will return true or false.


Cool. What I am trying to do is take that information and put in a page that says Online or Offline. But I have several Servers to do this. Any suggestions? Thanks for replying by the way.

Well, do one ping per server :P The way ping works is that it tries to send small packets to the destinated IP, if the data gets through we have PING! (funny word btw ;-). Things will get a bit different if you want to check if the server answers on specific ports. But just to do ping on several servers is piece of cake:

If My.Computer.Network.Ping("server1") = true
response.write("Online")
else
response.write("Offline")
end if

If My.Computer.Network.Ping("server2") = true
response.write("Online")
else
response.write("Offline")
end if


I would setup an ArrayList to hold all the servers, then loop through them, ping, and print their status:

Dim arrServersAs New ArrayList()Dim intCountAs IntegerDim strMessageAs StringarrServers.Add("192.168.1.100")arrServers.Add("192.168.1.101")arrServers.Add("192.168.1.102")For intCount = 0To arrServers.Count - 1 strMessage ="Server " &CStr(arrServers(intCount))If My.Computer.Network.Ping(arrServers(intCount))Then strMessage +=" is online"Else strMessage +=" is offline"End If Response.Write(strMessage)Next
 
Hope this helps! Please do not forget to mark the helpful post(s) as Answer so future readers know what solved your problem.

MY is requiring declaration and where is it to be declared?

IfMy.Computer.Network.Ping(arrServers(intCount))Then


Are you using ASP 1.x or 2.0?
2.0

Well that is really strange, becuase My works just fine and I have tested it.

It should be an automatically inherited namespace. I guess the only thing I can suggest you to try it to put

Imports My

at the top of the code behind.

Also, are you using C#?


Heck no. I can't stand anything to do with C. LOL I am using VB.

It works to an extent. I have about 14 servers I do this and I want to be able to do:

XXX Online or XXX Offline

YYY Online or YY Offline

Right now it is accounting all of the being online becasue it is going to the first one.


Thanks,


I got it to work. I had to alter some of the code. I got rid of the arrays and the loop. I did use the rest of your coding. I appreciate your help.
Glad you got it working! Please mark the most helpful post(s) asAnswer for the sake of future readers. Thank you.

Suggestion for free web based bug tracking software.

Can anybody make any suggestions on web based bug tracking software ? .Net
2.0 or 1.1 is fine.
Preferably something free (I realize I get what I pay for but....)
TIA - Jeff.BugTracker.Net :
http://www.ifdefined.com/bugtrackernet.html
http://sourceforge.net/projects/btnet/
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"UJ" <fred@.nowhere.com> wrote in message news:OSELN7pAHHA.1196@.TK2MSFTNGP02.phx.gbl...[colo
r=darkred]
> Can anybody make any suggestions on web based bug tracking software ? .Net
2.0 or 1.1 is fine.
> Preferably something free (I realize I get what I pay for but....)
> TIA - Jeff.
>[/color]

Suggestion needed for huge DataGrid

Hi all:
Our web site uses 3-tier structure, the middle tier is a web service. We
also use Microsoft Data Access Application Block to access sql server.
Now I have to display a DataGrid with huge amount of data on web page,
of course the DataGrid has pager. But even though, the web service still
will return full DataSet to web server, and let web server to handle pages.
Since Microsoft Data Access Application Block does not support
SqlDataAdapter.Fill(DataSet, startReocrd, maxRecord, tableName) to reduce
the size of DataSet. Do you think there is a better way to improve
performace?
Yes, I can always extend Microsoft Data Access Application Block and
build my own pager.

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours HardyHi Hardy,

May I suggest two solutions:
-if the full set of lines is going to be requested sooner or later, fill the
DataSet and place it in the Cache for the first time, then read it from the
Cache.
-if you don't need the full set of lines, you may use the SqlDataReader
combined with a TOP N command in your SQL query.
--
To reply, remove a "l" before the @. sign.

Arnaud Weil - MCT, MCSD.Net, MCAD.Net

Suggestion Regarding Securing the ASP.NET Web Page......

Hi Everybody,
I have problem regarding security of the page. I want that the every asp.net
web page is accessed via application. If a user directly access the page via
writing the address of the page in the address bar. Then It should be
blocked to access the page.
I have two options in my mind.
1. Using Query String Parameters
2. Using Session Object
But I got the following problem with these techniques.
WIth Query String the problem is that if the user access the page via
application then the query string parameters are shown in the address bar so
there he can used these parameters in the direct access, which i did not
want.
With Session Object, If the user login from the application then its session
is created. so now he can write the direct address in the address bar to
access the page directly which i dont want.
Actully My application is frames base application.
There are threee frames vertically
1) Header
2) Body ( Body Portion contains the two horizontal frames )
2.1) Menu
2.2) Content
3) Footer
In the menu area user selects the menu and against that menu the page is
loaded in the content portion.
So please help me how can i block user to access the page directly.
Regards,
Muhammad Jamil NawazThe Request object will have an HttpRequest.UrlReferrer Property. If this
property does not have a value then it means that the user has typed the
URI. This is not a foolproff method though but can still keep the average
user.
Regards,
Trevor Benedict R
MCSD
"Muhammad Jamil Nawaz" <jamfiza12@.hotmail.com> wrote in message
news:%23$JElX80FHA.2752@.TK2MSFTNGP12.phx.gbl...
> Hi Everybody,
> I have problem regarding security of the page. I want that the every
> asp.net
> web page is accessed via application. If a user directly access the page
> via
> writing the address of the page in the address bar. Then It should be
> blocked to access the page.
> I have two options in my mind.
> 1. Using Query String Parameters
> 2. Using Session Object
> But I got the following problem with these techniques.
> WIth Query String the problem is that if the user access the page via
> application then the query string parameters are shown in the address bar
> so
> there he can used these parameters in the direct access, which i did not
> want.
> With Session Object, If the user login from the application then its
> session
> is created. so now he can write the direct address in the address bar to
> access the page directly which i dont want.
> Actully My application is frames base application.
> There are threee frames vertically
> 1) Header
> 2) Body ( Body Portion contains the two horizontal frames )
> 2.1) Menu
> 2.2) Content
> 3) Footer
> In the menu area user selects the menu and against that menu the page is
> loaded in the content portion.
> So please help me how can i block user to access the page directly.
> Regards,
> Muhammad Jamil Nawaz
>
Use Session.
Use the sessionstate as "auto" mode (not cookieless = false) to also
take care of scenarios where cookies may be disabled (a large section
of corporates disable cookies).
Cheers,
Gaurav Vaish
http://mastergaurav.org
--

Suggestion/Reference/Idea on creating bulleting board by asp.net

Any one can give me some idea on how to start with creating a bulletin board for web site. A bulletin board which can display posted message and giving comments. Thanks on behalf

You may find many examples in the following links:

http://asp.net/ControlGallery/default.aspx?Category=34&tabindex=2

http://www.hotscripts.com/ASP.NET/Scripts_and_Controls/Discussion_Boards/index.html

Hope it helps.

suggestions

Hi, all:
i am currently working on a survey web site which is based on ASP.NET. Every
survey is over 100 questions and using two different languages (for example,
english and chinese), and 15 questions per page by request, also I need to s
tore
answers to database.
Here is my question, is there any way I can pull the "save to Database
function/module" out and save it to a standalone function/module so both
language web pages can re-use it without put it on every single page? and ho
w?
Thanks in advance.I'm not sure I understand your question. If your database is properly
designed and your application is well architectured, from the little I do
understand, you should be able to re-use the save functionality.
How are you doing it now and what problems are you running into?
karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Jason" <jason@.hotmail.com> wrote in message
news:t1buj01kue9g1d077hif2md9rc8m24murr@.
4ax.com...
> Hi, all:
> i am currently working on a survey web site which is based on ASP.NET.
Every
> survey is over 100 questions and using two different languages (for
example,
> english and chinese), and 15 questions per page by request, also I need to
store
> answers to database.
> Here is my question, is there any way I can pull the "save to Database
> function/module" out and save it to a standalone function/module so both
> language web pages can re-use it without put it on every single page? and
how?
> Thanks in advance.
Here is what I did so far:
Survey1-EN.aspx
Survey1-EN.aspx.cs
Survey2-EN.aspx
Survey2-EN.aspx.cs
Survey1-CN.aspx
Survey1-CN.aspx.cs
Survey2-CN.aspx
Survey2-CN.aspx.cs
the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user will
see
different language(English or Chinese) in each page. And I have a class call
ed
saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
standalone procedure so I do not need to have the saveToDB() in each *.aspx.
cs?
Thanks.
ASP.NET newbie!
On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
REMOVEMETOO . ANDME net> wrote:

>I'm not sure I understand your question. If your database is properly
>designed and your application is well architectured, from the little I do
>understand, you should be able to re-use the save functionality.
>How are you doing it now and what problems are you running into?
>karl
I've written a two part tutorial on this sort of thing:
http://openmymind.net/localization/index.html
http://openmymind.net/localization/index2.html
You should find it useful. It'll help you onl have 1 page for X languages
and give you some database design ideas.
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"J" <j@.NoSpam.org> wrote in message
news:9ghuj0ltoq4olrsd965ahsb08noq40kr4s@.
4ax.com...
> Here is what I did so far:
> Survey1-EN.aspx
> Survey1-EN.aspx.cs
> Survey2-EN.aspx
> Survey2-EN.aspx.cs
> Survey1-CN.aspx
> Survey1-CN.aspx.cs
> Survey2-CN.aspx
> Survey2-CN.aspx.cs
> the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user
will see
> different language(English or Chinese) in each page. And I have a class
called
> saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
> standalone procedure so I do not need to have the saveToDB() in each
*.aspx.cs?
> Thanks.
> ASP.NET newbie!
>
> On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
> REMOVEMETOO . ANDME net> wrote:
>
>

suggestions

Hi, all:
i am currently working on a survey web site which is based on ASP.NET. Every
survey is over 100 questions and using two different languages (for example,
english and chinese), and 15 questions per page by request, also I need to store
answers to database.
Here is my question, is there any way I can pull the "save to Database
function/module" out and save it to a standalone function/module so both
language web pages can re-use it without put it on every single page? and how?
Thanks in advance.I'm not sure I understand your question. If your database is properly
designed and your application is well architectured, from the little I do
understand, you should be able to re-use the save functionality.

How are you doing it now and what problems are you running into?

karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Jason" <jason@.hotmail.com> wrote in message
news:t1buj01kue9g1d077hif2md9rc8m24murr@.4ax.com...
> Hi, all:
> i am currently working on a survey web site which is based on ASP.NET.
Every
> survey is over 100 questions and using two different languages (for
example,
> english and chinese), and 15 questions per page by request, also I need to
store
> answers to database.
> Here is my question, is there any way I can pull the "save to Database
> function/module" out and save it to a standalone function/module so both
> language web pages can re-use it without put it on every single page? and
how?
> Thanks in advance.
Here is what I did so far:
Survey1-EN.aspx
Survey1-EN.aspx.cs
Survey2-EN.aspx
Survey2-EN.aspx.cs

Survey1-CN.aspx
Survey1-CN.aspx.cs
Survey2-CN.aspx
Survey2-CN.aspx.cs

the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user will see
different language(English or Chinese) in each page. And I have a class called
saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
standalone procedure so I do not need to have the saveToDB() in each *.aspx.cs?

Thanks.
ASP.NET newbie!

On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
REMOVEMETOO . ANDME net> wrote:

>I'm not sure I understand your question. If your database is properly
>designed and your application is well architectured, from the little I do
>understand, you should be able to re-use the save functionality.
>How are you doing it now and what problems are you running into?
>karl
I've written a two part tutorial on this sort of thing:
http://openmymind.net/localization/index.html
http://openmymind.net/localization/index2.html

You should find it useful. It'll help you onl have 1 page for X languages
and give you some database design ideas.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"J" <j@.NoSpam.org> wrote in message
news:9ghuj0ltoq4olrsd965ahsb08noq40kr4s@.4ax.com...
> Here is what I did so far:
> Survey1-EN.aspx
> Survey1-EN.aspx.cs
> Survey2-EN.aspx
> Survey2-EN.aspx.cs
> Survey1-CN.aspx
> Survey1-CN.aspx.cs
> Survey2-CN.aspx
> Survey2-CN.aspx.cs
> the only difference between Survey1-EN.aspx and Survey1-CN.aspx is user
will see
> different language(English or Chinese) in each page. And I have a class
called
> saveToDB() in each *.aspx.cs, so how can I let each *.aspx.cs call the
> standalone procedure so I do not need to have the saveToDB() in each
*.aspx.cs?
> Thanks.
> ASP.NET newbie!
>
> On Wed, 8 Sep 2004 13:37:09 -0400, "Karl" <karl REMOVE @. REMOVE openmymind
> REMOVEMETOO . ANDME net> wrote:
> >I'm not sure I understand your question. If your database is properly
> >designed and your application is well architectured, from the little I do
> >understand, you should be able to re-use the save functionality.
> >How are you doing it now and what problems are you running into?
> >karl

Suggestions and Help needed for Video report

Hi,

I need to create a web report that contains data and multiple video avi files. The report should able be exported to other formats , e.g. PDF, web archive.

I am thinking to provide a link to the video file, so when the user clicks on the link, the video is played in a pop up IE window which embeds a media player to play the video. And the link points to a Generic Handler file .ashx.
Else I may need to embed many media players in the HTML to play each avi files.

I need to export this report with all data and videos file. How can this be done with asp.net ReportViewer and SSRS ? Is it possible to intercept the export event and copy the video avi files before export ?
Any suggestions and ideas ?

Thanks in advance

Hello,

You can use gridview to show your reports and just use links for you to download avi files.

However, if you still want to use reportview control, here it is:

ReportViewer Sample ASP.NET Server Control

Binding Data to the ReportViewer Control Dynamically in ASP.NET 2.0