|
Hi!
Create in DB another columan named modified_date -> no problem!
I have created a new column in the database. .
And with every update this date with the latest one and
-> How can I do that? This is my problem!
Bind this to your data grid. -> no problem!
Thanks in advance!
Best regards
Klaus
|
|
|
|
|
In your update state ment add one more line
modified_date = getdate()
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
You can use sql server getDate() method to get the current datetime. you can also pass System.DateTime.Now from your code.
Faraz Shah Khan
MCP, MCAD.Net
Blog
|
|
|
|
|
i have two textboxes and a button in a form.
on the formload i am keeping the focus in the textbox.
on pressing enter(text changed event of textbox) , while the focus is lying in the textbox , it populates the pertaining valus in the another textbox.
i have done one more thing , while the user presses the button , it checks whether the tetxboxes are blank or not , if it is blank , then it prevents , submitting the form and invokes the message box.
Now the problem is when i presses the enter , while the focus is in the textbox , it invokes the alert box that the textboxes are empty.
But i don;t want this , it should populate the pertaining value in the another textbox.
PLease sort out this problem
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Monday, March 31, 2008 7:03 AM
|
|
|
|
|
Hi
On the textbox you can add an onkeypress javascript event like this:
onkeypress="doSomething();" You can then check the keyCode and if it is 13 the enter key has been pressed and you can perform the desired action.
<script type="text/javascript">
function doSomething() {
if (window.event && window.event.keyCode == 13){
}
}
</script>
|
|
|
|
|
Like onkeypress for detecting the keyboard keys , is there any way to detect the mouse keys, like onmouselfetkey , this is merely an example to mak eu understand the problem , can i do something like this ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
|
Im about to tear the little hair ive got from my head atm.
Does anyone know if the Development Server that is used in vs 2005 website solutions can host soap extensions?
Ive got a soap extension attribute and I can see that the attribute gets triggered, but the extension is not executed.
Found a handfull of other posts on the internet where people are having the same problems..
So do I have to go IIS to get it to work?
or is there any workaround?
|
|
|
|
|
Theoratically it should work. Only thing it will respond to only calls comming from local host.
What is the error or situation you are facing when you try to do the same from cassini ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
I found the solution.
Asp.NET development server handles soapextensions just fine.
its just that the "test page" where you can try your webservice does not call the service using soap, its a normal http post.
and thus, the soap extensions does not get triggered..
calling the service from client code triggered the extension just fine
*ashamed*
|
|
|
|
|
Hi,
I need help for a stupid question..
I want to cicle this:
DropDownList s = new DropDownList();
And so i can't use the same name for more than one DDL..
I thought to use this:
Random i= new Random();
string s = i.ToString();
DropDownList s = new DropDownList();
but obviously it all ends in an error cause s was assigned before as string...
Suggestions??
|
|
|
|
|
What you ae thinking is to dinamically create s ?
That is a wrong way if you want to create dynamic dropdownlist.
It is not the s(That is just a pointer to the newly created object) but id that diffrentiates the dropdownlist in the runtime
so give them dinamic id's
Eg:
Random i= new Random();
DropDownList s = new DropDownList();
s.Id = i.ToString();
How about that.
Thanks
Laddie
Kindly rate if the answer was helpful
modified on Monday, March 31, 2008 6:09 AM
|
|
|
|
|
Yessss
Thanks, that's perfect!
|
|
|
|
|
I have a xml file in which there is tag of IMAGE_DATA that contain the image data in decimal formate. I am tring to read the IMAGE_DATA and write it in a new file to create an image. But when i write the data in .jpg file, it does not create am image.
please help me.
Regards,
Irfan Ali
Irfan Ali
|
|
|
|
|
Then either it's not an image in JPEG format, or you are doing something wrong when you create it.
What is your code for writing the file, and what is the first few bytes of the data?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Here is the code. Please take a look.
byte intnum;
string hexnum;
string s;
s = "0xFFD8FFE000104A46494600010101013101310000FFDB004300050304040403050"
FileStream fs = new FileStream(@"F:\\users\irfan.ali\\Practice\\HotelImage.jpg", FileMode.Create);
for (int i = 1; i <= s.Length; i++)
{
hexnum = s.Substring(i,2);
intnum = Convert.ToByte("&H" + hexnum);
fs.WriteByte(intnum);
}
Irfan Ali
|
|
|
|
|
No wonder that doesn't work...
You have to skip the first two characters, as that is the hexadecimal prefix. If it's not present, you should start from zero, not from one.
You are decoding two characters at a time, but you are only advancing the counter by one. That means that you first decode "FF", then "FD", then "D8", then "8F", and so on.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi every one
i want to create the shopping cart with xml can anyone have any idea about how to create it
|
|
|
|
|
a shopping cart with Xml? nothing else? Are you in marketing by any chance?
|
|
|
|
|
I am using SmtpMail for sending email. I gave my emailid as "to" and "from" address. Eventhough it is showing a success message, when I open my Inbox, it is not there. Why?
Thanks in advance.
|
|
|
|
|
did u check in SPAM Folder ?
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Have you configures your SMTP correctly ?. If yes check your SMTP logs to see if the mail has been actually sent.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
|
In your IIS. Go to SMTP > Right Click > [Tab] General > Check Enable logging is Enabled > Properties
In that one log file directory
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|