|
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
|
|
|
|
|
.netman wrote: I'm getting this error when I try and put the following control in my page:
<ajaxtoolkit:alwaysvisiblecontrolextender id="control" runat="server">
This error cause because of javascript.Can you post javascript code?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Um Im not using any javascript code for this page, its using an ajax control which I guess has some javascript written in it.
heres all the code:
<%@ Register
Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="test1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel runat="server" ID="UpdatePanel1" >
<ContentTemplate>
<div style="width:230px;height:100px">
<asp:Panel ID="timer" runat="server"
Width="250px" BackColor="White" ForeColor="DarkBlue"
BorderWidth="2" BorderStyle="solid" BorderColor="DarkBlue" style="z-index: 1;">
<div style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
<p>Current Time:</p>
<span id="currentTime" runat="server" style="font-size:xx-large;font-weight:bold;line-height:40px;"/>
</div>
</asp:Panel>
<ajaxToolkit:AlwaysVisibleControlExtender ID="avce" runat="server"
TargetControlID="timer"
VerticalSide="Top"
VerticalOffset="10"
HorizontalSide="Right"
HorizontalOffset="10"
ScrollEffectDuration=".1" />
</div>
<p>
Choose a position for the clock from the list below. Scroll your browser window to see
the control maintain its always-visible position.
</p>
<p>
</p>
</ContentTemplate>
</asp:UpdatePanel>
We are not a Code Charity
|
|
|
|
|
sorted it, I needed to change a setting in the web.config file
We are not a Code Charity
|
|
|
|
|
i want to add a checkbox dynamically in a gridview row according to my condition....i want to check if the user is paying the amount by DD/cheque...a column must be created with checkbox and if user checked that checkbox then a link named certificate should be displayed(a template field of gridview) and if checkbox is not checked that link shud be invisible...and if user is paying the amount in cash....that link certificate shuld be displayed.... please help me
|
|
|
|
|
Just hide the checkbox column and make visible when needed, this will save you creating a new column on the fly
We are not a Code Charity
|
|
|
|
|
I have an upload section to a site I have built where users can upload whatever files they want. Upon upload a new name is created using a randon string generator and saved into one folder. The new name and the original name are then stored in a database. Simple
The files are then displayed in a table on a page where the name of the link is the original name and the randon string name is the absolute link to the real file. This works fine but the file once downloaded comes with the random string as it's file name. How can I alter the name of the file back to it's original name when selected for download?
I don't have access to IIS so this needs to be done in code on the fly?
Many Thanks
|
|
|
|