|
I am using datalist control and want to perform paging for the data source..How to perform it
|
|
|
|
|
|
hi all,
I used Below methods but I am not getting visitors IP.It always shows internal IP.My server having Secure Socket Layer.
Request.ServerVariables("HTTP_X_FORWARDED_FOR") //return empty
Request.ServerVariables("REMOTE_ADDR") //got my internet IP
Request.UserHostAddress //got my internet IP
I dont know how to solve this.Is SSL is hiding the visitor IP? When I set deny access IP address in IIS it is working.Actually I want to put access using the visitor IP.How to do this.
Pls advice
Thanks in Advance.
|
|
|
|
|
Hello
VS 2005
I have a web serivce and created the MSI websetup project. Its just a simple web service. However, when i run the setup i get this following message. I can understand that file or reference to a file is missing. but I can't understand what file it is, and how to find out what file it is looking for.
Exception occurred while initializing the installation
System.IO.FileNotFoundException: could not load file or assembly.
file:///C:\Windows\System32\Software\myProject\PC1\ or one of its dependencies. The system cannot find the file specified.
Many thanks for any suggestions,
Steve
|
|
|
|
|
What you can do is that you can check the reference node in Solution explorer to know how many assemblies are using in your webserice.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
dear guys,
Message:-
"Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified."
Question ?
how can I set the delete command such that when I click on specific row it deleted from the Database, in other word I want the delete command to be daynamic ?????
thanks in advance..
|
|
|
|
|
aziz_subaie wrote: how can I set the delete command
There is one property called "Delete Query" in SqlDataSource. You can set the delete command there.
aziz_subaie wrote: daynamic
More : Inserting, Updating, and Deleting Data with the SqlDataSource[^]
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Or register the Deleting event of the SqlDataSource and set the query there.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
thanks to you all that was helpful
|
|
|
|
|
Hello,
I need a simple code to encrypt & decrypt a password use RSA ,
I want it be very simple ,without parameters or making public & private key.xml.
would any body help me?
thanks.
|
|
|
|
|
Hi, i'm kinda new to the whole asp.net side of developing. I've created a web page with a combobox and textbox. I have a Database with a table (Postcodes).
First of all, how do i populate the combobox with data from this table (column: towns) and, second of all, when i change item, how do i make the textbox display the postcode (a.k.a. zip code) (column: postcode).
I am using visual basic as my language in visual studio 2005 with a seperate codepage for my aspx page.
|
|
|
|
|
The ANZAC wrote: First of all, how do i populate the combobox with data from this table (column: towns)
<br />
<br />
In form_load event, <br />
<br />
<code> <br />
SqlConnection dbConn = new SqlConnection(connectionString);<br />
<br />
dbConn.Open();<br />
<br />
SqlDataAdapter da = new SqlDataAdapter("SELECT town FROM table1", dbConn);<br />
DataSet ds = new DataSet(); <br />
da.Fill(ds);<br />
<br />
dbConn.Close();<br />
<br />
DropDownList1.DataSource = ds.Tables[0];<br />
DropDownList1.DataTextField = "town";<br />
DropDownList1.DataValueField = "postalcode";<br />
DropDownList1.DataBind();<br />
The ANZAC wrote: second of all, when i change item, how do i make the textbox display the postcode (a.k.a. zip code) (column: postcode).
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)<br />
{<br />
txtPostalCode.Text = DropDownList1.SelectedValue;<br />
}
That's all.
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I have a problem when I display a datagrid that contains too many rows the asp.net menu control is messed up in Internet Explorer. The only solution to this problem is to page the datagrid but I can't do that coz the user can edit and add data in it...so I don't know how to handle this problem??
Messed up meaning the menu is supposed to be horizontal with a certain style but when displayed it becomes vertical and the styles and colors are gone!!! The menu items become links?? And I noticed that this happens only when the datagrid displayed in the same page contains too many rows.
Can someone tell me why does that happen and if there is a solution to this problem??
|
|
|
|
|
What is the connection string used for connecting to Sql server 2005 through Visual Web Developer 2005 running on local machine..
|
|
|
|
|
In web.config:
<connectionStrings>
<add name="DatabaseConnection" connectionString="Data Source=CHRISKOWHAI\SQLEXPRESS;Initial Catalog=Sandbox;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
|
|
|
|
|
|
|
Hi,
I would like to use a .aspx.vb code-behind file to create a dll which I can then use as my .aspx page's code-behind file in place of the .aspx.vb one.
The reason I would like to do this is that I would like to distribute existing code from my 'sandbox' in an application I'm developing for a client, but do not want to provide the client with the .aspx.vb source code.
I am using Visual Basic / Visual Web Developer 2005 Express Edition (ASP.NET 2.0).
So far I have tried:
1. Importing the .aspx.vb file into a new VBEE project and trying to build the project. This doesn't work because the references to controls on the .aspx page aren't recognised in the VBEE project.
2. Investigating the possibility of using the code compiled when the site is built be the .NET framework. I have looked all over the place for an answer/dll file, but haven't come up with anything.
Well I've run out of ideas on this so if anyone is willing to help that would be great. If you've not got a complete answer, just some ideas of where to go to investigate further would be great.
Many thanks,
Chris
|
|
|
|
|
|
Hi,
I have a login page in asp.net accepting username as email and password,using form authentication. And a checkbox to make password persistent or non -persistent.
My requirement is that when i log out, then again when i open the url , and puts the same emailid then its password should automalically come in password textbox.
Is there anyother way to achieve this.
Thanx
|
|
|
|
|
This is a function in the browser, and the user decides if the function should be used or not.
You can't control this functionality programmatically, and there is no way that you can set the value of a password textbox using code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Can we use cookies for that?
|
|
|
|
|
Eh... Yes, you can use cookies to not store the password...
---
single minded; short sighted; long gone;
|
|
|
|
|
hello everybody
i got some image which is jpeg format. i want to put UserName TextBox, Password TextBox and Login Button on my image.
More Description, I have designed a LoginPage which I saved JPEG format. Now I would like to put TextBox and Button.
Am I doing the right way? Any help will be helpful
Thanks
Sarfarj Ahmed
|
|
|
|
|
Use the image as background of an element, and put the controls in the element.
---
single minded; short sighted; long gone;
|
|
|
|