|
Well.. this is no big deal,
int autonumber = 29;
yourtextbox.Text = autonumber.ToString();
Cool. .
|
|
|
|
|
i dont understand ur problem
try
textbox1.text=dr["columnname"].ToString();
|
|
|
|
|
Hello all,
I have created an application using third party literary and also added the .exe
file in scheduler that will run after every after 1 hour. But the problem is that
before running the code a popup come is displayed and when i click on "OK" button in the popup then the code will start to run. When i setup a task in scheduler then no one will
be there to click on "OK" button in popup and without clicking the button code will not run.
Could you tell me what can do to disable the popup or any other solution?
Thanks
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
I think you need to create Windows Service to do this job. Open the process in hidden mode from the Windows service and do the job. Windows Scheduler does only call the exe, and it will open up.
I am not sure if there is any facility to hide the popup in the existing windows scheduler.
|
|
|
|
|
Hi
Some body has told me that we can execute scheduler in silent mode.In silent mode
it won't ask for confirmation.
Do you know about that?
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
modified on Monday, August 31, 2009 6:14 AM
|
|
|
|
|
Hi all ,
how to integrate payment gateway with the asp.net application using C# and also i want to know whether i need to contact with bank
thanks,
Amit Patel
|
|
|
|
|
They Are many gateway providers in the web .Theese are some gateway providers
Pay Pal
Authorize.net
They Will provide the code as per the requirement You Can check their website
this is the link for authorize.net
http://www.authorize.net/[^]
And Paypal
https://www.paypal.com/in[^]
|
|
|
|
|
No you dont need to contact with bank just take the service from any of these payment gateway they will provide their own api that have to implement in code.
Linkpoint, Chase, Authorize.net, cybersource, paypal, etc.
|
|
|
|
|
Hi,
I am New to MVC Framework.
Is it possible to use already present ASP DotNet Code in MVC Arcitecure?
If yes then what are the ways in doing it..
and also can we utlise already created DLL in ASP Dot net in MVC?
Thanks in Advance..
Regards
|
|
|
|
|
hi,
plz,
tell me, can we use session in source (javascript function in aspx file) file.
if yes then plz tell me syntax of it.
My fun is,
function PikCode(textid)
{
String myval = document.getElementById(textid).value;
Session["txtcode"] = myval;
}
<script>
but wen i use session in cs file, it become null.
Thanx in Advance.
|
|
|
|
|
<script>
close the Tag
and lets see how you use it in the server side
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
function PikCode(textid)
{
String myval = document.getElementById(textid).value;
alert('myval');
Session["txtcode"] = myval;
}
In cs file:
string txtcode = Convert.ToString(Session["txtcode"].ToString());
|
|
|
|
|
Ohh sorry
This is how the session is used in javascript, it did not see this
<script language="javascript">
function PikCode(textid)
{
String myval = document.getElementById(textid).value;
alert('myval');
<%=Session("txtcode")%>= myval;
}
</script>
Regards
Vuyiswa Maseko
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
hi ,
ur code is giving following error
'System.Web.UI.Page.Session' is a 'property' but is used like a 'method'
Thanks ,
Amit PAtel
|
|
|
|
|
What code are you talking about ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
<%=Session("txtcode")%> = myval;
This statement gives error like,
'System.Web.UI.Page.Session' is a 'property' but is used like a 'method'
|
|
|
|
|
ohhh ok
change the brackets and make them curly, its true its been used like a method while its not its a session. so that means you need to change it so that it looks like this
<%=Session["txtcode"]%> = myval;
Tell me if it helped
Regards
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
No, its not working.
still session is null.
|
|
|
|
|
ok Please Post the Javascript that you currently have now and the way you access it in the Server side.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
In aspx file,
function PikCode(textid)
{
String myval = document.getElementById(textid).value;
<%=Session["code"]%> = myval;
}
in the cs file,
if (!IsPostBack)
{
txtcode.Attributes["onblur"] = "PikCode('ctl00_ContentPlaceHolder1_txtcode')";
}
in the user control i m accessing this session, code is,
if (FileUpload1.FileBytes.Length > 0)
{
if (FileUpload1.HasFile == true)
{
string txtcode1 = Convert.ToString(Session["code"].ToString());
FileUpload1.SaveAs(Server.MapPath ("~/AdminSection/Products/Chemicals/"+txtcode1+FileUpload1.FileName.ToString()));
}
}
This is my code.
|
|
|
|
|
Hi priya
in place of <%=Session["code"]%> = myval;>
if i use
<%=Session["txtcode"]= "sf"%>
then we can assign value but how to assign from java script not able to find out can u tell where u need this.
Thanks ,
Amit Patel
|
|
|
|
|
Try this
You are Converting it to string Twice in one code
string txtcode1 = Convert.ToString(Session[""code""]);
If you did this on the server side, it would have been better, you could have a hidden Field and pass the value and access it in the server side.
it think the Problem was that the Session name need two double quotes each.
Try it
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi
I am using xml and xslt for generate MS word doc.
In xml there is a attribute <Comment></Comment>
This comment attribute contains Rich text(HTML formatting) and this attribute is populated dynamically.
I generate doc by using following function
public static byte[] CreateWord(XmlReader xmlData, XmlReader xsltReader)
{
// Initialize needed variables
XslCompiledTransform xslt = new XslCompiledTransform();
XsltArgumentList args = new XsltArgumentList();
using (MemoryStream swResult = new MemoryStream())
{
// Load XSLT to reader and perform transformation
xslt.Load(xsltReader);
xslt.Transform(xmlData, args, swResult);
return swResult.ToArray();
}
}
When i create the word document the HTML formatting is removed. The comments are written in document in Plain text format.
Can anyone tell me how to fix this? Any help is greatly appreciated.
|
|
|
|
|
Hi guys i have used with in updatepanel, timer control for changing my ads dynamically...,
now my probs is in my page if i scroll down and look at the bottom contents...,
when ever my timer getting refresh the content using the updatepanel...,
my page losing the focus and go to the top of the page...,
how to avoid it and fixing the page focus...,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="gvCardFeesRReport" />
</Triggers>
</asp:UpdatePanel>
Try using this code before closing the UpdatePanel. Change gridview ID in COntrolID to ur Gridview ID.
Hope this helps you.
Inderjeet Kaur
Sr. Software Engg
|
|
|
|