|
You need to Google for general stuff. Ask specific questions in the forums such as a snippet of code not working.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
What's the code in C# to go back to previous page at a linkbutton's click event?
Kareem Elhosseny
|
|
|
|
|
elhosseny wrote: What's the code in C# to go back to previous page at a linkbutton's click event?
If your page is having referrer you can use Response.Redirect(Request.UrlReferrer.AbsolutePath) .
|
|
|
|
|
hi N a v a n e e t h
plz inform me about referrer i miss this point
Kareem Elhosseny
|
|
|
|
|
Referrer contains the details of the referring page for the current page. Assume you have two pages A and B . And you are taking page B from page A . So referrer of page B is page A. You can check the methods available in Request.UrlReferrer . Before implementing redirect, you should make sure that you are getting Referrer.
Happy Programming
|
|
|
|
|
can you help me?
keep Learning and you never will be out of date...
|
|
|
|
|
Disabling browser SaveAs option ? Use only scripts in your page like what Gmail is using. This will save blank page when user uses saveas option.
|
|
|
|
|
Hi
I have developed asp.net application so i need to deploy on the server so i can access it from other computers within the company but always gives me this error" An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.and when i publish it locally it still give errors
" after i published it try to run it from my internet explorer.
Mamphekgo
|
|
|
|
|
|
HI ALL
In my asp application i have a data grid, can i hide the empty columns in run time. like i am accessing the values from same table for the 2 categories ie in case of software there is data in key skill column the other two fields process and typing speed are empty, same way for BPO category only typing speed data is there other two fields key skill and process is empty. so i just want the columns which is having data
Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
R u taking one column or three column to display data in datagrid?
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
as i am displaying all catories in same datagrid i need to take all columns. I only want to hide it if its empty
Prakash Mishra(Banglore,India)
|
|
|
|
|
Implement following logic:
dgrd.Columns(i).Visible = False
Note: i represents column index
Regards,
Vipul Mehta
Sr. Software Engineer
Accenture Services Pvt Ltd
|
|
|
|
|
Thanks
Actually now how i solved is i took three data grid and made it visible according to my need, any way ur solution is smarter.
Thanks a lot
Prakash Mishra(Banglore,India)
|
|
|
|
|
Ur solution will work fine but this will make ur page quite bulky & also will increase the redundancy of ur logic.
From maintainance perspective ur solution might proved to be bit dicy.
Regards,
Vipul Mehta
Sr. Software Engineer
Accenture Services Pvt Ltd
|
|
|
|
|
Hey peeps,
I have a site running .net 2.0. The site is hosted on a server farm.
On the guestbook page i seem to get attacked by a bot trying to post some nasty urls. But the bot don't succed, it gets a "Validation of viewstate MAC failed" error. I catch all errors in the global file and log it. Therefor i can see this happens quite often, more than 20 times a day.
I have posted a trace file where the exception happens here.
The header of the guestbook files is as followed.
<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/Default.master"
AutoEventWireup="true" CodeFile="Guestbook.aspx.cs" Inherits="Guestbook" Title="Untitled Page" Culture="da-DK"%>
I have been forced to turn Validaterequest off, to allow users to html format their posts in the guestbook.
Does anybody have an idea to how i can prevent this error from happening.
-Anders
|
|
|
|
|
Check this[^] for the error information.
dm52j wrote: i seem to get attacked by a bot trying to post some nasty urls. But the bot don't succed,
Why don't you block such kind of bots with CAPTCHA ?
|
|
|
|
|
Already have blocked, with CAPTHA. But this error appears anyhow
|
|
|
|
|
It looks like it might be a cross page posting error - someone is trying to post to your page and it can't handle it.
Google a bit on cross page posting for advice.
|
|
|
|
|
Sounds like this could be my problem, i will try google it some more and see if i can come up with a solution myself. But if anybody should have one at hand, i would greatly appreciate it.
Tanks you Paddy, for the help so far.
-Anders
|
|
|
|
|
HI all,
I am an asp.net (C#) programmer. and I want to build a cms tool for my client to manage their site.
can you guys recommend a good cms tool for me.
thanks.
|
|
|
|
|
|
|
select wef,weeklyoff,empTimePoliciesId from emptimepolicies where wef >= #2\1\2006# and employeeid=928
is there any problem in the above query?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Yeah, the #'s don't look right to me. What makes you ask ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|