|
SqlDataAdapter ad = new SqlDataAdapter("select * from Admin_ringtone ",con3);
chnage the above line as
SqlDataAdapter ad = new SqlDataAdapterCommandText ,con3);
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
if (flag == 0)
{
dv.Sort = e.SortExpression + " DESC";
flag = 1;
}
else
{
dv.Sort = e.SortExpression + " ASC";
flag = 0;
}
dv = dt.DefaultView;
DataGriduser.DataSource = dv;
DataGriduser.DataBind();
Sunil Tvl
|
|
|
|
|
I am trying to convert string to datetime but i am getting this error
'String was not recognized as a valid DateTime.'
Here is my code
DateTime dt = DateTime.ParseExact(txtdate.Text, "yyyy.MM.dd", null)
I Love SQL
|
|
|
|
|
hey this is working fine
if you give the value in textbox like 2007.12.23
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
In my textbox date format is dd.Mm.yyyy
I Love SQL
|
|
|
|
|
then change your code like this
DateTime dt = DateTime.ParseExact(txtdate.Text, "dd.MM.yyyy", null);
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Look, in my app datetime format is 'dd.MM.yyyy' in server i dont know datetime format so how can i compare my date in format 'dd.MM.yyyy' whith date in server whichs format is unknown for my app???
Hope I was clear
I Love SQL
|
|
|
|
|
hey, Give a format to the user whatever the user has to type Like dd.MM.yyyy or yyyy.MM.dd. And put a validation for that textbox. If the user types wrong format notify the user before submitting.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
A date object is standard the non standard piece of it is the format that you save it to the string as. If you put dd.MM.yyyy into a date object it will see it as MM/dd/yyyy hh:mm:ss no matter what so when you compare date to date it looks at that piece. That is why it is better to compare a date to a date instead of a string date to a string date because then you have to worry about yyyyMMdd = MM/dd/yyyy.
Cleako
|
|
|
|
|
Hi , An argent help required.
I am writing XMl file using asp.net , vb.net. When the preview is running and I am submitting a data using XML write, i am getting an error that access denied to the specific file.Please help me as early as possible.
Sandy
|
|
|
|
|
You may try to give "Write" permission to IUSR_MACHINENAME user for that path.
|
|
|
|
|
I have an icon in the data grid. How to display number dynamically on this icon?
I want to display a number dynamically.
Plzzzz help me...
Mads
|
|
|
|
|
Here you given "CustomerServiceRefund.gif" this is an static image, Instead of this static file, Give some dynamic files like .aspx... For example
in the weform1.aspx get the querystring named Value (now value is 3)
using System.Drawing draw the number into the Image Object
Then save the Image object into the response stream
Change the Content-type of the Response object to "bmp/jpg"
Now the webform1.aspx will render Image instead of the Textcontent
--Manikandan.net--
|
|
|
|
|
I have an icon in the data grid. How to display number dynamically on this icon?
<br />
<a href='#' title='View Customer Service Refund Details' onclick=LoadCustomerDetails()><img src='Images/CustomerServiceRefund.gif'></a><br />
I want to display a number dynamically.
Plzzzz help me...
Mads
|
|
|
|
|
|
hi,
I have created a page and added session.After some time,the session expires.I want to find at wat time it is breaking down.
is it possible.
plz help me out.
Thanks in advance
cheers
sangeet
|
|
|
|
|
|
H!,
I am using ASP.NET 1.1.I have a link button in my page which opens a popup window when it is clicked. But when i click it it is causing a postback and the popup window is opening. I need to open the popup window without causing the postback. Popup is opening through javascript function which is set to link button's onclick(client) event through linkbutton's attributes.
Thanks in Advance
Phanindra...
|
|
|
|
|
maybe.. just use normal A link.
|
|
|
|
|
Just set
EnablePostback=False for link button. Or simply use
Lets work it Out.........!
|
|
|
|
|
where is that EnablePostback property ?
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Do not use link button, Use hyper link
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
At the end of the javascript function say 'return false' and it won't postback
|
|
|
|
|
your suggestion is logically good. But after transfering the control to the popup window you will no be able to execute "return false" statement.
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
whats the difference between form base authentication,windows authentication,and session management.and in whaich situation we should use form authentication,in which windows authentication and in which sessions.
-- modified at 1:03 Friday 16th February, 2007
Chohan
|
|
|
|