|
how should i create a hit counter in asp.net 2.0 c#
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
I would suggest you can have a look at http://www.hotscripts.com/[^] under ASP.NET category.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
There are plenty out there:
http://www.devnewz.com/2004/0127.html
http://www.google.co.uk/search?hl=en&q=hit+counter+asp.net&btnG=Google+Search&meta=
We are not a Code Charity
|
|
|
|
|
I want to control the formatting of native type in my ASP.net application globally. For dates and times, I have used something similar to the following -
Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = <config value="">
Thread.CurrentThread.CurrentCulture.DateTimeFormat.FullDateTimePattern = <config value="">
I need a similar method for floats and doubles, as larger values get displayed in the exponent format (1E+...), which sometimes doesn't play nice with some javascript validators.
Thanks.
|
|
|
|
|
Basically, I have a menu button on START.ASPX that fires off a javascript postback w/ script redirecting the page to GOTO.ASPX.
But the click on the Nav button just posts back to START.ASPX.
Moreover, START's form tage is coded as
but when I view source in browser the action="START.aspx".
I need the form top runat server, so how can I have the Nav button correctly post to GOTO.aspx?
|
|
|
|
|
I believe runat=server form would always reset the form action to the same page.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
However you do need the runat tag for any server controls inside the form to work
We are not a Code Charity
|
|
|
|
|
Hello Friends
I want to Know how print c#. Please hlep me.
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
This question has nothing to do with ASP.NET.
If you google, you'll find good articles on the printing framework in C#.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Height of stupidity.
Piyush Vardhan Singh wrote: printing bill
The subject says 'printing bill'.
Piyush Vardhan Singh wrote: how print c#.
A broken phrase like this is just but hilarity.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Very nice question
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
i'm using Visual Studio Team System 2008.I coded the web application and i want to unit test the code. how to do it?? when i added a test project to the solution, the code generated is some thing like this....
plz help me in testing it.....
Actual code:
private void SetNextSelection(int questionId, int answerId)
{
DecisionTreeFrontProcess decisionTreeFrontProcess = new DecisionTreeFrontProcess();
DataTable historyTable;
if (Cache[QUESTION_ANSWERS_HISTORY_TABLE] != null)
{
historyTable = (DataTable)Cache[QUESTION_ANSWERS_HISTORY_TABLE];
}
else
{
historyTable = decisionTreeFrontProcess.HistoryTable;
}
FDefinitionQuestion[] questionDefinitions = (FDefinitionQuestion[])Cache[QUESTION_DEFINITION];
FDefinitionQuestion questionDefinition = decisionTreeFrontProcess.GetQuestionDefinition(questionDefinitions, questionId);
decisionTreeFrontProcess.ModifyQuestionDefinition(historyTable, questionDefinition.AnswerDefinitions, answerId, questionDefinition);
FDefinitionQuestion nextQuestionDefinition = decisionTreeFrontProcess.GetNextQuestionDefinition(questionId, answerId, questionDefinitions);
if (nextQuestionDefinition.DefinitionQuestionId == -1)
{
SetActionMessage();
}
else
{
SetAllControlValues(nextQuestionDefinition);
}
Cache[QUESTION_ANSWERS_HISTORY_TABLE] = historyTable;
AddQuestionAnswersHistoryToTableControl(historyTable, decisionTreeFrontProcess);
}
the test code.
[TestMethod()]
[HostType("ASP.NET")]
[AspNetDevelopmentServerHost("C:\\ING(Local)\\9. New Decision Tree POC\\ING.DecisionTree.Application", "/")]
[UrlToTest("http://localhost:1701/")]
[DeploymentItem("ING.DecisionTree.Application.dll")]
public void SetNextSelectionTest3()
{
DecisionTreePage_Accessor target = new DecisionTreePage_Accessor();
int questionId = 0;
int answerId = 0;
target.SetNextSelection(questionId, answerId);
Assert.Inconclusive("A method that does not return a value cannot be verified.");
}
regards, Kranti...
|
|
|
|
|
I have a DataBound CheckBoxList. It works fine if the number of selection is incresed, but if it is decreased, then it doesn't work - keeps the old value.
Here is part of my code:
<br />
if (!Page.IsPostBack)<br />
{<br />
cblRole.DataTextField = "ROLE_DESC";<br />
cblRole.DataValueField = "ROLE_DESC";<br />
cblRole.DataSourceID = "dsRole";<br />
cblRole.DataBind();<br />
}<br />
protected void btnSaveRole_Click(object sender, EventArgs e)<br />
{<br />
}<br />
protected void cblRole_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
}<br />
Any ideas? Thanks.
Ekjon
|
|
|
|
|
In server side validations , if i got multiple errors how can i show as a summary in top of the page, suggest me any ideas if u have.
Regards
|
|
|
|
|
|
Hi all,
I have some java script code like this
$8.18 AUD = $
currency_show_conversion(8.18,"AUD","CAD");
The output displays in form as 8.18 AUD= 17.23 CAD like this.....
I need to get the values in to a label box,instead of the form.How can i display the values in Label Box.????if anybody having idea please suggest a solution..
Thanks in advance,
Bijesh
|
|
|
|
|
bijeshputhalath wrote: How can i display the values in Label Box.????
Is this for a web page (HTML)? If so there is no such thing as a "Label Box". You will have to learn HTML well enough to intelligently formulate your question if you want us to help you. For Learning HTML and Javascript try the tutorials at www.w3schools.com as a starting point.
led mike
|
|
|
|
|
Hi,
Not in HTML Page.I need to show in aspx page .
Thanks
|
|
|
|
|
bijeshputhalath wrote: Not in HTML Page.I need to show in aspx page .
Wow, I thought I was in a different forum, my fault.
This asp.Label
<asp:Label ID="labelTest" runat="server" Text="Label"></asp:Label>
Becomes the following in the browser (you can see this by using the browsers "View Source" menu item)
<span id="labelTest"><span id="labelTest">Label</span></span>
So for IE Browser (I don't know about a cross browser solution) the script would be:
document.getElementById("labelTest").innerText = "Hello World";
Keep in mind that ASP can alter names if they are nested inside ASP container controls so using the View Source is a way to determine that.
led mike
|
|
|
|
|
Hai,
Thanks for your continues help.How can I assign the script funtion returns value in to label or text box ? please give any sample codes.
Thanks and regads
Bijesh
|
|
|
|
|
bijeshputhalath wrote: Not in HTML Page.I need to show in aspx page
ASPX renders as HTML in the web browser. You mostly need to deal with SPANs, as I guided you in my other reply.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Labels are mostly rendered as SPANs and you can write on them using .innerHTML or .innerText properties.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hai,
Thanks for your help.But how I get values in to Label or text box from that script funtion.If any sample code means it will be very helpful.
Thanks and regards
Bijesh
|
|
|
|
|
I am having trouble with my grid view. I have a couple of drop down list that are binded to their own SQLDataSource using the same connection string as what the gridview uses. One drop down box is binded to list all the radios assigned to a person. So it list all the people under the ASsigned_To Column (Distinct). Ok works good. Now the other one is by the Tag number on the radios. List all the tag numbers that are in the database, works good.
Now when I choose a person lets say Jacob Dixon, the grid view ONLY displays the radios that are assigned to me. That is how it is suppose to work. Now when I click the UPDATE button after doing this select statement (which is done by the gridview datasource: GridViewDataSource.SelectCommand = "SELECT * FROM Radio_Table WHERE Assigned_To = DropDownList1.SelectedValue.ToString()";
but after you click the update it refreshes the gridview I guess its doing a DataBind when you click update (I dont know hwere, I didn't put it in there), then it refreshes it and puts all the information back in there and uses the first item in the list to do the update. Which isnt the row I clicked update on.
Now if I have the gridview display all the information and go to page 3 or whatever page and click update it works correctly. Both display the textboxes so you can update, but only one selects the correct row you clicked update on.
Also how do I set it where Tag_Number column cannot have duplicate numbers? Like Row 1 tag_number cannot have 5050, and row 50 tag_number cannot have 5050 also. They have to be different. This information is entered in by the user but if there are duplicate tag_numbers then the user messed up somewhere on entering data because in our agency you cannot have duplicate tag numbers with our products.
|
|
|
|
|
Hi
I'm getting this error when I try and put the following control in my page:
<ajaxToolkit:AlwaysVisibleControlExtender ID="control" runat="server">
I have vwd2008 and the new ajax downloaded but it keeps showing the error message in the title when I run the app
any help would be great!
We are not a Code Charity
|
|
|
|