|
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[^]
|
|
|
|
|
thanks Yusuf, I'll try it out...
I just wondered wether the conversion in Visual Studio worked correctly...
|
|
|
|
|
I want to validate each page controls which is inherited from master page. i call this javascript in master page, it is not working, my question is how can we pass each page id to the javascript function when we run the website all the pages form id is showing as aspnetForm.
|
|
|
|
|
call this function and simply add the id of some control.. like i have on button control ...
btn_add.Attributes.Add("onclick", "return abc('" + fu_file.ClientID + "','"+ddl_sub.ClientID+"');");
i call a function which is on master page and pass two id of two controls.. and in fuction use this id and do watever u want to do.
|
|
|
|
|
what is this
fu_file.ClientID and ddl_sub.ClientID. Is it a controls id, then how the javascript file find the form of this controls.
what is "fu_file" and what is "ClientID"
|
|
|
|
|
they find id of these controls and u can find id of any control and in java script u can get id of any control like this
function abc(ID,id)
{
return confirm('Are you sure you want to save the file '+ document.getElementById(ID).value + ' in process '+document.getElementById(id).value+ "." );
}
|
|
|
|
|