|
formS.submit() should do the trick for you!
Cheers!
|
|
|
|
|
Hi,
I want to ask where is the best place to save the web application version? because i want to show the version on my default page but I thought if there is a specific place to save other than Global file?
Thanks
|
|
|
|
|
Probably in web.cofig as It's not accessible from outside.
Regards,
Hiren.
Microsoft Dynamics CRM
"The difference between the impossible and the possible lies in a person's determination" - Tommy Lasorda
|
|
|
|
|
As Hiren suggested, you can save it in web.config . I have several projects (small as well big) saving it in config file.
|
|
|
|
|
Place it in web.config in app settings section. Then you will be able to read it easily in code like
ConfigurationManager.AppSettings["YourApplicationName:VersionInfo"]
I Web Development Free Lancer
Share your experience with others
Check my Blog...
|
|
|
|
|
If I have the following url currenty on my page?
http://www.JassimRahma.com/url/abc/database.aspx?id=345&cur=654
how can I determine the page name from my code to get:
database
Thanks
|
|
|
|
|
string sPath = System.Web.HttpContext.Current.Request.Url.AbsolutePath;
System.IO.FileInfo oInfo = new System.IO.FileInfo(sPath);
string sRet = oInfo.Name;
return sRet;
Regards,
Hiren.
Microsoft Dynamics CRM
"The difference between the impossible and the possible lies in a person's determination" - Tommy Lasorda
|
|
|
|
|
Hi,
I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :
Session.RemoveAll();
Response.Clear();
Response.Redirect("Default.aspx");
I am sure this is not enough.. am I right? so what else I should include there?
|
|
|
|
|
Q. What if the user hits CTRL+A, CTRL+C and then CTRL+V in notepad and forgets to close that?
A. It is there own stupid fault if others see the data
Where and when is your example code being called?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
musefan wrote: Where and when is your example code being called?
What is wrong with that question that gets a vote of 1?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
You need to clear the cache too. Refer this[^]
thatraja |Chennai|India|
Brainbench certifications Down-votes are like kid's kisses don't reject it Do what you want quickly because the Doomsday on 2012
|
|
|
|
|
You should really abandon the session rather than just remove all of the contents. The response.clear and redirect don't do anything to get rid of the history. You need to be looking more at the cache.
If you do everything in update panels or with other ajax methods, then the back button won't do much.
|
|
|
|
|
in UPS site there is a login button. when user click on a login button then a popup appear. so i want to design a div or iframe having save look & feel. the site url is http://www.ups.com[^].
please someone go there and help me to design same look and feel div.
thanks
tbhattacharjee
|
|
|
|
|
hi guys,
my site will be using ajax methods and i don't want clientside to view my ajax(js) code when they view
the source code of my site..
Does anyone know how i can hide my ajax files so that they are not viewable on clientside?
For instance you can import a css file using the @Import command..I tried something similar in javascript
with below code:
var script = document.createElement('script');
script.src = '../ajax/login/login.js';
script.type = 'text/javascript';
document.getElementsByTagName('head').item(0).appendChild(script);
with the above, none of my methods in the login.js file are loading...
Please help me.
|
|
|
|
|
By definition, a client side file (which your ajxx/javascript files are) are sent to the client. In plain text. So no matter what you do, you cannot stop a determined user from viewing them. You can minify and obfuscate them, but while that may deter an inexperienced user, it won't stop anyone that knows what they are doing.
But the question is: why do you want to? Never, ever, put sensitive data in a javascript file.
|
|
|
|
|
Try using some encryption or obfuscation method to secure your client side javascript.
I Web Development Free Lancer
Share your experience with others
Check my Blog...
|
|
|
|
|
In general, you can't hide something from the client if you need the client to use it. My suggestion would be to convert all your js files to aspx files and set the content type. Have them do a referer check and set the caching options to not cache. It won't be good for performance and it won't stop a seriously determined person, but it should be a pretty big speed bump to most people.
|
|
|
|
|
Hi ,
I am facing an error from a long time.
My web application some times gives error 'The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))' on server. I never comes on production server. Then I just upload the bin folder again on server and it starts running fine. I don't know what is the actual reason behind this.
Some experts suggested Min pool size =1, I applied that but no luck.
I have attached error image.
Please let me know if you have any clue
thanks
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Bajrang Singh wrote: I have attached error image.
Where is the link ? Could you please share so that we can check ?
|
|
|
|
|
Usually getting errors with an HRESULT is from when you are doing InterOp with non .Net code. Is there anything else you can tell us about the code?
|
|
|
|
|
May be you are right.
Actually I am using rackspace cloud storage and It needs .net 3.5 framework,
Though I am using VS 2008 at my local PC but hosting server .net 2.0 is used.
and it runs fine there on hosting server also. after 1-2 days it gives this error.
One more thing my Local IIS server is also using asp 2.0 version but it never gives error like this.
Any clue?
Thanks in advance
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Your test and development environments should always match the production environment in terms of framework version and IIS version. But aside from that you didn't say anything about the code. What does the code do? Does it always crash on the same page? Can you figure out what line or at least what method is cauing the error?
|
|
|
|
|
Thanks Gray for reply.
Since error comes on server, I am not able to get the exact line or page but once this error comes, it starts showing on all pages.
but funny thing is that when server stops and starts again, it start working fine again.
(I just renamed the web.config so site stop working and then undo renaming to start the server, and site starts working fine)
Do not know the exact problem,
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
Hai all ,
I need to get the value of template control in ultrawebgrid at server side. I have given runat="server" for the control but i cannot access the control at server side . Please Help me .
Thank u
|
|
|
|
|
hi,
i need to display Current.aspx page in PDF file . Could you please suggest me better way.
Regards,
Vishnu.
|
|
|
|