|
suhaib1982 wrote: want to prevent user from making changes to querystring coz i pass some parameters
You can never have any control over what user will have in their query string. User can anytime modify querystring and sent a http get request. Only thing you can try to get your needed portion to work on.
You can try basic form submission using post method in case you want to secure sumiiting data in login page.
Thanks,
Arindam D Tewary
|
|
|
|
|
you can use encryption techniques to encrypt your query string values before passing.
so that user can never get the idea about it.
|
|
|
|
|
You'll have to not use a querystring if you don't want the querystring to be edited (which it always can).
The easiest is to use the Session object to store your value temporarily.
|
|
|
|
|
Passing data values between Web pages has many applications, including maintaining personal user information. Legacy Web solutions, like using the querystring and cookies, allows you to pass and maintain values, and you can easily direct one page to another when submitted. ASP.NET 1.1 supported these solutions as well as additional ones, but ASP.NET 2.0 addresses the issue head on by supporting cross page postbacks. This makes it easy for one Web page to process data from another. Take advantage of this new concept when you're working on your next ASP.NET 2.0 application.
Please check this link :Cross-Page Posting in ASP.NET Web Pages
|
|
|
|
|
IF u wanna to transfer data from one page to another page usually we used to go for query string.
here what method we using to transfer data is the thing..
we can transfer data in two ways
Response.Redirect("page1.aspx"?z);-----this method does not have masking(means hide the data on the address bar)
or
Server.Transfer("page1.aspx"?z);------this has masking(means hide the data on the address bar)
|
|
|
|
|
Why not using a post method for sending the parameters.. Also, you can use session variable, or a cookie so that a common user wont be able to modify such details as such..
- jaypatel512
|
|
|
|
|
Hi,
How to Hide the Address bar and status bar, Asp.Net in Visual Studio 2008. I want the page to look like a windows form.
Thanks,
|
|
|
|
|
Are you trying to hide address bar and status bar in web browser??
Thanks,
Arindam D Tewary
|
|
|
|
|
|
|
You cannot do that from server side, as you dont have access to the clients browser settings.
A possible - nearly - solution would be to use javascript (and windows.open) like described in
this thread. But, like mentioned there, the
user can prohibit hiding bars in different browsers. And it will certainly not look like a windows form.
Another possibility is to use divs/panels - which look like windows forms - and make use of the ajaxcontroltoolkit (and the popup-extender controls etc.) to open/close these divs/panels. For
the user it "feels" like an seperate window/page then, even if it isnt. There are also some rich (and free) java ui kits out there, which provide these kind of "windows" functionality. The advantage is that
popup blockers dont block these "popups" because they arent popups..But it is certainly more difficult
to get dynamic content working in these szenarios.
Check componentone.com for an commercial example (window control in asp.net suite).
|
|
|
|
|
|
I guess this is a popup window opened using javascript this way. This was also described in the
link i gave you in the last post. You can use client-side scripting to modify the page appearance.
|
|
|
|
|
In javascript use the open method to create a new window that contains Sample.htm. The new window is 200 pixels by 400 pixels and has no status bar, no toolbar, no menu bar, or address field.Please check the following example:
window.open("Sample.htm",null,
"height=200,width=400,status=no,toolbar=no,menubar=no,location=no");
|
|
|
|
|
Ok, thanks, i solved my problem.
|
|
|
|
|
Hi koncuk,
I have similar problem. Can you please post the trick which solved your problem?
Thanks in adavance.
Please let me know the solution.
|
|
|
|
|
I ADDED THE template field in grid view using above link
but i am not able to read the data from the template field in a grid.
Thanks and regards,
Amit PAtel
|
|
|
|
|
Amit Patel1985 wrote: I ADDED THE template field in grid view using above link
I didnt find any link
Amit Patel1985 wrote: but i am not able to read the data from the template field in a grid.
How are you trying, in which method.
Can you put your code snippet?
|
|
|
|
|
You have missed the link
What does it mean ' am not able to read the data from the template field '? Did you get any error? exception ?? or anything ? Unless you provide any information how could people help you ??
Thanks,
Arindam D Tewary
|
|
|
|
|
we have a set of images to be displayed in order so v have put a table and used to specify image inspite of giving proper width height the image is being showed in a very large size that it is very difficult to view.
How to make it fit to our size?
I am giving my coding for reference if any error please tell me
<asp:tablerow id="TableRow9" horizontalalign="Center" verticalalign="Middle" runat="server">
<asp:tablecell id="TableCell10" horizontalalign="Center" verticalalign="Middle" runat="server">
<asp:image id="Image7" runat="server" imagealign="Middle">
|
|
|
|
|
If you want to fix the size of image then, there is a Height & Width properties in asp:Image control which you can set like
<asp:image id="Image7" runat="server" height="100px" widht="100px" imagealign="Middle">
Hope the help.
|
|
|
|
|
Inspite of specifying the height and width it is being seen in a large view that is the problem.
|
|
|
|
|
since u suggested i had tried <asp:image id="Image7" runat="server" imagealign="Middle" height="100px" width="100px">
after specifying this the image itself is invisible
|
|
|
|
|
thank you for your help It worked
|
|
|
|
|
give the height and width of Image control
|
|
|
|