Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Wednesday, March 28, 2012

Sudden Cookie problem is .aspx page


Cookie problem in .aspx application.

I have a cookie problem that makes no sense. I get this error when the page
loads:

Object reference not set to an instance of an object.

I am reading the cookie into a var with standard code.

Where the problem makes no sense is that this application sits on my
network, and all
other machines load the page fine. As has the page loaded on all machines
fine since the application
has been in development. Only now, there seems to be a problem.

The other machines are running XP Pro and Windows 2000 Pro, respectfully.
The machine that throws the error is running XP.

All machines have been updated regularly.

Does any know what in the world could be happening with the XP machine for
it never loads the cookie when the page is requested? (note, no privacy
changes have been made to the browser on the XP machine and the machine is
virus free)

Any help would be greatly appreciated.

Branton EllerbeePost your code please

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"branton ellerbee" <blrb@.sbcglobal.net> wrote in message
news:3olOb.6716$kg1.1173@.newssvr24.news.prodigy.co m...
>
> Cookie problem in .aspx application.
> I have a cookie problem that makes no sense. I get this error when the
page
> loads:
> Object reference not set to an instance of an object.
> I am reading the cookie into a var with standard code.
> Where the problem makes no sense is that this application sits on my
> network, and all
> other machines load the page fine. As has the page loaded on all machines
> fine since the application
> has been in development. Only now, there seems to be a problem.
> The other machines are running XP Pro and Windows 2000 Pro, respectfully.
> The machine that throws the error is running XP.
> All machines have been updated regularly.
> Does any know what in the world could be happening with the XP machine for
> it never loads the cookie when the page is requested? (note, no privacy
> changes have been made to the browser on the XP machine and the machine is
> virus free)
> Any help would be greatly appreciated.
> Branton Ellerbee

Sudden VS2003 Error

I was going along just fine developing an ASP.NET application using IIS on
my own machine. I had to reboot. When I came back, VS started acting
flakey. It would not reload my project claiming that it could not connect
to the url on my machine (something like http://localhost/myApplication).
"A connection with the server could not be established"
I tried this:
1) backed up all files
2) deleted the project folder from wwwroot
3) created a new web application in visual studio using the same name
4) copied all the source code files (no project or solution) into that
folder and added them to the new project
Worked fine at first and built just fine, but when I exited VS and came back
it would no longer load either.
Caveat 1: When I rebooted I changed my network password, but I don't expect
this should matter in any way.
Caveat 2: I am running McAfee Anti-Virus (required by the site whose machine
this actually is).
Tried to google the error for a solution, but nothing seems to fix it.
Any takers?Hi
There are known problems with McAfee and VS.NET.
If you are forced to use McAfee make sure the "buffer overload" option
is off.
Good luck.
Regards,
Daniel Roth
MCSD.NET
Dan,
I'll disable it, but can you tell me what effect it had on you, or how you
figured out that it was the problem?
<dan.c.roth@.gmail.com> wrote
> There are known problems with McAfee and VS.NET.
> If you are forced to use McAfee make sure the "buffer overload" option
> is off.

Sudden VS2003 Error

I was going along just fine developing an ASP.NET application using IIS on
my own machine. I had to reboot. When I came back, VS started acting
flakey. It would not reload my project claiming that it could not connect
to the url on my machine (something like http://localhost/myApplication).

"A connection with the server could not be established"

I tried this:
1) backed up all files
2) deleted the project folder from wwwroot
3) created a new web application in visual studio using the same name
4) copied all the source code files (no project or solution) into that
folder and added them to the new project

Worked fine at first and built just fine, but when I exited VS and came back
it would no longer load either.

Caveat 1: When I rebooted I changed my network password, but I don't expect
this should matter in any way.
Caveat 2: I am running McAfee Anti-Virus (required by the site whose machine
this actually is).

Tried to google the error for a solution, but nothing seems to fix it.

Any takers?Hi

There are known problems with McAfee and VS.NET.

If you are forced to use McAfee make sure the "buffer overload" option
is off.

Good luck.

Regards,
Daniel Roth
MCSD.NET
Dan,

I'll disable it, but can you tell me what effect it had on you, or how you
figured out that it was the problem?

<dan.c.roth@.gmail.com> wrote
> There are known problems with McAfee and VS.NET.
> If you are forced to use McAfee make sure the "buffer overload" option
> is off.

suddenly cant use breakpoints

this drives me cuckoo....

i have an application i've been working on for months and for some reason today the development environment completely ignores breakpoints. the app just runs and never breaks on any of my breakpoints. this happened to me once before but i can't recall what caused it.

anyone know what causes that?

Chances are you already checked these, but go to Build | Configuration Manager to make sure you're using the Debug mode. Also, run your app with F5, not Ctrl-F5. Finally, if you're using ASP.NET 2.0, be sure the following is in your Web.config file:

<compilationdebug="true"/>


i am in debug mode...

i use f5

i am not using 2.0 (use 1.1)

and yet it always goes right past any break points


close VS and restart it...

Also, is this ALL breakpoints? If you set one in the first page in the page_load does it stop?


i closed it down...restarted it...

put a break on page_load

it ignores it


Check in the Project Properties, make sure that "Enable ASP.Net Debugging" is checked...
it is checked

Check the web.config then...

<compilation.........debug="true"></compilation>


yes...web.config has debug=true

i just rebooted my machine but it still ignores breakpoints


Here's something you can try (copied from some other site):

Select "Debug" from the "Solution configuration" combobox which is embedded
into VS.NET's toolbar. If the project/solution is compiled using the
"Release" configuration, no debug symbols (PDB files) are created. Use this
configuration when compiling the release version of a product. If this
doesn't fix your problem, delete its "obj" and "bin" directories and
recompile.

Monday, March 26, 2012

Suggestion

Hello,

I am working on a e-commerce application, which should
allows me to add three values each time I add the items to
the basket. Now I wonder where and how I should store
these values so that I can reuse them in the next screen?

Please advise me.Two options that come to mind are in a database, and in the Session
object. Which one you pick really depends on the requirements of your
application. For instance, if you want a user to be able to add three
items to the shopping cart and come back three days later, you'll need
a persistant data store like a database.

You might want to check out the source code to the Commerce Starter
Kit: http://asp.net/Default.aspx?tabindex=8&tabid=47 This is a
learning tool and will give you some implementation ideas.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 15 Dec 2004 16:42:07 -0800, "Vishal"
<anonymous@.discussions.microsoft.com> wrote:

>Hello,
> I am working on a e-commerce application, which should
>allows me to add three values each time I add the items to
>the basket. Now I wonder where and how I should store
>these values so that I can reuse them in the next screen?
>Please advise me.

Suggestion

Hello,
I am working on a e-commerce application, which should
allows me to add three values each time I add the items to
the basket. Now I wonder where and how I should store
these values so that I can reuse them in the next screen?
Please advise me.Two options that come to mind are in a database, and in the Session
object. Which one you pick really depends on the requirements of your
application. For instance, if you want a user to be able to add three
items to the shopping cart and come back three days later, you'll need
a persistant data store like a database.
You might want to check out the source code to the Commerce Starter
Kit: http://asp.net/Default.aspx?tabindex=8&tabid=47 This is a
learning tool and will give you some implementation ideas.
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 15 Dec 2004 16:42:07 -0800, "Vishal"
<anonymous@.discussions.microsoft.com> wrote:

>Hello,
> I am working on a e-commerce application, which should
>allows me to add three values each time I add the items to
>the basket. Now I wonder where and how I should store
>these values so that I can reuse them in the next screen?
>Please advise me.

Suggestion for an "imagemap-like" location feature -- methods?

Hi, I'm creating an asp.net application and one of the functions I need
is to click on a "Where Is This Office Located?" button. In a table,
each employee will have an office code location entered.
I then need to have the office layout image load and have the name of
that person highlighted such as bold/red (in the correct office
location).
Similar to an image map, but not quite. I do not want to click on an
office "hotspot" and go to a URL. Not finding anything in my searches
other than typical image map methods.
Any guidance or suggestions much appreciated!
Thanks, Kat
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!Hi Kat,
Actually, nothing at all like an image map. Just an image. However, it has
to be dynamically-generated, as you want to "draw on it."
Let's analyze your requirements:
1. A user clicks on a link or button, or selects an item from a drop-down
list , or what-have-you. (I don't know which you would rather use)
2. A database is queried to get the file location of the appropriate image
and/or information from the database.
3. An office layout image is returned, with the user's name drawn on itin
bold/red letters.
Okay, so you can figure out number 1 for yourself. As for number 2 and 3:
a. The database is queried. Easy enough.
b. The image is fetched from its file location. Easy enough.
c. The image is drawn on. This is done using the System.Drawing and
System.Drawing.Imaging namespaces.
d. The image is returned to the browser. This requires that the image URL
point to an ASPX page that fetches the image, draws on it, sets the
Response.ContentType to "image/jpeg" (whatever MIME type you need), and
saves the image to the Response.OutputStream.
Okay, wait a second. We nede to back up. First, you need to identify the
user. This can be done with a "login" form in which the user supplies a user
id and password, and the data is stored on the server (Session, database,
Application Cache, etc).
That should do it!
HTH,
Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.
"KatB" <nospam@.comcast.net> wrote in message
news:ebePmxb%23EHA.1296@.TK2MSFTNGP10.phx.gbl...
> Hi, I'm creating an asp.net application and one of the functions I need
> is to click on a "Where Is This Office Located?" button. In a table,
> each employee will have an office code location entered.
> I then need to have the office layout image load and have the name of
> that person highlighted such as bold/red (in the correct office
> location).
> Similar to an image map, but not quite. I do not want to click on an
> office "hotspot" and go to a URL. Not finding anything in my searches
> other than typical image map methods.
> Any guidance or suggestions much appreciated!
> Thanks, Kat
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!
Kevin, very helpful, thanks. If I use a floor plan image with all the
office names already on it, and then just add a star graphic or
something to indicate the position requested...how would I know the
position of where to draw the star?
I assume I would have a db table of person, office number, and then the
coordinates of the "star". How would I determine those coordinates?
Sorry, if I'm being stupid!
In the meantime, I'll go read up on system.drawing having not used it
before.
Thanks, Kat
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
Hi Kat, there's a good layer of dust in this part of my mental technical
archives, so I leave the implementation details to you.
As I recall, the original image map technology, which I remember being
referred to as "server side imagemaps", could be used to determine the X, Y
coordinate within an image that a user clicked on. It was fairly
straightforward; you add a tag to your image (ISMAP, maybe) and a Url, and
when the user clicks somewhere on the image, a hit is made to your Url.
Again lots of dust here; check this carefully but I recall that the Url was
in a nonstandard format, something like;
/somepage.aspx?23,48
I.e. you have a querystring but it's not a typical key-value querystring.
You'll need to process it a little differently; grab the entire querystring
and split on the comma, or something similar.
The point is, it should be easy to create an administration page that allows
you to modify the details of an Office record.
Within this page, you could show the floorplan contain the star of the
current location of the office. Then if the admin-user clicks on the
imagemap, you capture the new X, Y, and update the Office record.
This is about the cheapest, crudest, simplest way I can think of to capture
image coordinates through a web app.
If you're lucky, there may be some javascript that can respond to the click,
and allow you to create a true ASP.NET control using true ASP.NET postbacks
and so on. If you're fantastically lucky, someone may have done this for
you already.
The trickiest part will be making sure that you know the OfficeID that the
X, Y should be applied to on the receiving page. You may need to insert the
OfficeID into the Url that's posted back to, so that you can process it out
at the receiving end. On that note, the Hyperlink control may give you the
capabilities you need, or you may be able to derive from it to get the right
capabilities.
Other approaches;
+ Use Flash
+ Use a WinForms application for capturing the X, Y clicks and updating the
Office records
+ Use ASP.NET but give the user some up, down, left, right arrows rather
than the ability to click on the image.
+ Use ASP.NET but put a series of small clickable carats along the top and
left of the floorplan image. These would be standard LinkButtons with a
small graphical carat. Clicking these would set the X or Y, respectively to
a value matching the position of the carat.
+ Build an ActiveX control
+ Build a .NET winforms control that's delivered to the webpage (the user
must have .NET installed however).
HTML is quite limited from this perspective, but I'm fairly certain the
tools are there if you're willing to make them work.
Best of luck;
/// M
"KatB" <nospam@.comcast.net> wrote in message
news:eZdOOVk#EHA.3616@.TK2MSFTNGP11.phx.gbl...
> Kevin, very helpful, thanks. If I use a floor plan image with all the
> office names already on it, and then just add a star graphic or
> something to indicate the position requested...how would I know the
> position of where to draw the star?
> I assume I would have a db table of person, office number, and then the
> coordinates of the "star". How would I determine those coordinates?
> Sorry, if I'm being stupid!
> In the meantime, I'll go read up on system.drawing having not used it
> before.
> Thanks, Kat
> *** Sent via Developersdex http://www.examnotes.net ***
> Don't just participate in USENET...get rewarded for it!
If you are open to use of commercial components to aid
in your project our MetaDraw control may be helpful
In MetaDraw you would have the office map created along with the
names of the all different individuals as text objects at their proper
locations. Save this layout as a MetaDraw data file. This is
all done ahead of time. Then when user clicks in a list on
a name you want to highlight you can tell MetaDraw to either
Hide all names but the desired name, or show all names but
only highlight ( bold or a bright color ) the desired name.
MetaDraw can be used server side in which case you have
MetaDraw save the resulting image ( with highlighted name, etc)
as a standard GIF, JPG, or PNG file and send that down to
the client. A more flexible approach is to use MetaDraw client
side - Sending the whole layout with all names, and then have
client side script hide or show the names, or even blink a name
on or off. You could also change the color of the room boundaries,
Scroll, Zoom, Print... etc.
Take a look at www.Bennet-Tec.com
Reply here if this seems like something of interest.
* * Please include a copy of this message with your reply
Jeff Bennett
Jeff @. Bennet-Tec.Com
* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com
=================== ===================

Suggestion for an "imagemap-like" location feature -- methods?

Hi, I'm creating an asp.net application and one of the functions I need
is to click on a "Where Is This Office Located?" button. In a table,
each employee will have an office code location entered.

I then need to have the office layout image load and have the name of
that person highlighted such as bold/red (in the correct office
location).

Similar to an image map, but not quite. I do not want to click on an
office "hotspot" and go to a URL. Not finding anything in my searches
other than typical image map methods.

Any guidance or suggestions much appreciated!

Thanks, Kat

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!Hi Kat,

Actually, nothing at all like an image map. Just an image. However, it has
to be dynamically-generated, as you want to "draw on it."

Let's analyze your requirements:

1. A user clicks on a link or button, or selects an item from a drop-down
list , or what-have-you. (I don't know which you would rather use)
2. A database is queried to get the file location of the appropriate image
and/or information from the database.
3. An office layout image is returned, with the user's name drawn on itin
bold/red letters.

Okay, so you can figure out number 1 for yourself. As for number 2 and 3:

a. The database is queried. Easy enough.
b. The image is fetched from its file location. Easy enough.
c. The image is drawn on. This is done using the System.Drawing and
System.Drawing.Imaging namespaces.
d. The image is returned to the browser. This requires that the image URL
point to an ASPX page that fetches the image, draws on it, sets the
Response.ContentType to "image/jpeg" (whatever MIME type you need), and
saves the image to the Response.OutputStream.

Okay, wait a second. We nede to back up. First, you need to identify the
user. This can be done with a "login" form in which the user supplies a user
id and password, and the data is stored on the server (Session, database,
Application Cache, etc).

That should do it!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"KatB" <nospam@.comcast.net> wrote in message
news:ebePmxb%23EHA.1296@.TK2MSFTNGP10.phx.gbl...
> Hi, I'm creating an asp.net application and one of the functions I need
> is to click on a "Where Is This Office Located?" button. In a table,
> each employee will have an office code location entered.
> I then need to have the office layout image load and have the name of
> that person highlighted such as bold/red (in the correct office
> location).
> Similar to an image map, but not quite. I do not want to click on an
> office "hotspot" and go to a URL. Not finding anything in my searches
> other than typical image map methods.
> Any guidance or suggestions much appreciated!
> Thanks, Kat
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
Kevin, very helpful, thanks. If I use a floor plan image with all the
office names already on it, and then just add a star graphic or
something to indicate the position requested...how would I know the
position of where to draw the star?

I assume I would have a db table of person, office number, and then the
coordinates of the "star". How would I determine those coordinates?
Sorry, if I'm being stupid!

In the meantime, I'll go read up on system.drawing having not used it
before.

Thanks, Kat

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi Kat, there's a good layer of dust in this part of my mental technical
archives, so I leave the implementation details to you.

As I recall, the original image map technology, which I remember being
referred to as "server side imagemaps", could be used to determine the X, Y
coordinate within an image that a user clicked on. It was fairly
straightforward; you add a tag to your image (ISMAP, maybe) and a Url, and
when the user clicks somewhere on the image, a hit is made to your Url.
Again lots of dust here; check this carefully but I recall that the Url was
in a nonstandard format, something like;

/somepage.aspx?23,48

I.e. you have a querystring but it's not a typical key-value querystring.
You'll need to process it a little differently; grab the entire querystring
and split on the comma, or something similar.

The point is, it should be easy to create an administration page that allows
you to modify the details of an Office record.

Within this page, you could show the floorplan contain the star of the
current location of the office. Then if the admin-user clicks on the
imagemap, you capture the new X, Y, and update the Office record.

This is about the cheapest, crudest, simplest way I can think of to capture
image coordinates through a web app.

If you're lucky, there may be some javascript that can respond to the click,
and allow you to create a true ASP.NET control using true ASP.NET postbacks
and so on. If you're fantastically lucky, someone may have done this for
you already.

The trickiest part will be making sure that you know the OfficeID that the
X, Y should be applied to on the receiving page. You may need to insert the
OfficeID into the Url that's posted back to, so that you can process it out
at the receiving end. On that note, the Hyperlink control may give you the
capabilities you need, or you may be able to derive from it to get the right
capabilities.

Other approaches;

+ Use Flash
+ Use a WinForms application for capturing the X, Y clicks and updating the
Office records
+ Use ASP.NET but give the user some up, down, left, right arrows rather
than the ability to click on the image.
+ Use ASP.NET but put a series of small clickable carats along the top and
left of the floorplan image. These would be standard LinkButtons with a
small graphical carat. Clicking these would set the X or Y, respectively to
a value matching the position of the carat.
+ Build an ActiveX control
+ Build a .NET winforms control that's delivered to the webpage (the user
must have .NET installed however).

HTML is quite limited from this perspective, but I'm fairly certain the
tools are there if you're willing to make them work.

Best of luck;

/// M

"KatB" <nospam@.comcast.net> wrote in message
news:eZdOOVk#EHA.3616@.TK2MSFTNGP11.phx.gbl...
> Kevin, very helpful, thanks. If I use a floor plan image with all the
> office names already on it, and then just add a star graphic or
> something to indicate the position requested...how would I know the
> position of where to draw the star?
> I assume I would have a db table of person, office number, and then the
> coordinates of the "star". How would I determine those coordinates?
> Sorry, if I'm being stupid!
> In the meantime, I'll go read up on system.drawing having not used it
> before.
> Thanks, Kat
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
If you are open to use of commercial components to aid
in your project our MetaDraw control may be helpful

In MetaDraw you would have the office map created along with the
names of the all different individuals as text objects at their proper
locations. Save this layout as a MetaDraw data file. This is
all done ahead of time. Then when user clicks in a list on
a name you want to highlight you can tell MetaDraw to either
Hide all names but the desired name, or show all names but
only highlight ( bold or a bright color ) the desired name.

MetaDraw can be used server side in which case you have
MetaDraw save the resulting image ( with highlighted name, etc)
as a standard GIF, JPG, or PNG file and send that down to
the client. A more flexible approach is to use MetaDraw client
side - Sending the whole layout with all names, and then have
client side script hide or show the names, or even blink a name
on or off. You could also change the color of the room boundaries,
Scroll, Zoom, Print... etc.

Take a look at www.Bennet-Tec.com

Reply here if this seems like something of interest.

* * Please include a copy of this message with your reply

Jeff Bennett
Jeff @. Bennet-Tec.Com

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com
=================== ===================

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
--

Saturday, March 24, 2012

Suggestions Needed[8-)]

Hi,

I am currently developing a web application in ASP.Net using C# and MySql. Can anyone suggest any free Forum that I can use in my Web Application ? and does anyone know of a good tutorial on how to use Crystal Reports with such an appication

Thanks

You may want to start at the following website:

Open Source Software in C#

There you will find free forum software, and much more.

Suggestions on tools,. 3rd party, etc. for Equipment Scheduling Application

Hi -

I need to develop an application that will allow a manager to keep track of what equipment is being used, for what purpose, and for how long. This application would allow this division to see current equipment in use and what has been scheduled for the coming week(s), and also assist in forecasting for future work or possible bids.

I really do not have any constraints imposed on me for what development tools I can use, whether its or smart client or thin client mult-tier application (I suppose I could even use MS Access, but am not considering such an option...). Does anyone have any suggestions on not only on what might be the best architecture, such as web-based vs. smart client, but if they are aware of any good resource scheduling components that I could purchase to augment the application? This is a very broad and open-ended question, but any input on this is greatly appreciated.

Thanks!My experience comes from the ASP.NET side. Yet, I used to build Windows apps for a living and feel that they provide a FAR better UI for a business app. The decision to make it HTML or smart client is significant and not one we should make for you. It determines the limitations and choices you will have due to different platforms.

ASP.NET has a rich variety of third party tools. You are asking about scheduling. There are date entry controls (mine isPeter's Date Package) and scheduling tools that provide the UI. These sites offer lists of them: this site's Control Gallery, www.123aspx.com, and www.411asp.net. IMO, www.123aspx.com and www.411asp.net present the category better (more products listed).
But don't stop after finding date and scheduling tools. You are building an application. There are a multitude of elements you will add to your pages or windows. On ASP.NET, think about numeric entry textboxes, validation, data grids, menus, tabs, etc. (MyProfessional Validation And More handles numeric entry textboxes and validation for example.) All of these can be found on the sites I mentioned.

I also recommend posting very specific product category questions in the Component Reviews forum here on www.asp.net.
Thank you very much for the suggestions. I like the tools you have on your site and have made not of them. Although ASP.NET is a huge improvement over previous scripting languages, I am aware of the fact that there is still a bit more technology involved in thin client development than a smart client may require. I first disliked thin client development, but grew to enjoy this type of work, especially when it came to implementing changes.

When I see such rich UI interaction available in tools such as you provide, my pride kicks in and says that surely I can develope an enterprise wide application in ASP.NET (as if Smart Client were a cave in on my part?). There really is only one consideration that I have that would push me in the browser based development direction, which is the fact that my company would like to have an internet/extranet presence. As a result I justify that learning and developing a solid foundation for our internal clients could then be extended to those outside our network. After 10 years of development experience I would think that I would be able to easily decide which development path to take. I believe I am concerned that if I choose the ASP.NET route, I may find myself in no-man's land and regret the decision.

Thank you so very much for your time and I will keep you in mind for future development needs!
Here's another bit of info that will further confuse the issue: The "Longhorn" initiative from Microsoft. It is the next generation Windows platform. Pretty much a rewrite the same way Win95 was to Win 3.1. It uses the .net technology. My understanding is that Windows apps written in .net are "native".

Here is what I gathered about it so far. Consider these interpretations. Read the MSDN site for published statements...
Part of this initiative appears to be the goal to replace the browser for business apps. Smart clients is the way to go. I personally like this idea because I crave tremendous improvements in the client-side toolset that are already there in the Windows side of app development. While the browser won't disappear, Microsoft seems to want to marginalize it to a specific class of uses and my guess is those are really want the browser was originally intended: browsing pages!

sugggestion

Hello,

Anybody can tell me why I am getting this error while running ASP.NET Web Application. Before running some other same type of web form, I was not having any difficulty.

I am using virtual lab for "Developing Microsoft® ASP.NET Web Applications Using Visual Studio® .NET"

ruprety

Server Error in '/WebApplicationXML' Application. ('/WebApplicationXML' is Project name)
------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'WebApplicationXML.Global'.

Source Error:

Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.vb" Inherits="WebApplicationXML.Global" %
Source File: c:\inetpub\wwwroot\WebApplicationXML\global.asax Line: 1

------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573Hi,
Usually it happens if application was not compiled successfully.

Thursday, March 22, 2012

Support

is it possible to invoke an hour glass in my asp .net application when I
invoke a user action such as clicking a button.
I've tried putting "Document.style.cursor=Wait" in the beginning of the
JavaScript function and changing the cursor back to "Default" at the end,
but of no use.

My problem is that the cursor is changing to the hour glass only after the
entire function gets executed, which makes the purpose nullified. Please let
me know what I can do in this aspect or is there any way I can forcefully
invoke the hour glass (or at least some flashy progress bar) immediately
after I click the button.You can place on JavaScript that changes to hourglass, then run the rest of
the code, then change it back. It is also possible to place a "waiting"
layer up for the user and then have client side script make the layer
invisible.

There is not much else you can do, as you are running all code on the client
side.

BTW< some of the groups you have crossposted are really not on topic.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Support" <anonymous@.discussions.com> wrote in message
news:eqTg$tITEHA.3768@.TK2MSFTNGP11.phx.gbl...
> is it possible to invoke an hour glass in my asp .net application when I
> invoke a user action such as clicking a button.
> I've tried putting "Document.style.cursor=Wait" in the beginning of the
> JavaScript function and changing the cursor back to "Default" at the end,
> but of no use.
> My problem is that the cursor is changing to the hour glass only after the
> entire function gets executed, which makes the purpose nullified. Please
let
> me know what I can do in this aspect or is there any way I can forcefully
> invoke the hour glass (or at least some flashy progress bar) immediately
> after I click the button.

Support

is it possible to invoke an hour glass in my asp .net application when I
invoke a user action such as clicking a button.
I've tried putting "Document.style.cursor=Wait" in the beginning of the
JavaScript function and changing the cursor back to "Default" at the end,
but of no use.
My problem is that the cursor is changing to the hour glass only after the
entire function gets executed, which makes the purpose nullified. Please let
me know what I can do in this aspect or is there any way I can forcefully
invoke the hour glass (or at least some flashy progress bar) immediately
after I click the button.You can place on JavaScript that changes to hourglass, then run the rest of
the code, then change it back. It is also possible to place a "waiting"
layer up for the user and then have client side script make the layer
invisible.
There is not much else you can do, as you are running all code on the client
side.
BTW< some of the groups you have crossposted are really not on topic.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
****************************************
********
Think Outside the Box!
****************************************
********
"Support" <anonymous@.discussions.com> wrote in message
news:eqTg$tITEHA.3768@.TK2MSFTNGP11.phx.gbl...
> is it possible to invoke an hour glass in my asp .net application when I
> invoke a user action such as clicking a button.
> I've tried putting "Document.style.cursor=Wait" in the beginning of the
> JavaScript function and changing the cursor back to "Default" at the end,
> but of no use.
> My problem is that the cursor is changing to the hour glass only after the
> entire function gets executed, which makes the purpose nullified. Please
let
> me know what I can do in this aspect or is there any way I can forcefully
> invoke the hour glass (or at least some flashy progress bar) immediately
> after I click the button.
>

Supressing Menu and Toolbars on Webpage

Hello All,

I'd like for my ASP.NET application to look like an application and not have
to display the menu and toolbars in the browser window.

In order to do this now I use a response.write and imbed javascript to do
window.open and include parameters to suppress these items. This causes
problems for users that have a popup stopper installed as the resulting
window is a popup and is usually suppressed.

Please let me know if you have any tips on a workaround for this issue.

I'd also like to find a way to automatically maximize the browser window
since the app looks better in full screen mode.

Any help you all can provide is greatly appreciated.

Thanks, Herbfor the maximize try
fullscreen=yes

as for a workaround for the pop-up blocker... God I hope not. That would
defeat the purpose. Tell you clients to "not block" your site.

Personally...any site that tries to even resize my window is immediately
put on my "do not visit" list. I think you may want to revisit your
approach... Web apps should never adjust or take over any settings on a
client's machine really, especially not if it's a public site.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com

"Herb Stull" <stullhe@.nauticom.net> wrote in message
news:403cd2e1$1_2@.news.nauticom.net...
> Hello All,
> I'd like for my ASP.NET application to look like an application and not
have
> to display the menu and toolbars in the browser window.
> In order to do this now I use a response.write and imbed javascript to do
> window.open and include parameters to suppress these items. This causes
> problems for users that have a popup stopper installed as the resulting
> window is a popup and is usually suppressed.
> Please let me know if you have any tips on a workaround for this issue.
> I'd also like to find a way to automatically maximize the browser window
> since the app looks better in full screen mode.
> Any help you all can provide is greatly appreciated.
> Thanks, Herb
Curt:

I have an application for an intranet that I'm writing and I would like to
start the users in full screen mode when they begin the application.
Presently I tell them to press F11 to go to full screen - is there a way to
call the 'fullscreen=yes' from within VB.NET - or is there a way that I can
do it with a javascript on the default.aspx page?

Thanks,

Fred

"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:OC1IC17%23DHA.1956@.TK2MSFTNGP10.phx.gbl...
> for the maximize try
> fullscreen=yes
> as for a workaround for the pop-up blocker... God I hope not. That would
> defeat the purpose. Tell you clients to "not block" your site.
> Personally...any site that tries to even resize my window is immediately
> put on my "do not visit" list. I think you may want to revisit your
> approach... Web apps should never adjust or take over any settings on a
> client's machine really, especially not if it's a public site.
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> www.Darkfalz.com
>
> "Herb Stull" <stullhe@.nauticom.net> wrote in message
> news:403cd2e1$1_2@.news.nauticom.net...
> > Hello All,
> > I'd like for my ASP.NET application to look like an application and not
> have
> > to display the menu and toolbars in the browser window.
> > In order to do this now I use a response.write and imbed javascript to
do
> > window.open and include parameters to suppress these items. This causes
> > problems for users that have a popup stopper installed as the resulting
> > window is a popup and is usually suppressed.
> > Please let me know if you have any tips on a workaround for this issue.
> > I'd also like to find a way to automatically maximize the browser window
> > since the app looks better in full screen mode.
> > Any help you all can provide is greatly appreciated.
> > Thanks, Herb
Just so you're aware-- going fullscreen without the user's permission is
going to get harder in Windows XP SP2.

If you want the user to see your application in fullscreen mode, why not
give them a custom .HTA file to run which pulls in your webpage in an
IFRAME?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Fred Nelson" <fred@.smartybird.com> wrote in message
news:Ocwm1J8#DHA.2480@.TK2MSFTNGP12.phx.gbl...
> Curt:
> I have an application for an intranet that I'm writing and I would like to
> start the users in full screen mode when they begin the application.
> Presently I tell them to press F11 to go to full screen - is there a way
to
> call the 'fullscreen=yes' from within VB.NET - or is there a way that I
can
> do it with a javascript on the default.aspx page?
> Thanks,
> Fred
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:OC1IC17%23DHA.1956@.TK2MSFTNGP10.phx.gbl...
> > for the maximize try
> > fullscreen=yes
> > as for a workaround for the pop-up blocker... God I hope not. That
would
> > defeat the purpose. Tell you clients to "not block" your site.
> > Personally...any site that tries to even resize my window is
immediately
> > put on my "do not visit" list. I think you may want to revisit your
> > approach... Web apps should never adjust or take over any settings on a
> > client's machine really, especially not if it's a public site.
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > www.Darkfalz.com
> > "Herb Stull" <stullhe@.nauticom.net> wrote in message
> > news:403cd2e1$1_2@.news.nauticom.net...
> > > Hello All,
> > > > I'd like for my ASP.NET application to look like an application and
not
> > have
> > > to display the menu and toolbars in the browser window.
> > > > In order to do this now I use a response.write and imbed javascript to
> do
> > > window.open and include parameters to suppress these items. This
causes
> > > problems for users that have a popup stopper installed as the
resulting
> > > window is a popup and is usually suppressed.
> > > > Please let me know if you have any tips on a workaround for this
issue.
> > > > I'd also like to find a way to automatically maximize the browser
window
> > > since the app looks better in full screen mode.
> > > > Any help you all can provide is greatly appreciated.
> > > > Thanks, Herb
> >

Tuesday, March 13, 2012

Switch Off IE (Internet Explorer) Toolbars?

Hi All,

Can anoyone tell me how to:

Switch Off IE (Internet Explorer) Toolbars when my browser windo opens in my application.

crte a button that will close my page

cheers

any help most appreciated

rgs

TonyHi Tony,
You can not do it in current window. You can instead open new window without toolbars and close current. Seethis.
Hi

Thanks for that, just one question...where do I insert in in the asp.net page as I already have script tags with asp.net in them!!!

many thanks

Tony
Hi,

I have use default.aspx that redirects to app mainpage:

private void Page_Load(object sender, System.EventArgs e)
{
string apu = "/Application/AppMainPage.aspx";

string Script = "";

Script += "\n<script language=JavaScript id='StartMainWindow'>\n";
Script += "poppedwin = window.open('"+apu+"','Appmain','resizable=yes, width=1024,height=768,statusbar=no'); \n";
Script += "mainwindow = window.self; \n";
Script += "mainwindow.opener = window.self; \n";
Script += "mainwindow.close(); \n";
Script += "poppedwin.focus(); \n";
Script += "</script>";

Response.Write(Script);
Response.End();
}

I hope this helps.

- Antti -
Hi Tony,
You can insert client script tag anywhere you want (and more then one). Client script tags have no runat="server" attributes and processed differently from server side asp.net script tag.

switch statement error?

This is my first application so be gentle. :) I'm using WebMatrix.
I have the following code in index.aspx

<script runat="server">
switch(Request.QueryString["page"]) {
case "products":
masterForm.Controls.Add(LoadControl("products.ascx"));
break;
}
</script
masterForm is the id of the form tag in index.aspx

I am basically trying to dynamically include each section and use index.aspx as the master template file.

Here's the error:
Compiler Error Message: CS1519: Invalid token 'switch' in class, struct, or interface member declaration

It's stopping on the line with the switch statement.

What am I doing wrong?what is "page" in the following code

switch(Request.QueryString["page"])


page is supposed to be coming from:

index.aspx?page=products
ok I think the problem is that you are declaring switch in the HTML View. You need to run this code in the code behind file where all the Page_Load and Page_Init methods are. I hope you understand what I am trying to say.
Thanks, that did it!


<script runat="server">
void Page_Load() {
switch(Request.QueryString["page"]) {
case "products":
masterForm.Controls.Add(LoadControl("products.ascx"));
break;
}
}
</script>

Mohammed, WebMatrix doesn't permit the use of CodeBehind.

grizjr, you need to place the switch in the Page_Load method. For example:

 void Page_Load(Object Sender, EventArgs E) {

switch (...) {
...
}
}

Obviously you've decided against my suggestion of simplifying your code.
The code is not working properly.
<script runat="server">

void Page_Load() {

switch(Request.QueryString["page"]) {

case "products":

masterForm.Controls.Add(LoadControl("products.ascx"));

break;

}

}

</script>
When I try and run it: I get this message:

Active Server Pages-Error 'ASP 0124'

Missing Language attribute

/nbhs/control-panel/switch.asp, line 2

The required Language attribute of the script tag is missing.

Active Server Pages-Error 'ASP 0124'


What tag is it missing?Tongue Tied [:S]


Now that problem is fixed with this line of code:
<script language="vbscript" runat="server">
I just needed to add language="vbscript"
now I get another problem
This is the code that I have:
<script language="vbscript" runat="server">

void Page_Load(Object Sender, EventArgs E) {
switch(Request.QueryString["page"]) {

case "products":

masterForm.Controls.Add(LoadControl("products.ascx"));

break;

}

}

</script>

The error that I get is this:


Microsoft VBScript compilation error-Error '800a03ee'

Expected ')'

/nbhs/control-panel/switch.asp, line 5

void Page_Load(Object Sender, EventArgs E) {
--------^

How can I fix this?