|
no. context Menu work on a button . but I want work on a hyperlink .
computer
|
|
|
|
|
Hi All
I am devloping a testing tool in which i need to store the html file with its other folder too means i have a url using that url i have to open html page and then store that html with its other folders also which contains javascript files and other stuff so please tell me how to do this
|
|
|
|
|
What have you tried so far?
|
|
|
|
|
Nice one now my approach is like whenever we open a web page its files are store in Temporary Internet files folder in our machine so i am trying to get those file from their. What you think ?
|
|
|
|
|
|
i have a button in my form in asp.net(c#). i want when i push this button a color box open and i can select a color and that's color's hex number fall in the textbox.i want a color box such as properties of background color
|
|
|
|
|
|
Hello
I m Working on a Project here i have to put one functionality that is Autosave in every 10 sec using Ajax Control..Just like in Gmail where we Compose our Text and After Sometime It will Automatically Save into Drafts.This Process Going on in Every Few Intervals..
I have tried so much To do But nothing Work
Pls Anyone help me to Sort out this Problem..
Thanks & Regards
Aavesh
|
|
|
|
|
Hi,
I want to fetch the user account's disabled date and time from Active Directory Service through SQL Server Query. Please provide me the solution if you would have came across working with ADS.
Mohan
|
|
|
|
|
plz help me out..
I want to select a row by putting the cursor anywhere in that row, row should be selected. I dont want to use check boxes. And also swapping of rows in datagrid.
Thanks in advance.
Libran
|
|
|
|
|
private void myGrid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
e.Item.SetRenderMethodDelegate(new RenderMethod(Script));
}
private void Script(HtmlTextWriter Writer ,Control ctl)
{
int count = ctl.Controls.Count;
for(int i=0; i
|
|
|
|
|
Thank you verymuch for your response.Where I have to add this code ? Please tell me. I ma new and learning.
Thanks and Regards,
Libran
|
|
|
|
|
click on ur datagrid propertis and the go to it's event in ItemCreated press enter and then write this code
|
|
|
|
|
Thanks for your reply.
But I am not able to get it.I am not able select a row in the grid.
Thanks and Regards,
Libran
|
|
|
|
|
did u do that code behide that i send for u?
if did plz tell me
|
|
|
|
|
did u do that code behide that i send for u?
if did plz tell me plz
|
|
|
|
|
I have included that code in code behind page.But I didn
t get it. Please help me.
|
|
|
|
|
iam installing
MICROSOFT VISUAL STUDIO 2005 STANDARD AND ACADEMIC EDITIONS
plz let me know the product key
help would be much appreciated
|
|
|
|
|
Sure - it's BUY_IT_DON'T_PIRATE_IT
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
I am using a simple popup application in which I popup a window and the window will write the value into the parent window text box.
child.aspx
function Fillvalue()
{
var txtDefault = document.getElementById('txtChild');
window.opener.document.form1.txtDefault.value = txtDefault.value;
window.close();
}
default.aspx
function OpenPopup(parentID)
{
var winHeight = 600;
var winWidth = 830;
var url = 'frmChild.aspx?';
options = 'menubar=0,resizable=1,status=0,scrollbars=1,height=' + winHeight + ',width= ' + winWidth +
',left=' + ((screen.width-winWidth)/2) + ',top=' + ((screen.height-winHeight)/2);
window.open( url, '', options );
}
This is working fine and returning me the desired value. which I entered in the child(popup) window.
but, when I am using
window.opener.document.form1.txtDefault.value = txtDefault.value;
in my other application the above is not working. I am very much confussed, what might be wrong, any solution please....
Ram
|
|
|
|
|
How we can retrive the data from a table using asp.net 2.0
|
|
|
|
|
The code sample above retrieves an entire record from a database table. Sometimes however we need only specific fields from a row in a database table. In this case we need to supply the stored procedure with not only an input parameter as in the previous section, but also one or more output parameters to store the result of the stored procedure.
The following is an example of a stored procedure which will take as input the CustomerID value and return only two fields: CompanyName and ContactName. For this limited result set, we have to use the AddOutputParameter() method. This method is used to return the output of a stored procedure.
It is recommended when executing a stored procedure with output parameters to use the ExecuteNonQuery() method instead of the ExecuteDataReader() method.
The SQL stored procedure is as follows:
CREATE PROCEDURE [dbo].[GetCustomerMultipleFields]<br />
(<br />
@CustomerID NCHAR(5),<br />
@CompanyName NVARCHAR(40) OUTPUT,<br />
@ContactName NVARCHAR(30) OUTPUT<br />
) <br />
AS<br />
SET NOCOUNT ON<br />
SELECT<br />
@CompanyName = [CompanyName],<br />
@ContactName = [ContactName]<br />
FROM<br />
[Customers]<br />
WHERE<br />
[CustomerID] LIKE @CustomerID<br />
GO<br />
The following C# code executes the above stored procedure and uses the AddOutputParameter() method to obtain the results:
<br />
try<br />
{<br />
Database db = DatabaseFactory.CreateDatabase();<br />
DBCommandWrapper dbCommandWrapper = db.GetStoredProcCommandWrapper("GetCustomerMultipleFields");<br />
dbCommandWrapper.AddInParameter("@CustomerID", DbType.String, "ALFKI");<br />
dbCommandWrapper.AddOutParameter("@CompanyName", DbType.String, 40);<br />
dbCommandWrapper.AddOutParameter("@ContactName", DbType.String, 30);<br />
db.ExecuteNonQuery(dbCommandWrapper);<br />
string results = string.Format("Company Name : {0}, Contact Name {1},",<br />
dbCommandWrapper.GetParameterValue("@CompanyName"),<br />
dbCommandWrapper.GetParameterValue("@ContactName"));<br />
Response.Write(results);<br />
}<br />
catch (Exception ex)<br />
{<br />
Response.Write(ex.ToString());<br />
}<br />
In the above code, I passed a customer ID value to the stored procedure as an input parameter. As the stored procedure is designed to return two values, CompanyName and ContactName, these were identified as output parameters.
To display the returned values we used another method of dbCommandWrapper, which is GetParameterValue(“ParameterName”). This method returns the value of the parameter specified.
With Regards
Satips
|
|
|
|
|
Kindly tell me some other way without using procedure
|
|
|
|
|
Using the Stored Procedure and query is the best method for retreiving the Data's from the table.
With Regards
Satips
|
|
|
|
|
Hi there,
+ Pls Be Specific on your Question. Dont ask a question like (General) this.
+ Can you figure out, where u r getting problem on Retrieving Data from DataBase ?
+ You need to use SQLDataSource or ObjectDataSource or some one else to achieve this.
Regards,
Jay
|
|
|
|