|
How we can convert mm/dd/yyyy datetime format into dd/mm/yyyy format without any string manipulation. because here datetime variable is used for billing purpose ?
|
|
|
|
|
you can specify the format in DateTime.ToString()
|
|
|
|
|
In my project i need to fetch the profit in between two dates.
is it possible, when i convert datetime into string..?
|
|
|
|
|
It will be tough then. Use DateTime only.
|
|
|
|
|
|
|
You are in wrong forum. This is ASP.NET forum and your question has nothing to do with ASP.NET.
|
|
|
|
|
wrong place!
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
when i fetch morethan 50 mb size of file, my Internet Explorer redirect in to the default error page why this ?
|
|
|
|
|
Increase timeout limit in web.config. Search for uploading large files using ASP.NET
|
|
|
|
|
I try below code in web.config
< httpRuntime
executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="100"
enableVersionHeader="true"
/>
Still Error persist ..
|
|
|
|
|
How to impliment a fastest media player in webpage ?
|
|
|
|
|
What do you meant by fastest ?
|
|
|
|
|
faster than Silverchots media player control
|
|
|
|
|
Masood Kochi wrote: Silverchots
What is this ? I haven't heard about it. Do you mean SilverLight ? I have used flash player and it works really well.
|
|
|
|
|
yes, Silver Light ...
is any control more faster than Silver Light media Control
|
|
|
|
|
Hi i am trying to create dynamic controls which is dropdownlist & updatepanels...,
The first dropdown is static based on that event im creating my dynamic controls...,
But iam getting probs in newly created dropdown, if i give its property autopostback=true...,
Then whenever iam selecting that one its getting hide...,
How to solve this this is my code:
public partial class DynamicUpdatepanelswithDropDown : System.Web.UI.Page
{
string strSQLconnection = mysqlconnection;
DataSet ds;
SqlDataAdapter sqldad;
private DropDownList dd1;
private DropDownList dd2;
private DropDownList dd3;
UpdatePanel u1;
UpdatePanel u2;
AsyncPostBackTrigger trigger;
AsyncPostBackTrigger trigger1;
protected void Page_Load(object sender, EventArgs e)
{
u1 = new UpdatePanel();
trigger = new AsyncPostBackTrigger();
trigger.ControlID = DropDownList1.UniqueID;
trigger.EventName = "SelectedIndexChanged";
u1.Triggers.Add(trigger);
Page.Form.Controls.Add(u1);
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if ((DropDownList1.SelectedItem.Text=="One") || (DropDownList1.SelectedItem.Text=="Two" ))
{
dd1 = new DropDownList();
//dd1.AutoPostBack = true;
//dd1.SelectedIndexChanged += new EventHandler(dd1_SelectedIndexChanged);
SqlConnection sqlConnection = new SqlConnection(strSQLconnection);
SqlCommand sqlCommand = new SqlCommand("select * from tbl_Country", sqlConnection);
sqlConnection.Open();
SqlDataReader reader = sqlCommand.ExecuteReader();
dd1.DataSource = reader;
dd1.DataValueField = "CID";
dd1.DataTextField = "CName";
dd1.DataBind();
dd1.Items.Insert(0, "--Select One--");
u1.ContentTemplateContainer.Controls.Add(dd1);
}
else
{
SqlConnection sqlConnection = new SqlConnection(strSQLconnection);
SqlCommand sqlCommand = new SqlCommand("select * from tbl_Country", sqlConnection);
sqlConnection.Open();
SqlDataReader reader = sqlCommand.ExecuteReader();
GridView1.DataSource = reader;
GridView1.DataBind();
u1.ContentTemplateContainer.Controls.Add(GridView1);
}
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
i developed intra net package, i installed one place, the same should not take copy and installed in another server, How ?
ideas pls.
thanks
|
|
|
|
|
http://www.kn-portal.com/about/media/news/news_archive/
This page is left, the grey is how to create the structure.
Ajax.asp Controls kit?
modified on Monday, June 16, 2008 1:10 AM
|
|
|
|
|
Do you mean the menu on the left?
It is just a list of themed hyperlinks. You could create something similar by looking at the source. (right-click, show source).
Alternatively, you could also use a menu control.
It's in the standard toolkit within Visual Studio.
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
It looks like advert. Never post link. Rather please be precise on asking questions.
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
I have a class library and would like to return the results of a javascript function as a return from a method call.
Is there a way to update a program variable from a javascript so I can pass it as a return from the call?
|
|
|
|
|
You can put a server side hidden field in your page and set it's value rom script, or you can make an AJAX call.
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 )
|
|
|
|
|
Hello Christian;
Thank you for the reply.
I tried putting an ASP checkbox control on the page ([hidden]width=0,height=0,tabstop=-1) and I can update it.
I displayed it for a test.
My problem is that I am making a call to a class library and passing the control by reference. As I mentioned I could check and uncheck it from the javascript but I couldn't detect its state in the method call to be able to return a bool from the method.
Let me explain. I am trying to implement a javascript confirm dialog and I want to return the value (true/false) from the method based on the button they pressed.
When I displayed the checkbox I could see that it was checked but the method returned a false. The javascript alerts for testing showed that I was in the right condition branch (OK or Cancel button clicked).
Since I can't seem to get the state of the control in the method I was wondering if I could alter a local (to the method) variable from the javascript?
That would be a lot cleaner but I don't know if it is possible.
public static bool Confirm(string msg, ref CheckBox chkbox)
{
HttpContext.Current.Response.Write("<script language="javascript">");
HttpContext.Current.Response.Write("if(confirm('" + msg + "')==true){");
HttpContext.Current.Response.Write("document.getElementById('" + chkbox.ClientID + "').checked = true;");
HttpContext.Current.Response.Write("alert('OK clicked');");
HttpContext.Current.Response.Write("}");
HttpContext.Current.Response.Write("else{");
HttpContext.Current.Response.Write("document.getElementById('" + chkbox.ClientID + "').checked = false;");
HttpContext.Current.Response.Write("alert('Cancel clicked');");
HttpContext.Current.Response.Write("}");
HttpContext.Current.Response.Write("</script>");
return chkbox.Checked;
}
Actually have a backslash (escaped) double quote around the javascript in the language attribute of the script tag, but I can't seem to get the code to show that here.
|
|
|
|
|
Hi All,
I am having an issue with a usercontrol that inherits from a class that uses the Session reference. The error I get is :
Code generation for property 'oIncToSave' failed. Error was: 'Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive'
The code for the property in the inherited class (which also inherits a class which is derived from System.Web.UI.UserControl) is :
public IncDetail oIncToSave
{
get
{
if (Session["IncToSave"] == null)
return new IncDetail();
else
return (IncDetail)Session["IncToSave"];
}
set
{
Session["IncToSave"] = value;
}
}
The error appears each time I make a change to the file (code behind or HTML) and save and/or compile. I can still compile and run the program, but must do it twice (once that gets the error and once to debug), so I would like to know how to get around this. I have other pages that use the same classes without the error.
Thanks for any advice.
Steele.
|
|
|
|