|
This is no way related to ASP.Net
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
how much experience have in ASp.net.....raise above from static pages...........
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: how much experience have in ASp.net
How is my experience gonna help you?
In between, you first need to understand difference between C#/VB.Net and ASP.Net. ASP.Net is not a language but a framework and in no way Active Directory is part of it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Piyush Vardhan Singh wrote: how much experience have in ASp.net
Does it really help you to do your work ? What ever he has suggested, was correct. You question is nothing to related with ASP.NET.
|
|
|
|
|
He Wants to search a sam account name attribute in all of his
domains trusted domains. I.E. when he search a name he want to search to be
performed on all of his trusted domains (even outside of the forest).
|
|
|
|
|
Piyush Vardhan Singh wrote: how to search users from active directory in different FOREST? please help me.
This is ASP.NET Forum. And Searching in AD using LDAP is nothing to do with asp.net.
I will suggest you to read this article Howto: (Almost) Everything In Active Directory via C#
|
|
|
|
|
if u post this Q then which forum u post ?
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Piyush Vardhan Singh wrote: if u post this Q then which forum u post ?
I will post over C# Forum
|
|
|
|
|
ANSWER:-http://www.infinitec.de/post/2004/12/30/Find-an-user-in-a-multi-domain-Active-Directory-enironment-programmatically.aspx
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
Eventure Technology
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Dear
I installed DNN website using VS.net 2008 and after the website finished I try to put it on the C:\Inetpub\wwwroot folder or on the web hosting server, but it does not work
an error message:
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.<br />
<br />
Source Error: <br />
<br />
<br />
Line 70: </system.webServer><br />
Line 71: <system.web><br />
Line 72: <machineKey validationKey="59A121FFDC2D70BE6D724AF408F28842ADD3AAE4" decryptionKey="1701E06AEE1C19DBF7033856F0B6B8845788802AEC00EA83" decryption="3DES" validation="SHA1" /><br />
Line 73: <!-- HttpModules for Common Functionality --><br />
Line 74: <httpModules>
and on the PC localhost the error message
<authentication mode="Forms">
|
|
|
|
|
Bataineh wrote: This error can be caused by a virtual directory not being configured as an application in IIS.
have you ever pondered about the above? Did you actually create the web application?
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Dear
thanks you
but can you please explain how can I do this, and can you please advice me about hosting problem,
does the folder path saved in some where in my code,
many thanks
|
|
|
|
|
If you folder is in wwwroot, then you need to just open IIS ( Run > inetmgr )
You will see there should be an folder with the name of your application.
Right click on that > On the Default tabt > Click on Create Button.
Set the other properties like authentication, ASP.NET Version etc.
Then try to run.
Hope this may help you !
|
|
|
|
|
sir,
i have a list of users in a gridview.and i want to lock and unlock any user.and for this i have column called status.and this status column contain a linkbutton having default text"lock".means this user is initially unlocked .and now if i want this user to be locked then i will click on lock button and then the "lock" button text will change into "unlock".
|
|
|
|
|
What is your question ?
One of my suggestion, rather than use a Lock button for each user, you can put chekbox and Select the User (Checked) and Finally Click the Lock User button outside of Grid. Which will improve your performance and decrease the Database hit.
|
|
|
|
|
I use fckeditor in a asp web page like this:
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "fckeditor/"
oFCKeditor.Width = "265"
oFCKeditor.Height = "237"
oFCKeditor.Value =""
oFCKeditor.Create "FCKeditor1"
%>
Now,if the text content over oFCKeditor.Height, how can i forbid users to write?
Thanks!
|
|
|
|
|
|
Dim id As Integer = Request.QueryString("ui")
Dim cmd2 As String = ("Select Specification from DefineSpecification where CategoryID=" + id.ToString())
Dim rdr2 As IDataReader = db.ExecuteReader(CommandType.Text, cmd2)
Dim conn As New SqlConnection
Dim cmd As New SqlCommand("Select Count(*) from DefineSpecification Where CategoryID=" + id.ToString(), conn)
conn.ConnectionString = ConfigurationManager.ConnectionStrings("See2Buy").ConnectionString
conn.Open()
Dim count As Int32 = Convert.ToInt32(cmd.ExecuteScalar())
While rdr2.Read
Dim lbl = New Label()
lbl.Width = "140"
lbl.Text = rdr2.Item("Specification")
Panel4.Controls.Add(lbl)
For counter2 As Integer = 1 To count
Dim txt = New TextBox()
txt.Width = "140"
txt.ID = "TextBoxID" + counter2.ToString
Panel4.Controls.Add(txt)
Dim txt1 As TextBox = CType(Panel4.FindControl("TextBoxID" + counter2.ToString()), TextBox)
Dim txt2 = CStr(txt1.Text)
Dim cmd3 As String = "Insert into Specification(SpecificationHeading,SpecificationDescription)Values('" + lbl.Text + "','" + txt2 + "')"
Dim dbcmd As DbCommand = db.GetSqlStringCommand(cmd3)
db.ExecuteNonQuery(dbcmd)
Next
End While
Error : Multiple controls with the same ID 'TextBoxID1' were found. FindControl requires that controls have unique IDs.
|
|
|
|
|
KhandelwalA wrote:
Error : Multiple controls with the same ID 'TextBoxID1' were found. FindControl requires that controls have unique IDs.
KhandelwalA wrote: For counter2 As Integer = 1 To count
Dim txt = New TextBox()
txt.Width = "140"
txt.ID = "TextBoxID" + counter2.ToString
Panel4.Controls.Add(txt)
Dim txt1 As TextBox = CType(Panel4.FindControl("TextBoxID" + counter2.ToString()), TextBox)
Dim txt2 = CStr(txt1.Text)
Dim cmd3 As String = "Insert into Specification(SpecificationHeading,SpecificationDescription)Values('" + lbl.Text + "','" + txt2 + "')"
Dim dbcmd As DbCommand = db.GetSqlStringCommand(cmd3)
db.ExecuteNonQuery(dbcmd)
Next
Check your code. You error clearly saying that, The ID which is generated for Texbox is not unique. Means Same Textbox ID generating multiple time.
|
|
|
|
|
KhandelwalA wrote: txt.ID = "TextBoxID" + counter2.ToString
As i told you in previous post dont use counter2. Instead create a new counter(c1) and increament it in your for loop.
txt.ID = "TextBoxID" + c1.ToString
himanshu
|
|
|
|
|
I did that but still getting the same error
|
|
|
|
|
KhandelwalA wrote: I did that
But in the code you have posted above,i cannot find where you have done that.
himanshu
|
|
|
|
|
i want to update a record in a gridview. its datatype is numeric how i can update that value?
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
cmd.CommandText = "UPDATE CouponTransaction SET CouponTypeID=@coupon_id, TransactionDate=@date, TransactionTypeID=@transaction_type,Description=@description,CafeMenu=@menu,SerialStart=@start, SerialEnd=@end,Price=@price WHERE RecordID=@record_id";
cmd.Parameters.Add("@coupon_id", SqlDbType.TinyInt).Value = ((TextBox)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text;
cmd.Parameters.Add("@record_id", SqlDbType.TinyInt).Value = Convert.ToInt32(GridView1.DataKeys[e.RowIndex]["record_id"]);
cmd.Connection = cnx ;
cnx.Open();
cmd.ExecuteNonQuery();
cnx.Close();
GridView1.EditIndex = -1;
bindGridView();
}
in this code SerialStart has numeric datatype
|
|
|
|
|
actually sir i am sorry
i want a link button in gridview column and after click on link button text of this link button should be change for that particular row.
thanks,
|
|
|
|
|
vikas shukla wrote: i want a link button in gridview column and after click on link button text of this link button should be change for that particular row.
Question does not make any sense, what do you mean by that ? What about your last post? Did you check my answer ?
What you are cross posting?
|
|
|
|