|
|
If I use the external utility to encrypt the connection string in web.config, will .net automatically know how to decrypt it when I build table adapters and such?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
No
You will have to programaticly decrypt connection string before opening database.
Why do you want to encrypt it?
If ISS is normaly configured, you cant get Web.config.
PS: You cant decrypt one way encriptions (Hash) like md5.
|
|
|
|
|
Saksida Bojan wrote: Why do you want to encrypt it?
My boss wants it encrypted.
Saksida Bojan wrote: If ISS is normaly configured, you cant get Web.config.
What does that mean?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: What does that mean?
It means that unothorized persons can't get web.config via browsers.
John Simmons / outlaw programmer wrote: My boss wants it encrypted.
If so, then stay away from one way encryptions.
|
|
|
|
|
Saksida Bojan wrote: It means that unothorized persons can't get web.config via browsers.
Evidently, that doesn't matter if IIS can be hacked and a remote user can gain access to the server.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
i have already created help file using robohelp and set map ID for each topic. So different id's and .htm files are there. I want to open the help file to the corresponding topic for each aspx page, when I press F1 key. But I don't know how to connect the map id through my web page. I tried with 'onHelp' event in script. But it only opens the help file, not the corresponding topic. Is using 'onHelp' in , the right way? Or any other better way is there to trap the F1 key? Please explain what are the steps for the corresponding problem.please give information for the corresponding problem.
hashim
|
|
|
|
|
R/s sir,
i have two pages default1.aspx and default2.aspx. there is a button in default1 page, i want to control transfer to another page, like when i click this butoon then some value has to changed in another page.
thanks in advance.................
yogesh
|
|
|
|
|
Hi Yogesh,
Sending Value and Sending Control is Total Diiferent Things.
yogesh_softworld123 wrote: i want to control transfer to another page,
If This is your Query can explain in details
yogesh_softworld123 wrote: when i click this butoon then some value has to changed in another page.
And if This is your query , u can easily do it using Session or Query String
e.g
private void Button1_Click()
{
Session["Myvalue"]=TextBox1.Text;
Response.Redirect("Default2.aspx");
}
and in Default2.aspx
Form_load()
{
Textbox2.Text=Session["MyValue"].ToString();
}
-------------
Did u get your answer ???? Then Vote it.
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|
|
R/s sir,
i want to do something like...... there is two pages first page has a button and i want to use click event method of this button in another page. so what can i do it, it is possible or not. this is very argent.
i will be heighly oblise u
thanks in advance
yogesh
yogesh
|
|
|
|
|
|
That is impossible to achive, because you dont have direct accses to diffrent page like application.
One way to achive this is to use session, and somehow you triger to refresh that page, and if session is there then trigger that event.
Also you coud use class, and that trigger woud be in static class, first page and second page woud refer to that function.
I can say one thing.
If there is a way to avoid such programing, Don't think the second time.
|
|
|
|
|
write this code on page load event
ButtonName.PostBackUrl = "default.aspx?value1=" & value1 & "&&" & "value2=" & value2 & "
Thanks
Sarfarj Ahmed
|
|
|
|
|
I want to create a new custom web control by extending the 1)HTMLInputFile control and 2)File Upload control
The purpose of extending the control is to add the following functionalities not provided by the controls:
a.Selection of Folders
b.Retrieval of the folder path
Can someone tell me the proper way of doing it,so that I can drag it from the toolbox and use it.
I shall be grateful for this help.
Thanks in advance for your time and effort.
Sunny74.
|
|
|
|
|
Those controls render as an input element with type="file". The functionalty that you want to change is part of how that element works, and can't be changed.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
|
How to main page from a popup window.
More Information
on main.aspx got a link button when you click the link button then it will open a popup window popup.aspx (i need it because i have to add information). when you close the popup.aspx then i need to refresh my main.aspx page automatically.
also is their any way without closing popup.aspx you cant use main.aspx
Waiting for your reply
Sarfarj Ahmed
|
|
|
|
|
You can use window.opener.location.reload(true); to refresh the parent window.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Thanks A Lot
Could you please tell me how can I lock main.aspx when popup.aspx will open. If you close popup.aspx then main.aspx will be unlock
Sarfarj Ahmed
|
|
|
|
|
hi
In my one Page i have given two different validation group to different validator.i want on some condition one validation group control check or other on second condition .Those condition i want to check on one button .Is this possible .if Yes then give me some idea.
Jintal Patel
|
|
|
|
|
Jintal Patel wrote: Is this possible
I believe that Validation Group Control in ASP.NET 2.0 has been added to serve only this purpose. It is Possible.Each Validation control has a validationControl property. Use the Property to specify the validationGroup correctly.
Note : Button Control has a ValidationGroup Property to set the appropriate validation.
Regards - J O N -
|
|
|
|
|
how can i upload a file without html file field, like clicking a button,the path can get from a textbox.
Thks
|
|
|
|
|
ypki wrote: how can i upload a file without html file field, like clicking a button,the path can get from a textbox.
That's impossible.
If you don't want to use a file field, you have to use a component in the browser, that reads the file on the client computer and sends it to the server.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I answered your question in the previous post of you about the same problem. You need to just add some fore functionality to it.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|