|
|
i hv created an application in which there are two panels(here throughout the msg panel stands for atlas:UpdatePanel) firsth panel contains some text boxes and the second one contains a datagrid ;second panel displays below the first panel and on the top of the oage i m hving one img of "-" sign .now when you click on that"-" sign it gets coverted into "+" sign and the panel 1 ; which is hving text boxes ; gets disappear for this i m using this javascript----
function toggleBlock(elementId,id) {
var element = document.getElementById(elementId);
var img = document.getElementById(id);
if(element.style.display == 'block'){
img.src="Images/plus.gif"
img.alt="Show Container"
element.style.display = 'none';
}else{
img.alt="Hide Container"
img.src="Images/minus.gif"
element.style.display = 'block';
}
}
but now if i create a multi tab page then i click on "-" img it will work fine for first tab but for 2nd 3rd and so on tabs it shows the contents of 1 st tab below that contents of the currentlly active tab and below that datagrid. so plz help me as soon as possible.
thanx in advance.
|
|
|
|
|
Friends, i am new to web development and currently exploring ASP.NET 2.0.
What i want is that, whenever user clicks on a link of my page, only the part of my page gets load and not the entire page. How can i do this in VS.NET 2005 ? Some one told me that this is a concept of frames which are not supported in VS.NET. Is that true, if yes that why this feature is missing from a quality product like VS 2005, there must be certain reason ?
Imtiaz
|
|
|
|
|
Of course you can use frames, but you can not work with them on server side (in ASP.NET code), because frames are pure client side stuff. You can write JavaScript to control frames and register it with your page (which is supposed to be part of frameset). I can tell you from my experience, frames are pain! If you don't need to use them, then don't use them.
|
|
|
|
|
|
How to populate the form fields (say, textbox,checkbox) of a microsoft word doc using asp.net?
vijeta
|
|
|
|
|
hi all,
i placed a jscript menu on the top of the page, and below it there is a dropdownlist. when i click on menu, some menuitems are overlaped by dropdownlist. how can i solve this problem...
thanks in advance...
Regards...
Amit
|
|
|
|
|
Upgrade to IE7 hehe!
Problem is in the way ddl's are rendered - as windowed elements, there are several solutions around (google helps), but none particularly elegant...
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
If your menu works using div tags, then one method is to place an iframe 'under' your div tag (making it the same size as the div). This should hide the dropdownlist.
|
|
|
|
|
Hello,
I created an ASP.NET 2.0 custom control which includes various TextBoxes, Labels and a button.
Basically is a contact form. When the button is pressed the values are sent by email.
I want to use the mailSettings values in my Web.Config file.
Everything works fine if I use in my bSubmit function:
smtpClient.Host = "mail.domain.com"
smtpClient.Port = "25"
smtpClient.UseDefaultCredentials = False
smtpClient.Credentials = New Net.NetworkCredential("user@domain.com", "password")
smtpClient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network
But if I don't include this code I get the error:
System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such user here at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at MyNamespace.Web.UI.Form.Contact.bSubmit_Click(Object sender, EventArgs e)
Shouldn't it be using the Web.Config values?
And if yes, why am I getting an error if the values are the same:
<system.net>
<mailSettings>
<smtp deliveryMethod = "network">
<network
defaultCredentials = "true"
host = "mail.domain.com"
password = "password"
port = "25"
userName = "user@domain.com" />
</smtp>
</mailSettings>
</system.net>
My bSubmit_Click function, inside my custom control, is the following:
Private Sub bSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles bSubmit.Click
' Create new mail message
Dim message As New System.Net.Mail.MailMessage
' Define mail message properties
With message
' Define various properties
.To.Add(New System.Net.Mail.MailAddress(Me.ToAddress, Me.ToName))
.Body = tbMessage.Text
.IsBodyHtml = True
' Define fromMailAddress
If Me.NameVisible Then
.From = New System.Net.Mail.MailAddress(tbEmail.Text, tbName.Text)
Else
.From = New System.Net.Mail.MailAddress(tbEmail.Text)
End If
' Define subject
If Me.SubjectVisible Then
.Subject = tbSubject.Text
End If
End With
' Define a new mail SMTP client
Dim smtpClient As New System.Net.Mail.SmtpClient
' Send the mail message and define sent property
Try
' Send the mail message
smtpClient.Send(message)
' Define sent property
Me.Sent = True
Catch ex As Exception
' Define sent property
Me.Sent = False
End Try
' Raise the OnFormSubmited event
RaiseEvent FormSubmited(Me, EventArgs.Empty)
End Sub
Thanks,
Miguel
|
|
|
|
|
I am getting problem in generating new GUID using its constructor who takes one string argument. like this
Guid regionID = new Guid(this.State.SelectedValue);
state gives 2 digit state code.The error says you need 32 digit with 4 dashes string to generate GUID.
any solutions ?
Amit Champaneri
|
|
|
|
|
That's right, because GUID is basically 16 bytes separated in certain places by 4 dashes...
You can not have GUID with only two bytes.
If you want, you can do it like this:
byte[] guidBytes = new byte[16];<br />
<br />
Random rand = new Random();<br />
rand.NextBytes(quidBytes);<br />
<br />
guidBites[0] = Convert.ToByte(this.State.SelectedValue[0]);<br />
guidBites[1] = Convert.ToByte(this.State.SelectedValue[1]);<br />
<br />
Guid myGuid = new Guid(guidBytes);
this should works
Pilo
|
|
|
|
|
This solution is really unlikely to help the OP because you have not taken into account what he might actually want a GUID for. You need to try to look at the bigger picture when answering questions because most are asking questions because they've got themselves in to a bit of confusion about something. Subsequently they may not ask the best question to get the answer they need.
|
|
|
|
|
I think you are confused about what a GUID actually is.
A Guid is a value that is generated by the system to be Globally (as in the world) unique. You should be able to generate as many guid values as you like on your machine and so could everyone else, but every value would always be unique.
|
|
|
|
|
plzz help me in data conversion of .mdb into .html format
i want to tranfer my database file on to web server.
it is not possible in C# as told by guffa. So is it possible in ASP.Net
regards
Shriya
|
|
|
|
|
You want to convert an access database into html? In what way? And why?
ASP.net runs off C# (or VB.net or whatever) - it's just a term to describe the web implementation of it.
|
|
|
|
|
I think you really need to define your requirements a bit better here.
Do you want to transfer data from your local server to the web server so that it then is stored in a DB on the webserver? Or is it that you just want static pages of html with teh data for display (and i would question why you would do that)?
|
|
|
|
|
thnx again for ur support
al rgt, i m giving it in detail.
gve me few min.
thnx shriya
|
|
|
|
|
my idea abt this is :
we r planning for 3 servers
1. main database server
2. web server for wide view
3. local database server (including replication server for parrel access)
few part of the information like reports, status of the product is needed to access on web server.So, whenever there will be a requirment of reports then how will data diplay to the user. As reports generation would be on
crystal report. how the format will change from .mdb into .html.
I really dont have any experience in online, so might be i may sound stupid
regards , shriya
|
|
|
|
|
Well, I think crystal reports can access mdb database, and if not, then you have to convert .mdb file to a DATABASE format it can read. HTML is only generated by crystal report so there is no reason to convert mdb to HTML.
Briefly:
you include CrystalReportViewer control into your ASP.NET page and then you link it with particular report, stored on your disk or in repository. CrystalReportViewer will get the data from data source specified in report definition and will render this report as HTML (or another output format).
You understood, that you have data in mdb format and you want to have HTML output, but between these two states, there is lots of work!! Browse to google and search for ASP.NET / Crystal Reports tutorials, as I see you have no idea what Crystal report is about
Pilo
|
|
|
|
|
i suggest you buy a book on how to develop web applications.
---Guy H ( ---
|
|
|
|
|
hmm, do you disagree with something in my post?
Pilo
|
|
|
|
|
no no no, im replying to the original post but hit 'reply' from yours.
my bad!
---Guy H ( ---
|
|
|
|
|
i hav one suggestion for u :
use XML insted off HTML
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
if you explanig your problem i can solve your problem.
i had read your's all reply but you didn't explanig your problem So please Explain your actuall problem.
so i can help you.
Pavan Pareta
|
|
|
|