|
thanks for your attention! I have a problem. when I create a dll file from my class I could not to see description when I create an instance in another project.
mehran
|
|
|
|
|
Hi,
To show confirmation dialog on button click we use
button1.Attributes.Add("OnClick", "var ans =Check_Duplication();")
But in my case I need to check some value if that value is zero then I want to display confirmation box.
ex.
button_click()
{
if customerId=0 then
//// show confirmation box
end if
}
Thanks,
Nagarj.
|
|
|
|
|
check dis condition in the javascript function and accordingly display the confirmation box else return back
eg.button1.Attributes.Add("onclick","javascript:return test(cutomerId);")
function test(val)
{
if(val ==0)
{
//call confirm()
}
}
modify the code accordingly ..
|
|
|
|
|
Hi Kapil,
Actually on button click I check duplication of record which I want to insert and set variable cnt to 1 for dulication and display confirmation msg.
now parameter I need to send in javascript function is get assigned on button click...so how could I......
button_click()
{
Dim cnt As Integer = CheckProjectDuplication(ProjectName)
If (cnt > 0) Then
/// show confirmation
end if
}
I hope u understand my problem....
Thanks,
Nagraj
|
|
|
|
|
Nagraj Naik wrote: button_click()
{
Dim cnt As Integer = CheckProjectDuplication(ProjectName)
If (cnt > 0) Then
/// show confirmation
end if
}
Dim cnt As Integer = CheckProjectDuplication(ProjectName)
If (cnt > 0) Then
Response.Write("<script>alert('Done');</script>");
end if
Best regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi Imran,
I want to show confirmation dialog box and not a dialog box.
Thanks,
Nagraj
|
|
|
|
|
write confirm instead of alert
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi,
It will not work.
u can try any sample application.
thanks,
nagraj
|
|
|
|
|
try following code
if(confirmid==0)
{
Response.Write("<script>window.confirm('?');</script>");
}
Best regard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
Nagraj Naik wrote: u can try any sample application.
Do you want to execute some other code when user clicks "ok" on confirm box ? If yes Pathan's suggestion won't work.
|
|
|
|
|
Hi,
Absolutely...I want to write some code on "OK" select.
Thanks,
Nagraj.
|
|
|
|
|
You can use confirm() for that.. If you are interested to create a custom javascript confirm dialog, you can check this.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
"Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
|
|
|
|
|
I wish to perform all the basic operations(Add node,delete selected node,shift up,shift down etc.) on the treeview control using asp.net2.0 and sql server 2000.
Sunil Sharma
|
|
|
|
|
So what the problem just do what u want to do.
Devjit Das.
|
|
|
|
|
Hi,
I am using static variables for storing some data like pageindex, some table data and like that.
It works fine. No problems. But the scope of static variable is for whole application. I mean if there are 10 user connected to my application then they all share the same value of static variables. So it may creates some problems and it is obvious. So what should I do now. Because application is now completely developed. So should I use ViewState in place of all Static variables or what?
So please give me way for this.
Thanks in advance.
Naresh Patel
|
|
|
|
|
It depends what scope you want for you variables. If you want it to be for that user only then you can use session or if you just want to have that for the life of that page then you can use viewstate.
Apurva Kaushal
|
|
|
|
|
Yaa But the number of session variables increase it may deduce the performance as I think. And the viewstate store all data into the page so it may also affect performance.
Naresh Patel
|
|
|
|
|
N a r e s h P a t e l wrote: Yaa But the number of session variables increase it may deduce the performance
Well the data has to be stored SOMEWHERE! I'd go with Session.
Upcoming FREE developer events:
* Developer! Developer! Developer! 6
* Developer Day Scotland
My website
|
|
|
|
|
But if you are just storing some small value in session it won't affect the performance that much. And also as Colin told you have to store it somewhere so you can choose you way.
Apurva Kaushal
|
|
|
|
|
i have one button and one gridview in that i have filled data using
public void GetData()
{ SqlConnection con = new SqlConnection(constr);
string cmd = "select a.errname as ErrorName, m.errortype as ErrorType,
a.errpointsdeducted as PointsDeduction, convert(varchar,a.createddate,104)
as CreatedDate from auditerrors a,auditerrormaster m where
a.errtypeid=m.internalid order by m.errortype";
SqlDataAdapter da = new SqlDataAdapter(cmd,con);
DataSet ds = new DataSet();
DataTable dt = new DataTable();
da.Fill(ds, "auditerrors");
dt = ds.Tables["auditerrors"];
gvAuditErrors.DataSource=ds.Tables[0];
gvAuditErrors.DataBind();}
in the same project i have another page with one text box in it. i want user to select a row in the gridview and click on the button to modify the createddate of that particular row (for this i have provided textbox in the other page, i want that selected row's date to be in the textbox control)
if anybody got the solution plz do let me know
tasks:
selecting a row on double clicking the row
transfering the content from first page to the other
2 hrs back i have posted the same question to C# forum but i did'nt got any sol. till now anyway my project is related to both the forums
regards
sunil
|
|
|
|
|
Call Javascript:Window.Open() method on the click of the record by passing the ID of the Selected Row as QueryString and then Query the Database for the neccessary details of the particular Record and show it on the popup page.
window.Open("SecondPage.aspx?Id="+val)
- Regards - JON Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
|
|
|
|
|
John Prabhu wrote: on the click of the record by passing the ID of the Selected Row as QueryString
the main problem for me is passing ID of the selected row
sir can you please tell me in detail how to pass the ID of the selected row if possible with example
regards
sunil
|
|
|
|
|
I have a scnario in my page. when user entered two dates(From and Todate) in textboxes and click on a button the gridview should display boundcolumns and template columns(vary depends on dates range). Ex, user give 19/11/2007 and 21/11/2007. and clicked on button the Gridview will be
____________________________________________________________
ID(col1) Name(col2) 19/11/2007(col3) 20/11/2007(col4) 21/11/2007 (col5)
------------------------------------------------------------
12 aaaaa image1 Image2 Image2
13 bbbbb image2 image3 Image4
......................................
.......................................
ID and Name are boundfield columns but 19/11/2007 20/11/2007 21/11/2007(Headers) are template columns......template column contains imagebutton control....
if user give the dates 19/11/2007 and 20/11/2007 and clicked on button, the gridview will be
___________________________________________
ID.... Name... 19/11/2007... 20/11/2007 (Headers)
--------------------------------------------
12.... aaaaa .... image1 ........ Image2
13.... bbbbb .... image2 ......... image3
......................................
.......................................
Can anyone give me solution ?am using asp.net 2.0 and c#
Thanks in advance.
|
|
|
|
|
Check this article:
http://www.gridviewguy.com/ArticleDetails.aspx?articleID=88
|
|
|
|
|
hi any body please help me iam converting vb.net code to c# while doing this i got problem near convertion datediff(dateinterval.day,submitted,completed)
with ths above code in vb iam getting output in days i.e 23 but in c# iam getting thre output as 23.14:33:01 can anybody resolves it
here i used the datetime completed=datetime.today and submitted=datetime.minvalue
|
|
|
|