|
"The great pleasure in doing that things that other people say U can't "
|
|
|
|
|
~V~ wrote: software engineer
Everyone is an engineer nowadays, that title means at lot less than it used to. Hell, even garbage men are called Sanitation Engineers in the PC world.
|
|
|
|
|
Lets try this one more time. After reading this response go back and look over the responses you've already been given.
The way to achieve what you want in ASP is to attach a client side confirm box which stops postback if the user clicks "Cancel". To stop a postback from a link, or button, you return false in the OnClientClick. handiliy, the javascript confirm returns false if the user click "Cancel".
Hence: OnClientClick="return confirm('Are you sure you wish to delete this item')"
Finally, if you need to do this within a grid with a delete button/link the idea is to use FindControl to get a reference to the link/button and append the relevant OnClientClick.
If any of this is hard for you to understand I have given you a plethora of keywords to search google for.
|
|
|
|
|
Hi?
can anyone guide me about the webcam configuration in asp.net website please?
i want to make the page which include webcamera.but i can't find the code for cofigure the camera in the site.all i found were for desktop applications.its urgent.please help!!!!!!
|
|
|
|
|
viralsarvaiya wrote: .its urgent
does 'it's urgent' mean I took a rentacoder job and now realise I can't just find code to copy and paste ?
Don't take jobs without doing research, ideally don't take jobs in technologies you don't understand. ASP.NET is an engine for HTML and javascript. Neither HTML nor javascript can be used to run a web cam. You will need to write a .NET or Java plugin for your web page to do that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
my dataset dsRates contains all country list(notin sorted order). I copied dataset table to Dataview. and I used dvRates.Sort property. when I debug the code dvRates showing the records in sorted order, but while reading its taking from original table(Dataset table).
Ex: dsRates table contains one "Country" column. the records are
A1
B1
A2
A3....
when I used Sort property of Dataview, the records are in sorted order.when I try to reading records it showing B1 instead of A2.
DataView dvRates = new DataView();
dvRates = dsRates.Tables[0].DefaultView;
dvRates.Sort = "Contry";
//showing 2nd record as B1. actully it shold show A2
for (i = 0; i < dvRates.Table.Rows.Count; i++) {
string country = dvRates.Table.Rows[i]["Country"].ToString();
}
Can anyone help me..
Thanks
|
|
|
|
|
Use This Code
DataView dvRates = new DataView();
dvRates = dsRates.Tables[0].DefaultView;
dvRates.Sort = "Country";
for (i = 0; i < dvRates.Count; i++) {
string country = dvRates[i]["Country"].ToString();
}
Thank& Regards
Vijay s
|
|
|
|
|
I am very new to asp.net I am hosting a web server:
http://localhost:1094/test/Default.aspx
And I want to access that page from another computer on LAN..
What should be the url??
I am using this:
http://172.16.216.188//localhost:1094/test/Default.aspx
But this doesnot help..
Does it require some special priviledges??
Som
|
|
|
|
|
http://172.16.216.187:1094/Default.aspx
This also dosent seem to work..
Windows firewall is off..
Som
|
|
|
|
|
I tried this url on my own computer:
http://172.16.216.187:194/test/Default.aspx
instead of
http://localhost:194/test/Default.aspx
but this dosent seem to work..
What could be the issue?
Som
|
|
|
|
|
use this http://172.16.216.187/test/Default.aspx
in both system windows firewall should be in off.
also test folder should be in web sharing.
Nothing is Impossible. Keep always Smiling...
|
|
|
|
|
rajanandal wrote: use this http://172.16.216.187/test/Default.aspx
in both system windows firewall should be in off.
also test folder should be in web sharing.
Thanx for the reply..
It works..
Now my next question is..
How do you, run a program in Client's system using asp.net??
Like here in LAN, I want to run some program (say notepad) in the system in which I give the above url..
Som
|
|
|
|
|
can u expand ur question
Nothing is Impossible. Keep always Smiling...
|
|
|
|
|
Ok...
Say there is a node A and from this I am trying to access
node B (the web server) with url:
http://172.16.216.187/test/Default.aspx
Now what code shall I write in the Default.aspx.cs at Page_Load (at node B, the web server) such that any program (say notepad.exe) runs on node A.
I tried :
System.Diagnostics.Process.Start("notepad.exe");
But this does not help..
Any solution??
Thanx in advance..
Som
|
|
|
|
|
How can i add a dll in to the tool box of visual studio? I am using frame VS 2003.where should i keep the dll?(in the root???)when ever i am trying to add dll in to the COM componenets it is showing the error : the dll is not recognised as a COM server...
can anybdy suggest a way.. ?
|
|
|
|
|
I guess the dll is not a COM dll. Is it a .NET dll, or a standard C dll ? If .NET, just add a reference to it. If standard, p/invoke it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
It is not a .net dll (Its a downloaded dll)
what s the meaning in adding refference without integrating that dll in to the Project? how to invoke a standard dll in vs?
one more doubt,what is the difference in adding a dll and an exe in to a project? both ways are same? pls clear my doubts.
"Today is the first day of the rest of my life..."
|
|
|
|
|
bigphish wrote: how to invoke a standard dll in vs?
p/invoke
bigphish wrote: what is the difference in adding a dll and an exe in to a project?
You can add a reference to a .NET dll, but not an exe.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
bigphish wrote: what s the meaning in adding refference without integrating that dll in to the Project?
This quetion need more discription
When you add a dll by adding the reference of that dll to your project a copy of that dll is created in bin folder of your application by default
bigphish wrote: what is the difference in adding a dll and an exe in to a project?
You can't add exe directly to your project
Exe are self executable and dll are not
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hey guys
I am coming into a project and they are using the ASP.NET login control. Which I would never do
The problem is, we want to log in automatically based on a cookie. I have all the code working for this with one exception. I can't figure out how to bypass the actual login control. Any suggestions ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What do you mean by, "bypass" the login control? Do you mean not even show it, or having it automatically submit?
only two letters away from being an asset
|
|
|
|
|
Well, either way is fine by me, I don't mind if I can tell it to log in using the usual means, via a username and password I provide. However, I don't *need* it to do anything, apart from accept that I have already logged my user in. I tried to get it to log in programatically, but the password property is read only.
My cookie contains a GUID which is associated with a user Id in my database. From this, I am able to get all my user's data, and can perform all of my custom login, so all I really need, is to make it so the application knows I am logged in and redirects accordingly.
Thanks for your help.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Wow - turns out my assumptions were wrong. In fact, it turns out that this site would allow you to browse to any page you wanted, without first logging in. Adding some code to redirect users who are not logged in, and adding a Response.Redirect to my login code, worked just fine.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If you can view any page with logging in, what's the point of logging in?
only two letters away from being an asset
|
|
|
|
|
*grin* beats me. Like I said, I just came onto this project. I have fixed that, you get redirected to the login now.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|