|
I am developing a web app and i would like to know if i could add a "div" tag to the user control dynamically in asp.net2.0&c#
Plz help
|
|
|
|
|
Use Repeater Control that will be very much easy.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
try
Panel div = new Panel();
this.Controls.Add(div);
|
|
|
|
|
Hi,
I want to save the input values from a page(asp.net) in sql server database without posting back the page.Is it possible using javascript or any other method? if yes, how ?
I don't want to use ajax.
thanks,
|
|
|
|
|
dev sheoran wrote: I don't want to use ajax.
Why ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Because ajax increases load time of the page.
Can it be possible using javascript.
|
|
|
|
|
dev sheoran wrote: Can it be possible using javascript.
Yes.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Hi Sathesh,
How can we do using javascript.Can you give me some idea about it or any reference.
Thanks,
|
|
|
|
|
Congratulations, you get todays 'most stupid person on the forum' award.
1 - how does AJAX increase load time of pages ? It does not, any more than any other page content
2 - you say 'I don't want to use AJAX', then ask if you can use javascript. You therefore have NO idea what AJAX is. NONE !!!!!
3 - AJAX is the only way to send data back to the server without doing a postback in ASP.NET. It uses javascript.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Funny that's about what I was thinking. I think what this guy needs is a very highly specialized Javascript class taught by Google. You can enroll any time you wish and it's called "Search". Anyway... you nailed it. 
|
|
|
|
|
You are going to have to post something back to the server. And you've ruled out the two ways to do that. (AJAX is just javascript)
|
|
|
|
|
dev sheoran wrote: I want to save the input values from a page(asp.net) in sql server database without posting back the page.Is it possible using javascript or any other method? if yes, how ?
I don't want to use ajax.
May be you should look for a magician?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Keep it on the forum. Do not email me with follow ups.
In an email, dev sheoran wrote: Actually, when i use Ajax Toolkit the size of .axd files becomes very heavy.I want to do the same thing without using Ajax toolkit.Can i do that?
You didn't mention the AJAX toolkit, you just said AJAX which is a generic term for Asynchronous Javascript and XML. This simply boils down to issuing HTTP requests in javascript.
|
|
|
|
|
I need help to generate report in my web application please any one help
I Used Visual Studion 2003
|
|
|
|
|
Which type of report you need to generate?
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Is crystal report is possible
|
|
|
|
|
Everything is possible.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Dear friends
I am working with asp.net & vb.net for an intranet web application.
There is login system for employee to work on it.
Suppose, Ajay logined from a system, and he wants to login from another system.
I want that he logined from another system, but logout from frist system.
How it can possible?
Thanks in advanced for reply....
Sanjeev
|
|
|
|
|
Store a list of session ids in the database. When a user logs in update the session ID in the database. After that, each time a user does something check that the session id they currently have matches the one in the database. If it doesn't match log them out. If it does match allow them to proceed.
Although it cannot imdiately log someone out (that is the nature of web applications). It does mean that the moment they try and do something they will be required to log in again.
|
|
|
|
|
Hi all,
I make one application in which i have one requirement that, i have to put multiple emailids with semicomma seperated like - "abc1@abc.com; abc2@abc.com; abc3@abc.com; ..."
but its give me an error when i assign it in "To"!!!!
When i put single emailid then it don't gives any error...
Need some suggesion to solve this issue...
Krishnraj
|
|
|
|
|
You need to write some code. Sorry about that. You need to turn your list of emails into a collection of addresses which get applied to the to and the bcc, I guess.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi Christian,
First-of-all thanks for replying...
there is no issue to put the code and here is my code...
Dim Strsmtp As New System.Net.Mail.MailMessage
' MailFrom and MailTo come from the database
Dim from As New System.Net.Mail.MailAddress(objReader("MailFrom").ToString())
' Here i Put hard code emailids
Dim toList As New System.Net.Mail.MailAddress("abc1@abc.com;abc2@abc.com")
Strsmtp.From = from
Strsmtp.To.Add(toList)
Strsmtp.Subject = "Hi"
Strsmtp.IsBodyHtml = True
Strsmtp.Headers.Add("Content-Type", objReader("MailContentType"))
Strsmtp.Headers.Add("Reply-To", objReader("MailReplyTo"))
Strsmtp.Body = "Test"
Dim sp As New System.Net.Mail.SmtpClient()
sp.Send(Strsmtp)
and when i put the single emailid, then it gives different error that - Host Name is not specified.
But i already specified host name in my web.config file. Here is the code..
<system.net>
<mailSettings>
<smtp>
<network host="localhost" />
</smtp>
</mailSettings>
</system.net>
as i work in my local pc, so i write "localhost"...
Now i don't understand what i have to do???
Krishnraj
|
|
|
|
|
The issue is that the object you call toList is not a list but a single object. You must add a separate MailAddress object for each address in your string.
|
|
|
|
|
Dear All, I am having problem in configuring .aspx in window xp.
i have configured IIS and create it virtual directory as well.
when i am executing .aspx file from "localhost/folderName"
I am getting the following error
Line 26:
Line 27:
Line 28: <sessionstate timeout="60"></sessionstate>
Line 29: <authorization>
Line 30: <allow users="?" /></authorization>
the error appears in this line
Source File: C:\Inetpub\wwwroot\folderName\web.config Line: 28
I can run this without any error from VWD or VS 2005.
modified on Saturday, March 28, 2009 2:22 AM
|
|
|
|
|
What is the actual error message?
|
|
|
|