|
DateTime dt = Session["Date1"] as DateTime;
if(dt != null)
{
Date1.Text = dt.ToString("yyyy-MM-dd");
Date1.Text = dt.ToString("yyyy-MM-dd HH:mm:ss");
}
else
{
}
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.
|
|
|
|
|
I have a Modal Popup Extender which I show on two different Button click events i.e
btnAddNew_Click() & having imgbtnNew as TargetControlID.
the problem is I want Two of the Textboxes txtFullName & txtShortName to be Disabled or Visible false on imgbtnNew_Click()
Where as Visible True on btnAddNew_Click()
Can anyone help....
|
|
|
|
|
I think you can ask the sender "sender" who fired the and called the function. I just used it a couple of days ago. You could of just Googled it to get the anwser.
string strID = ((System.Web.UI.Control) sender).ID;
{EDIT]
or you can use the .OnClientClick to issue some javascript to change the display state of the textbox from block to none. The javascript is fake, and just meant to give you an idea of how to use OnClientClick
.OnClientClick = "var txtID = getElementByID('txtBox'); txtID.style.display = 'none'; return true;"
|
|
|
|
|
While Executing the asp.net (C#) page. I found an error called Expected ')'. Actually the code block and design block doesn't contain any error..but it representing such error.. need to resolve it. kindly help me to solve this issue
dhipika g
|
|
|
|
|
The close brace is missing and you need to find it. Given the amount of code you've shown, I'd suggest looking over there behind the aspidistra.
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|
|
It could be in a user control. You'll have to find it. If the compiler expects something, you must give it. It is king.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Try debugging your source code. Looks like a query has a missing bracket somewhere.
|
|
|
|
|
The error will be displayed in your 'Output' window. Double click on the error message and it should take you to the line of code that is in error.
Once at the line in error make sure you have the same amount of matching open and closing brackets.
You error is common with something like e.g.
lnTemp = Len(lsAmount
should be for example
lnTemp = Len(lsAmount)
I hope this helps.
Kind Regards
Julian Mummery
|
|
|
|
|
check all the files aspx.cs and .aspx and .cs files.
suchita
|
|
|
|
|
I need to show below content on tooltip.Is it possible ?
Why do I need to confirm my contact details?
Arena Animation offers free Career Counselling by telephone. For this, we need to make sure that the person we have reached is the right one.
Ever been annoyed by a pesky tele-caller? Someone who calls you at random times of the day & night? Yes, we know exactly how that feels.
Arena Animation respects your privacy.
Our Counsellors ensure that they call you only with your permission. For this, we want you to confirm that the details you enter are correct & that there are no mistakes.
How do I confirm?
Simple! Just check your SMS/ email!
The moment you enter your phone number & email ID, Arena sends you a special code via SMS & email. Once you enter this code on our page, we know that this is your number & your email address - for real! Only after this confirmation do our Counsellors get a go-ahead to contact you.
So, to receive free Career Counselling from Arena, simply enter your correct number & email address on this form!
|
|
|
|
|
I would suggest using a jQuery plug-in to do tooltips since you want to do some formatting. Plus, since the text is so long no one could read it all with a standard tooltip because they disappear after X seconds.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
When I run the selected file and press upload image files the following error:
Compilation Error
Description: An error occurred during three days the compilation of a resource required to service this request. Please review the specific error details and modify sau your source code appropriately.
Compiler Error Message: CS0103: The name 'Common' does not exist in the current context
Source Error:
Line 51:
Line 52: / / file name to not be centralized file + extension of the file to upload
Line 53: strFileName = Common.GetFileName () + System.IO.Path.GetExtension (Hinh1.FileName) / / this line error immediately
Line 54:
Line 55: / / Path Large file I save
Common under which this namespace? I have tried namespace
using System.Data.Common;
but not
|
|
|
|
|
|
Did you copy this code from somewhere else? Common is somebody's namespace, it is not built-in to System. See previous comment on how to get FileName or find the Common namespace in your App.
Quote: An error occurred during three days What? Three days?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I am adding some additional code to a C# 2010 web form application that I would like suggestions on how to accomplish the following:
1. I just created an additonal web form page to an existing application so the user can enter more information. I basically want the user to hit the 'back' button so they can return to the original web page and correct the values for up to 4 specific fields. There are two additional fields that the user is not allowed to change.
2. To point the user to the previous page, I do the command, "Response.Redirect("~/Att.aspx"); This works,
3. I want to be able to load all the information the user has entered already when the user returns to this web page. When the user returns to this webpage, the data has already been stored in two tables in the database.
4. Thus I am looking for your suggestion on how to accomplish this goal. I am thinking of the following options:
a. returning the user to the orginal web page in the state it was when they hit the 'next' button to go to the previous webpage. However I do not know how to proceed with this method.
b. Obtain the values from the database, or
c. use session variables. Thus can you tell me what you think the best method would be and examples of code of how you would accomplish this goal?
|
|
|
|
|
I would probably use session variables.
The details are all here: ASP.NET Session State Overview[^].
In the OnClick button method on the first page I would store the values in session variables and read them on the next form as required. When you navigate back to the first form repopulate appropriate fields with the session values. I'll leave it you to work out the particulars but the article link above should get you going.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I am already passing data to the second page as session varirables.
When I return to the first page, I would need to pass session variables from page two to page one. I would need to create new session variables for page 1, correct?
|
|
|
|
|
Hmm ... I was thinking of getting the data from the database.
My reason for this is that since you are adding functionality to an existing application, then let's assume that "Page 1" is a complete, working entity.
Now you add "Page 2" to the applicaiton and you build it in such a way that it stands on it's own and can store the additional fields. You just now provide a link which would bring them back to "Page 1" which should know nothing about "Page 2" nor the data that it stores.
Nice. Clean.
Now if the data between Page 1 & 2 are more intricately related, it may not be so easy to implement it this way. One thing you should protect against is that the user cannot navigate to Page 2 without completing Page 1.
Just a though.
Remember to vote.
|
|
|
|
|
Under some circumstances, you might want to post one page to another page. For example, you might be creating a multi-page form that collects different information on each page. In that case, you can configure certain controls (those that implement the IButtonControl interface, such as the Button control) on the page to post to a different target page. This is referred to as cross-page posting. Cross-page posting provides some advantages over using the Transfer method to redirect to another page
http://msdn.microsoft.com/en-us/library/ms178139.aspx[^]
|
|
|
|
|
144 Points
137 Posts
columns in multiple rows issue?
4 minutes ago|LINK
Hi friends,
I want to build a gridview from a view join two tables Customer and CustomerAddress table..
BUt the format in which my end user wants is the problem i am facing
The gridview should look like this
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
so..on
The column 5,6,7 fields should always come below the column 1,2,3 fields....Can i format my gridview to look like this or use any other control and in the end this would make my job simple (i guess) to export to excel in same format...Thank you in advance for all you help and suggestions
|
|
|
|
|
akpaga22 wrote: Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Colum1 Column2 Column3
xx xxx xxx
Column4 Column5 column6
xxx xxx xxxx
Hi,
You can use TemplateField for doing the same.
Here is the example
<pre lang="VB">
<asp:TemplateField>
<ItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="column1" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column2" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column3" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td>
<%#Eval("field1")%>
</td>
<td>
<%#Eval("field2")%>
</td>
<td>
<%#Eval("field3")%>
</td>
</tr>
<tr>
<td>
<asp:Label ID="column4" runat="server" ForeColor="GrayText" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column5" runat="server" Text=""></asp:Label>
</td>
<td>
<asp:Label ID="column6" runat="server" Text=""></asp:Label>
</td>
</tr>
<tr>
<td>
<%#Eval("field4")%>
</td>
<td>
<%#Eval("field5")%>
</td>
<td>
<%#Eval("field6")%>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
Hello all
I hope that one helps me to save image into database by MVC3 razor
Greetings
|
|
|
|
|
export button in crystal reports are not working in IE7.why?
|
|
|
|
|
|
you can enable this button by javascritp
|
|
|
|