|
Could you please provide me sample code?
|
|
|
|
|
you didn't post any code to comment on.
suspect
<blockquote class="FQ"><div class="FQA">Sr...Frank wrote:</div><cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server"
Animated="true" EnabledOnClient="true"
Enabled="True" TargetControlID="txtDate" PopupPosition="Right">
</cc1:CalendarExtender></blockquote>
<div>
TextBox declare here Id must = txtDate
<cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server"
Animated="true" EnabledOnClient="true"
Enabled="True" TargetControlID="txtDate" PopupPosition="Right">
</cc1:CalendarExtender>
</div>
OT :preview stoped working
modified on Thursday, March 12, 2009 4:24 PM
|
|
|
|
|
|
Bibhash Mishra wrote: i have already googling to find the source but not able to find any suitable RSS
why do you need RSS for this? you can do it your self. start with your location (where your server is located) and then calculate the time difference for every city you want to show.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yes, i would agree with that.
In fact this is a perfect thing to use the new dynamic list & linq features for.
Somthing like :
public class timeEntry
{
Public String name = "";
Public DateTime time = DateTime.now();
}
then make a list of timeEntrys
List<timeentry> myList = new List<timeentry>()
{
new timeEntry(){ name = "London", time = DateTime.Parse("1/1/1 00:00:00") },
new timeEntry(){ name = "Paris", time = DateTime.Parse("1/1/1 01:00:00") },
... and so on ...
};
You can then assign it to a datagrid or anything else in code by using the following :
var timeList = from p in myList
select p;
gridView1.DataSOurce = timeList;
gridView1.DataBind();
As your making the list by hand, you can apply what ever maths you want to apply in the relevent areas of the constructor.
|
|
|
|
|
Hello Yusuf,
Thanks for the reply but i have a problem i can't use server location for showing time, it vary.i have already shown weather and news reading with Rss
modified on Friday, March 13, 2009 2:03 AM
|
|
|
|
|
I am using active directory
in web config when i put identify tag impersonate=false
the code works fine and everyone can log in but when i change impersonate=true then the users are not able to login.
i need impersonate=true for my zip code to work
please let me know if there is any settings to be done
|
|
|
|
|
Is this an intranet application? If not do your users have AD accounts setup?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Yes this intranet application
It works fine when impersonate = false
but when i change it to impersonate = true
the users are not able to login
|
|
|
|
|
Hai all,
I am having a DataGrid, paging is true,at a time displaying 10 records.If i am exporting this datagrid data to excel,it is inserting all the records in the datagrid.Instead of that i want to insert only 10 recods.Code is below.I think the prob is with foreach loop in this code,how i should replace that
public void ExportDataToExcel(DataTable datatable, string[] Headers, string SourcePath, string DestinationPath)
{
int i, j;
string strSourceTemplate = "";
string strDestFileName = "";
string strHeaders = "";
string strRow = "";
System.Data.OleDb.OleDbConnection objXlsCon = null;
System.Data.OleDb.OleDbCommand objCmd;
try
{
objXlsCon = new System.Data.OleDb.OleDbConnection();
if (datatable.Rows.Count > 0)
{
strSourceTemplate = SourcePath;
strDestFileName = DestinationPath;
System.IO.File.Copy(strSourceTemplate, strDestFileName);
objXlsCon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strDestFileName + ";Extended Properties=\"Excel 8.0;HDR=Yes;MAXSCANROWS=1;\";";
objXlsCon.Open();
objCmd = new System.Data.OleDb.OleDbCommand();
objCmd.Connection = objXlsCon;
for (i = 0; i < Headers.Length; i++)
{
strHeaders += Headers[i].ToString() + ",";
}
string s=datatable.Columns[0].ColumnName;
int k=0;
foreach (DataRow drow in datatable.Rows) {
for (j = 0; j < datatable.Columns.Count; j++)
{
if(Headers.Length > k)
{
if(datatable.Columns[j].ColumnName == Headers[k].ToString())
{
if(drow[j].ToString() != "" )
{
strRow += drow[j].ToString() + "','";
}
else
{
strRow +="-'"+",'";
}
k++;
}
}
}
objCmd.CommandText = "Insert into [Sheet1$] (" + strHeaders.Substring(0, strHeaders.Length - 1) + ") values ('" + strRow.Substring(0, strRow.Length - 3) + "')";
objCmd.ExecuteNonQuery();
strRow = "";
j = 0;
k=0;
}
}
}
catch (Exception ex)
{
throw ex;
}
finally
{
objCmd = null;
objXlsCon.Close();
}
}
|
|
|
|
|
Hello All,
I am creating a application in which user can send a message to another user on his mobile. Once other user got the message and he replied to the message then i want to update the status in my database.
Can anybody tell me how can i catch the reply which user sent from his mobile in my asp.net application?
How can i catch the reply?
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
how is the reply sent? Is it through your application? If so, you know it is a reply, can't you?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi
Once user got a message he just need to reply these message from his mobile.
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
so what is the issue? if you know how to send a message in the first place, it shouldn't be hard to figure out how to send a reply.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I think what you mean is you want to intercept the inbound message and then post this into an ASP.NET application?
this should help...
http://www.ciol.com/content/developer/os/2006/106041301.asp[^]
Esentially you need to use the new windows mobile 5 interception class. If your trying to do this on a device less than WM5 then your in for a whole world of pain, beacuse it's not easy. If your trying to do it on a non WM5 device then you'll need to consult the appropriate JSR for the J2ME environment, JSR 213 (I think) as of this writting, but don't quote me on that.
Cheers
Shawty
|
|
|
|
|
hi
This is my validation
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Password"
ToolTip="Must have at least One numeric character,at least One Upper Case alphabet , at least 4 characters and password must be at least eight apphanumeric characters long."
ErrorMessage="Enter Correct Format"
ValidationExpression="(?=.*[a-zA-Z].*[a-zA-Z].*[a-zA-Z].*[a-zA-Z])(?=.*\d)(?=.*[A-Z])(?!.*[\W_\x7B-\xFF]).(?![.\n]).{7,15}$)">*</asp:RegularExpressionValidator>
Which is working in debug mode but not working when i run application from iis or publish application .
adilkhan
|
|
|
|
|
what has chnaged since it worked in debug mode? does it still work in debug mode? run a difference between the two.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Onthing changed but actually it is used to AJAX Tool Kit may it is due to AJAX
adilkhan
|
|
|
|
|
Hi,
Is it shows any error..?
|
|
|
|
|
Just Validation is not working .No error message come. actually it is in AJAX Tool Tip cotrol.
adilkhan
|
|
|
|
|
Hi,
Ok,I'm not sure.... ,This might be due to IIS as it was not configured for your current .NET Framwork.
So trying to register it like this
C:\Windows\Microsoft.NET\FrameWork\Your Latest Version > aspnet_regiis.exe -i
or else you can also set the version of ASP.NET at IIS under project properties...
check it once...
S Kumar
|
|
|
|
|
Hi,
I had a working popup from an input button at .net 1.0. We have recently converted the application to .net2 and now the pop-up does not fire. I have compared the view source on both frameworks, they are the same.
I add the javascript at runtime as the button lives in a control along with all the other buttons.
PreviewButton.Attributes.Add("OnClick", "window.open('"+ Preview +"','','toolbar=1,resizable=1,scrollbars=1')");
I have stepped through the code and all the same lines are executed.
Am I missing some trick that .net2 will not fire this pop up?
Any help welcome.
Harvey
|
|
|
|
|
do you have any pop-up blocker?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
I don't no, it just seems to be since the .net 2 upgrade.
|
|
|
|
|
Well, this one opens new pop up window for me. try it in your code.
also notice return false; this will prevent postback
Button1.Attributes.Add("onclick", "window.open('www.codeproject.com'); return false;");
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|