|
Ok... did you have a question also?
---
b { font-weight: normal; }
|
|
|
|
|
Yep, You got a image and ...
keep Learning and you never will be out of date...
|
|
|
|
|
I get a Image by WebService
i use method
System.Drawing.Image b = System.Drawing.Image.FromStream(objstream);
b.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
but Response.OutputStream show is binray i want get to System.Web.UI.WebControls.Image
|
|
|
|
|
Hi,
I have code that fires a stored procedure, to insert a new location.
I now need to add another insert, that inserts a destination into another table, using a trigger.
I pass the following variable to my location table : @LocationCode
I want to create a trigger, that everytime an INSERT is fired on the Location table, it should add a row to my Destination table.
Here is what I have to create the trigger:
<br />
<br />
CREATE TRIGGER DestInsert ON [Location]<br />
FOR INSERT<br />
AS<br />
<br />
INSERT INTO Destination<br />
(LocationCode, Destination, AreaCode, DeletedFlag)<br />
VALUES (@LocationCode, 'New', '123C', 0) <br />
<br />
Will this create a trigger for me, that adds the same @LocationCode variable I added for the stored Procedure to the trigger?
|
|
|
|
|
use..
Inserted.Locationcode
it will fetch the location code from inserted location
enjoy
Dinesh Sharma
|
|
|
|
|
DineshSharma wrote: Inserted.Locationcode
Thanks, just one more thing.
Is Inserted a DB function, or does it gets the last LocationCode inserted?
|
|
|
|
|
It's a table that contains all the rows that were inserted when the trigger was fired.
|
|
|
|
|
Hey hi,
I want to extract a date from oracle dbase and set the calendar date acording to the date that i got from database. but i m not able to do that.pls help.
There's never a Wronge Time To Do The Right Thing !!
|
|
|
|
|
Use this ....enjoy
MSCal.SelectedDate = YourDate;
Dinesh Sharma
Team Leader (Software Development)
|
|
|
|
|
hi,
Thanks for reply...
i tried that solution already but its not working..
//////////////////
instdate = DateTime.Parse(instdate).Date.ToString("MM/dd/yyyy");
calInstDate.SelectedDate = DateTime.Parse(instdate);
//////////////////
this is the code that i m trying...but not working..
There's never a Wronge Time To Do The Right Thing !!
|
|
|
|
|
replace
calInstDate.SelectedDate = DateTime.Parse(instdate);
by
calInstDate.SelectedDate = DateTime.Parse(instdate).Date;
and also use
calInstDate.VisibleDate = DateTime.Parse(instdate);
to show selected date if required.
Regards
Shajeel
|
|
|
|
|
I need ur help in following two situation, if u any idea then let me know.
1) I want refresh partial web page of ASP.NET application. Ex. I put RSS of NSE/BSE graph in web page which can updated frequently.
2) I want Excel sheet print with their formulas not only data. Ex. I take print of marksheet but also want formula during print which is used for calculating percentage or total.
Is there any possible way then let me know, i wait for ur favourable reply.
Thanks in advance.
|
|
|
|
|
If you want to partially update a part of the web page as oppose to all of it, and frequently, then you might want to take a look at AJAX. Code Project have a number of good tutorials at http://www.codeproject.com/Ajax/
|
|
|
|
|
Here i am using the following javascript for alert a msgwindow.problem is, it is opening new page and giving the message,How to alert the same in the same page??It is happening on a button click event.
--->
if txt1.text="" then
Response.Write(" alert(' Enter username,it shd not be null '); ")
end if
kissy
|
|
|
|
|
try this one
response.write(" ....)
|
|
|
|
|
Both are giving same result.my requirement is the message shd be displayed on the same form,not like response.write()
.It directs to different page.
kissy
|
|
|
|
|
u should add attributes on the button click add following code on your html page
<br />
<script language=javascript><br />
function chktxt()<br />
{<br />
if (document.getEelementById("textbox1").value='')<br />
{<br />
alert('Enter Some Value');<br />
}<br />
}<br />
</script><br />
and add following code on your .vb page in page_load event
<br />
button1.attributes.add("onclick","return chktxt();")<br />
check and reply me quick
|
|
|
|
|
This is working perfectly.
But my doubt here is,this is working for testing textboxes,
If i want to display after Add_Button,i am displaying message "Records were added",here i am dipslaying with a label.In this case can i display by using script for simply " Records were added"
kissy
|
|
|
|
|
tell me what exactly u want!
|
|
|
|
|
sd1 = "Insert into Producing_Agency(pa_id,pname)values(1,'"&txtname.text&"')
pains = New SqlCommand(sd1, dbconn)
pains.ExecuteNonQuery()
Lbldisplay.Text = "Record Added"
Here i am using Lbldisplay for displaying the message in the same form.
can i disply by using the below in the same form ,
Response.Write(" alert(' Record inserted '); ")
my doubt is Reposne.write means,this message is displying in other page.It directs otherpage.This is my doubt.
kissy
|
|
|
|
|
No, Kissy
response.write meanse writing some text on the same page
as you wrote code i tried the same to my page but i got the message on the same page,
it didn't redirected me any other page.
i think you must check your .aspx page code.
Regards
Ravi
|
|
|
|
|
Use this....enjoy
RegisterClientScriptBlock("Alert", "alert('Purchase Invoice save successfully')");
Dinesh Sharma
Team Leader (Software Development)
|
|
|
|
|
Thanks for ur answer,But both are working same,No change,any way i will use any of them
Thanks once again.
kissy
|
|
|
|
|
Try using a Server side Label
label1.Text = "Textbox Error";
label1.Visible = false;
if(error)
Label1.Visible = true;
keep Learning and you never will be out of date...
|
|
|
|
|
use this:
Page.RegisterStartupScript("MyScript(any script name)", "alert('Message...');"
|
|
|
|