|
Thanks,
But when I try the example on a new webform I get domain/username. But it's not inserted into the database my problem is getting it into the database I have a row where I want it to be saved so that every one can read who wrote a particular message. How should I do it. I have this code writen for the column:
System.Web.UI.WebControls.TextBox st6=new System.Web.UI.WebControls.TextBox();
st6=(System.Web.UI.WebControls.TextBox)e.Item.Cells[0].FindControl("txtname");
myCommand.Parameters.Add(new SqlParameter("@Name",SqlDbType.Text));
myCommand.Parameters["@Name"].Value=st6.Text;
Thanks.
|
|
|
|
|
Hi friends,
Now my task is to design the application which should have language bar and if some one select French then the screen should be convert into french and vise versa.
Please help me . i don't have any clue about what i am doing?
Regards,
A Jabeer Ali
|
|
|
|
|
|
Hi i have only 2002. Is that work
Regards,
A Jabeer Ali
|
|
|
|
|
Help needed urgently from IIS Experts out there:
I have Windows 2003 Standard Edition server installed with IIS 6.0 configured. I've loaded my web application (Remedy 5.1.2) on IIS and it works fine by accessing it locally from the webserver. However, accessing it from another client using its web address, I get the following error:
**********************************************************************
You are not authorized to view this page
You do not have permission to view this directory or page using the credentials that you supplied
|
|
|
|
|
This problem may occur when anonymous access authentication has not been turned on.
This may resolves youre problem
1. Start Microsoft Internet Information Services Manager (IIS). (To do this, click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.)
2. Expand your server.
3. Expand Web Sites.
4. Expand your Web site.
5. Expand bin.
6. In the bin folder, right-click Remedy.dll, and then click Properties.
7. On the File Security tab, click Edit in the Authentication and access control area.
8. In the Authentication Methods dialog box, click to select the Enable anonymous access check box, and then click OK.
9. Click OK to close the Remedy.dll Properties dialog box.
10. On the File menu in Internet Information Services (IIS) Manager, click Exit.
Or it's maybe youre webapplication's folder security.
|
|
|
|
|
Hi,
in my code I am deleting file.
But it's giving me error as below.
Dim fileInfo as new fileInfo(FilePath)
fileInfo.Delete()
The process cannot access the file 'test.txt' because it is being used by another process.
how to solve this...?
Thanks,
Sun Rays
|
|
|
|
|
Close the program that is using the file.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks for your reply..
but this is i am doing in my code.
so i need to include something in my code so i can remove this error.
all the functionality is in sequence.
Thanks,
Sun Rays
|
|
|
|
|
File is in process while you trying to delete it
Check all objects replated to that file are closed use try catch and finally block
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
There is no simple way to remove a file that is in use. You can make an errormessage appear to the user to explain to him why it failed so he can close down the application.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Please help me.
In my project after the user selected the projectname from drop down the listbox to display all the name of the projectmembers working under that project automatically.
can you show me the code for this problem.
Thank you in advance
oga m
|
|
|
|
|
Use the SelectedIndexChanged event of the DropDownList to populate your ListView based on the SelectedItem of the DropDownList.
|
|
|
|
|
In the dropdownSelected Index changed event
call the database and pop up the listbox show listbox
ListBox.Visible =true
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
if u want to take projectmembers fron the database who is working under some specified project then take selectedvalue/selectedindex and specify in the query vth condition "where".then use for loop by declaring one datarow
and then add data in the dataset to listox...Do all this coding in DropDownlist_selectedIndexChanged(...)method...
I hope u understood...
send ur comments...& suggestions ...if
there is any better way to do this...
bye...
Neelima
|
|
|
|
|
You can have a look at this[^] article.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi i done one task same like u r Requirement. i have a dropdownlist it will display all "userName" from Login Table and Display those details when u select particular user from the dropdownList..
1.Pls check dropdownlist property (AutoPostback)= True
2.Modify my connection string
3.paste this one this will work..
imports system.data.sqlclient
Dim conObj As New SqlConnection
Dim adpObj As New SqlDataAdapter
Dim dsObj As New DataSet
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
bindDrop()
End If
End Sub
Sub con()
Try
conObj = New SqlConnection("Data Source=B4B-2F-323-CK26;user id=sa;password=sa;Database=TEST")
conObj.Open()
Catch ex As Exception
Response.Write(ex.ToString())
End Try
End Sub
Sub bindDrop()
Try
con()
adpObj = New SqlDataAdapter("SELECT * FROM Login", conObj)
adpObj.Fill(dsObj, "Login")
ddl.DataSource = dsObj.Tables("Login").DefaultView
ddl.DataTextField = "UserName"
ddl.DataValueField = "ContactNo"
ddl.DataBind()
Catch ex As Exception
Console.WriteLine(ex.ToString())
Finally
conObj.Close()
adpObj.Dispose()
End Try
End Sub
Private Sub ddl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddl.SelectedIndexChanged
lblmsg.Text = ddl.SelectedItem.Value.ToString
bindDataGrid()
End Sub
Sub bindDataGrid()
Try
con()
Dim cmd As SqlCommand = New SqlCommand("SELECT * FROM Login WHERE UserName=" & "'" & ddl.SelectedItem.Text & "'", conObj)
dgridDetails.DataSource = cmd.ExecuteReader()
dgridDetails.DataBind()
Catch ex As Exception
Response.Write(ex.ToString())
Finally
conObj.Close()
End Try
End Sub
|
|
|
|
|
Hi siddisagar, The person has deleted the original post, probably he got the solution for that. I too has posted the reply for that question.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi all,
i need code for not pressing ctrl c in input field form to copy text and also no right click copy
|
|
|
|
|
Don't do it. If you try and mess with the user's browser by disabling it's functionality you will end up annoying your users. Plus, there are really easy ways to get around whatever solution you come up with.
|
|
|
|
|
ca8msm wrote: Don't do it.
We need a smiley for that!
Seriously though - COMPLETELY AGREE!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi all
How would you configure a CreateUserWizard controll to connect to an SQL Server 2000 database and create the users?
thanx
samitha
samitha
|
|
|
|
|
Hello
I created a web-page. There is a table, where hyper links are (in one cell) side by side and top of one another. I have made hyper links look like small boxes. IE shows them as shown in visual studio, but Firefox shows then very close together and smaller than in visual studio. In Firefox bottom edge of hyper link is little bit on the below one. Firefox cut the hyper link "box" after text part but IE shows them as width is set in properties. How to fix the layout (spacing between hyper links) and hyper link box size?
|
|
|
|
|
You are relying on a bug in Internet Explorer, that's why it doesn't look the same in Firefox.
You can't specify a size for elements that isn't block elements, except in Internet Explorer which ignores this rule.
If you want to line up the links as boxes, use float:left to make them float after each other. Elements that float are block elements, so you can specify the size of them. Alternatively, you can skip specifying the size and the elements will resize themselves after the size of the text of the link, but they are still block elements.
---
single minded; short sighted; long gone;
|
|
|
|
|
I tried to make them float as you told me but it did not help.
What do I need to write "behind" the normal button to make it work same way as hyper link when clicked? Hyper link opens a new page that is addressed in hyper link so how to make button work same way?
|
|
|
|