|
|
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
|
|
|
|
|
Hi,
what's the difference between Server.Transfer and Response.Redirect
|
|
|
|
|
Redirect and Transfer both cause a new page to be processed. But the interaction between the client (web browser) and server (ASP.NET) is different in each situation.
Redirect: A redirect is just a suggestion – it’s like saying to the client “Hey, you might want to look at this”. All you tell the client is the new URL to look at, and if they comply, they do a second request for the new URL.
If you want to pass state from the source page to the new page, you have to pass it either on the URL (such as a database key, or message string), or you can store it in the Session object (caveat: there may be more than one browser window, and they’ll all use the same session object).
Transfer: A transfer happens without the client knowing – it’s the equivalent of a client requesting one page, but being given another. As far as the client knows, they are still visiting the original URL.
Sharing state between pages is much easier using Server.Transfer – you can put values into the Context.Items dictionary, which is similar to Session and Application, except that it lasts only for the current request. (search for HttpContext in MSDN). The page receiving postback can process data, store values in the Context, and then Transfer to a page that uses the values.
With Regards
Satips
|
|
|
|
|
Hi,
Have a look at Server.Transfer vs Response.Redirect[^] for your clarification.
In Brief:
Response.Redirect simply tells the browser to visit another page. Server.Transfer helps reduce server requests, keeps the URL the same and allows you to transfer the query string and form variables.
Regards,
Jay
|
|
|
|
|
Dear All,
I'm a beginner in ASP.Net and was building a asp.net application. Just wanna to ask is there any commands or functions in asp.net which can act similiarly like Application.DoEvents in windows programming? Please help. Thanks!
|
|
|
|