|
Hi,
Thnaks for replying.
I just don't Want to show an Confirm message.
I want that after the Button is clicked it calls a method for validation of the page. If the input textbox's Value is Less then 100 to say I want to show the confirm popup ur entry is less than 100 are u sure u want to proceed with this?
hope u understand the situation
Thanks and regards
Sangram
(A battle with self)
Life is simple, we are the ones makes the living difficult
|
|
|
|
|
Well then put that bit of code checking the less than 100 in the last bit of the onclick event of the button.
Not sure how you would include the javascript code in that though
We are not a Code Charity
|
|
|
|
|
please some one help i make a web application in asp.net with ajax...its working fine on local but when i upload it on net it is giving the javascript error "sys is undefined" and my ajax functionality is not working please tell me the solution
|
|
|
|
|
|
|
i didn't get the solution so i asked it again
|
|
|
|
|
It is considered a very rude way in discussion forums to make a post appear sticky (on top) in an unauthorised fashion.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Try joinng forums.asp.net, you might have more luck there, if someone didnt answer the first time chances are they dont know the answer
We are not a Code Charity
|
|
|
|
|
i was too much tensd so i askd it agn....i m sorry for that...but i didn't mean that u undrstan...u askd so i simply explain... that i didn't get answer......sry once agn if u think i was rude
|
|
|
|
|
Hey, does anybody know of a blog/forum combination suite for ASP.NET? I've used BlogEngine.NET before, and YAF as a Forum engine, and love them both, but since they're different systems, they don't share login credentials. Or, does anybody know how to incorporate, say, BlogEngine.NET with an ASP.NET forum suite? If not, maybe I'll have to just roll my own. It'd be time consuming as heck, but fun, too, I'd imagine.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Wouldn't community-server address your concerns?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
All the world's a stage,
And all the men and women merely players.
They have their exits and their entrances;
And one man in his time plays many parts... --William Shakespeare
|
|
|
|
|
Maybe. But every mention of it I've read in the past has been pretty much negative. Also, I'm looking for open source, as my needs are for a personal web site, not corporate.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Couldnt you just use the same database and merge the login tables into one?
We are not a Code Charity
|
|
|
|
|
Yeah, that's what I'm considering. I need to ascertain how hard it would be to merge both systems. I was mostly curious if anybody had existing code. Well, if I do so myself, I'll just have to post said code here for anyone else looking to do the same thing.
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
Hi
I created my site in asp.net 1.1 It has been running for quite a while now. However, recently, I have started having problems with it.
First, I was have a 'Unable to validate data' problem. I resolved this issue by adding the following to my web.config file:
<pages buffer="true">
enableSessionState="true"
enableViewState="true" enableViewStateMac="false" />
However, I am having another strange problem. I have a secure page (Web_page.aspx) and requires the user to be logged in to the site. I perform this check with the following code in web_page.aspx:
if(!Context.User.Identity.IsAuthenticated)
{
Response.Redirect("login_page.aspx");
}
else { continue with the page}
The problem is that: If a person is logged in and he clicks on the web_page.aspx link, the system redirects them to login.aspx page (the system should take them to the web_page.aspx page because the user is already logged in). At this if the user clicks on web_page.aspx link AGAIN, then it works correctly, i.e. I am taken to web_page.aspx.
As you can see, I have to click TWICE on this link to make it work correctly. This is happening with ALL the pages that require login. Very strange indeed.
Any idea what is happening here?
My system was working correctly in the past. This problem has just emerged.
|
|
|
|
|
What kind of Authentication you are using. Are you using some custom one or soem built in ASP.NET like Froms etc?
Cheers,
Ashik
|
|
|
|
|
To me , it does not seem like a authentication or session expiration problem. The users are still logged in when they click on the link twice.
It seems more like a caching problem on the client side
|
|
|
|
|
Have u first time checked the condition in the page load event when it redirects to login page?
Does the IsAuthenticated come False ?
Ashik
|
|
|
|
|
I originally posted this in the C# forum but was advised this may be the better place to get the answer.
I have a checkboxlist with different items. I have a comma separated values field that I need to bind to this cbl. The cbl is in a detailsview. I know that I need to loop through the dataset rows so each record in the detailsview is bound with the correct information, however I have only figured out how to bind the first row in the dataset for every record in the detailsview. I know I need to loop through the dataset but am not sure how to do it at the same time as looping through the rows in the detailsview. This below function is called onDataBinding. Can anyone assist?
Thanks in advance!
public void FillControls()
{
int intSN = Convert.ToInt32(Request.QueryString["LookUp"].ToString());
Selections db = new Selections();
DataSet ds = db.Services(intSNo);
int iCount = ds.Tables[0].Rows.Count;
if (iCount != 0)
{
if (dvGetMoreData.CurrentMode != DetailsViewMode.Insert)
{
FillMultipleCheckboxesWithValue((CheckBoxList)dvGetMoreData.FindControl("cblSvcs"), ds.Tables[0].Rows[0]["Services"].ToString());
}
}
}
~Candi
~Candi
|
|
|
|
|
I believe that in FillMultipleCheckboxesWithValue() runs some code for you that will make your problem clearer to me. Can you include this code in your reply?
|
|
|
|
|
Here is the FillMultipleCheckboxeswithValue
public void FillMultipleCheckboxesWithValue(CheckBoxList cbl, string strDBValue)
{
CheckBoxList chkFind = cbl;
string strEval = strDBValue;
if (strEval != " ")
{
string[] arrEval;
arrEval = strEval.Split(',');
int iCount = chkFind.Items.Count;
for (int i = 0; i < iCount; i++)
{
foreach (string str in arrEval)
{
if (chkFind.Items[i].Value.ToString() == str)
chkFind.Items[i].Selected = true;
}
}
}
}
~Candi
|
|
|
|
|
Just exactly what do you mean by "rows of the DetailsView"?? That doesn't make sense in the context of the problem, as each DetailsView should be associated with exactly ONE row (at a time) of the data source.
To review (and make sure we're on the same page) a DetailsView is designed to show one record (the "detail") of a list of records. Most often, the DetailsView is associated with something a like a GridView, so that by selecting one of the records displayed in the GridView you can look at it up close in the DetailsView.
I don't know in what context you're using the DetailsView. Is it standalone, so that you need to hit buttons to move it backward and forward? Is it associated with a GridView?
|
|
|
|
|
I am using the DetailsView as a standalone, yes. But when the checkboxes are populated, each record in the DetailsView displays the same checkboxes selected as the first record. However I have checked the data and the correct data is coming in. So I have narrowed the issue down to the population of the checkboxes. I don't know how to iterate through the records in the DetailsView so that the correct checkboxes are selected for each record.
~Candi
|
|
|
|
|
The answer is simple: your binding function never changes the Row index, so you always fetch data from the same row. You need to change the row to select the record you wish to currently display.
Some control is responsible for accepting the user's choice to change the current record. How does the user select when to move from one record to another? push a button? press Page Down or Down Arrow? I'm assuming it's a button of some sort, and the way to do this is by modifying the Click handler. Can you please attach the Click handler? or explain why that is impossible, if it is impossible? Thanks in advance.
|
|
|
|
|
The user pages to move from one record to another. This is the event that is called when they click to go to the next page of the detailsview.
public void dvGetMoreData_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
{
dvGetMoreData.PageIndex = e.NewPageIndex;
BindData();
}
~Candi
|
|
|
|