|
Hi Friends,
I am using Atlas update panel in which i have my server controls such as text boxes and check boxes. I also have a button inside that update panel.when i click the button all the values are insertecd into the database table.But the thing is i am failing to get the return message in my front end label after the insertion is done..i.e i need to display in the label as "Successfully inserted".I have also written code for it.But it is not working..What might be the problem.Someone help in this regard..
Thanks & Regards,
Balaguru
|
|
|
|
|
Try this:
((Label)UpdatePanel1.FindControl("Label1")).Text ="Successfully inserted";
|
|
|
|
|
hello Friend
I want to search a user in Active Directory relatede to which which Group .
for Example
Group(A,B,C,D)
A-1,2
B-1,23
C-2,3
D-1
users
1
2
3
4
Then I want to Find List of Group NAme which have user1 in Active Directory
It is Possible Please Hlp me.
Thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
hi,
i have used asp.net 2005 with c# language.i need a help. tat i would like to insert text box and dropdownlistbox. textbox for from date and todate.dropdownlist for department values..i have written storedprocedure...so automaticaly in the runtime it takes the parameter textbox... even if i put textbox and dropdownlist as my wish it wont consider the textboxvalue and dropdownvalue as a parameter...
so any one help me to do this...it should not take text box for date and department fields automaticaly.. instead of that how can i place textbox and dropdownlist for parameter...
so based on that only the datas should be shown.....
so pls help me....
k.priya
|
|
|
|
|
Can u write this in egest way what u want
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
what are u saying? i cant get u...
k.priya
|
|
|
|
|
can u explain this in Easy or layman language?
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hello people,
I´ve got a problem.
For example:
A friend of my sent me a mail in 12-01-2008 with a file that got a creation time 12-01-2008.
When I if I do the download of the file today (17-04-2008) and check the creation file. He got the some creation file (17-04-2008).
And That is not correct. He sould show (12-01-2008).
Is there some way to do that without changing the file manually? Beacause that I have...
My idea is creation a watcher for a certain directory or give the some date that the mail of the file has...
The first one is OK but consumes a lot of resources and has a IF... If someone download´s the file to the wrong directory. This thing does work.
The second is very cool but I do not know how to do it...
Can anyone help me?
|
|
|
|
|
No, you can't change how the windows file system works.
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 )
|
|
|
|
|
I have a page with two user controls. One of the user controls is an ajax tab manager. When the user clicks a tab, I want to let the other user control know. I'm handling the Tabs_ActiveTabChanged event inside the ajax control, but I can't seem to get to the other user control at all.
From inside the ajax control, I've tried using Parent (up to five levels deep) and still don't see the other user control in intellisense.
What am I doing wrong?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
So, an AJAX postback is occuring, I'd assume in that instance, that your context would only be the one control that you're in, the MS library is going to handle any changes to the tab manager, but not a control that is outside the context set by the ASP.NET AJAX controls you used.
I would always handle communication between user controls by using delegates.
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 )
|
|
|
|
|
I have a .APS website that currently communicates with an Oracle DB running on a Sun Solaris database server. Currently, we connect directly to the server for each database request over the internet. Can I use either a .ASP web service or WCF to communicate with that Sun server? Examples are welcome.
Thanks,
Steve
|
|
|
|
|
I bet you just need a correct connectionstring pointing to a properly configured database (server) with valid credentials.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi, I have a web application programmed in visual web developper. I would like to perform some action when the application has gone idle, or if the user stops using it. Could someone please let me know where to find some sort of example to do this?
Thanx in advanced
Yibi
|
|
|
|
|
yibiBrown wrote: I would like to perform some action when the application has gone idle
Please define what you mean by a "Web Application gone idle". Idle is not a common term used in technical discussions of web applications. By not common I mean I have never heard anyone use it before.
led mike
|
|
|
|
|
What I mean by the application going idle is that the user has stopped working with it. Either the mouse hasn't moved or the keyboard pressed in a given amount of time.
Yibi
|
|
|
|
|
In case you are interested I had no idea how do this. I found all the information using Google.
function initializePage()
{
document.onkeydown = function()
{ SetupTimer(); }
document.onmousemove = function()
{ SetupTimer(); }
SetupTimer();
}
var activityTimer = null;
function SetupTimer()
{
if(null != activityTimer) clearTimeout(activityTimer);
activityTimer = setTimeout("alert('Timed out')", 5000);
}
led mike
|
|
|
|
|
do u mean session of the web application?
Amit Agarwal
|
|
|
|
|
Can anyone help know how to implement transaction in asp .net? Just like the database transaction, can we put some lines of code in a transaction ...for example
begin transaction
{
myMethodToSendMail() //sends email
myMethodToWrite() //Writes into an file e.g. xml file
myMethodToDB() //updates database
}
commit
Is there any way to achieve the above situation via asp .net using c#? I dont think the class SqlTransaction is the one to use......can anyone help...thanks in advance
|
|
|
|
|
om pr wrote: Can anyone help know how to implement transaction in asp .net?
No. No one knows how to do that. And if someone did know it certainly would not be Microsoft and they certainly would NOT document it[^].
Good luck, you're going to need it.
led mike
|
|
|
|
|
I am not sure that there is support for such a thing, except that you can send the mail last, and then undo the other steps, if one fails.
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 )
|
|
|
|
|
|
First, a definition of context. I'm working with user controls, which utilize the .ascx markup with the codebehind pointing to the .cs, basically the same model as a page. This is not the same as custom server controls, which are precompiled and generate the html output by hand. I have a significant number of user controls which display grids and other non trivial forms of output.
What I'm looking to do is build snippets of script code that people can copy & paste into their own web site, thus displaying the data that I feed them through the script. An example of this might be:
<script src="http://www.website.com/ShowList.aspx"></script>
the result of which would be displaying the grid view on the site who pasted this script into their page. This is a fairly common technique for javascript output. If I wanted to print "Hello, World!" on your web page, in the Page_Load of ShowList.aspx I could do something like this:
<br />
Response.Write("document.write('Hello World!');");<br />
By pasting the above script onto your page, Hello, World! magically appears. So far, so good. If I wanted to output something more complex, like a table, I could update the output to instead call document.getElementById() of some predefined div and then set the element's innerHTML to the HTML of the table, etc. Then the table would appear on your page, as if by magic. Again, no problem to do.
Now we get to the fun part. I don't want to reinvent the wheel and code the logic of dozens of controls all over again, using this model, so that I can use them as output in the aforementioned scripting scenario. What I really want to do is effectively hook into the output of the user control and redirect that output for use by the script. Here's a pseudo code idea of what I mean:
- Page_Load of ShowList.aspx spits out opening javascript, i.e. document.getElementById() our div
- UserControlOne.ascx outputs a grid control, we redirect the final html output of this grid to a routine in ShowList
- This routine takes the html and assigns it to the innerHTML of the element we found in step 1
- We now bask in the glory of our grid being automagically output to the user of the one line of script code
As you can see, where the rubber meets the road is hooking the html output of our user control so that we can redirect it to the output stream being formatted as javascript, and that's the part I'm having difficulty with. In the old C++ / MFC days, it was an ongoing business of finding out where you needed to hook something, hacking your way into it and redirecting it to where you wanted it to go. The fact that you had the full MFC code that you could step through in your debugger helped immensely, of course.
Unfortunatly, my knowledge of the ASP.NET architecture isn't yet that deep, and so I'm struggling trying to figure out how to hook the output of a user control and point it where I want it to go, i.e. the example above.
Apologies for the long explanation, but I asked this question last week and got little response because I really didn't ask the question very well. Hopefully this will give the knowledgable among you sufficient information about what I'm trying to accomplish that you can point me in the right direction.
And of course, any help would be most gratefully accepted!
|
|
|
|
|
Good Afternoon All
Am new to ASP.NET 2.0 or any other ASP.NET versions, i have a Book and am working on it. Please dont eat me for the following Basic Question. i have a Blank Pade, it has appeared as Default.ASPX, so i have Added a Pic in the PAge and wrote some text that says UnderConstructions. So when i run this Pic it does not Show, i have added a Calender server control and it does not show when the page is loaded.This mage i have added, i have done it using the image server control. and it does not show.
1)what should i keep in mind about server controls when i add them to my page?
2)What is the Difference betwwen them and other Controls(Still comming Chapter in my Book)
please give me more Advice
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
add runat="server" to your components
|
|
|
|