|
Hi,
I am facing a problem ...I am using requiredfieldvalidator for dropdownlist and regularexpressionvalidator for textbox entering email address all these controls are placed in updatepanel(ajax)....first time error messages can see ..but after selecting one item from dropdownlist error message can't see but actual validation are taken place in the background...
how can i solve this..ie. how to show error messages while something failed,,,
please help me
alex.
|
|
|
|
|
Hi,
I'm using system.net.mail class and my smtpserver is localhost.
i found no errors in the code but my mails are storing in the mailroot/queue folder and its not delivering to the receipient.
My system is in network and using a proxy server, i'm using exchange server to get mails, is that anyway i need to reconfigure my system to send mail?
please help me
Regards
Shiva
|
|
|
|
|
Shiva Srivatsav wrote: my mails are storing in the mailroot/queue folder and its not delivering to the receipient.
Because your local SMTP server won't be working. Start it from IIS settings
|
|
|
|
|
Hi Navaneeth,
My SMTP is running fine and i chked with the services too..
|
|
|
|
|
Ohh then it might be some other problem. Sorry, don't have any idea
|
|
|
|
|
show u r piece of code, so that i can help u
Ramana
|
|
|
|
|
A firewall blocking your port 25?
No SMTP traffic allowed in your network?
|
|
|
|
|
|
divya.narayan wrote: for specifying
date we should get a calender everytime
Ok
please don't forget to vote on the post that helped you.
|
|
|
|
|
divya.narayan wrote: Need a source code for the following in c#:
This is not a place where we sell source code.
|
|
|
|
|
Don't repost the question. And the Expert's here can only share their knowledge and Idea's, can give some suggestion's to fix up your problem. I don't think someone will do your work and mail you the source code.
Read This[^]
Regards - J O N -
|
|
|
|
|
|
divya.narayan wrote: Can I know the steps
Well, this is a decent approach.
You have to put text boxes and required buttons. For inserting into database you need
1 - SQLConnection instance
2 - SQLCommand instance
Call ExecuteNonQuery() method to insert data into database. After inserting fetch the data from database and bind it to the grid. For edit link, use TemplateColumn and link to another page where these data's are shown for editing.
These kind of questions are very basic, why don't you buy a good book and learn it your self, and post the problems you got here.
|
|
|
|
|
i have webfarm mode and i have more then one server.
i have one fileupload control how it will upload the file on server in file structure.
|
|
|
|
|
Write code to get data from the database on OnSelectedIndexChanged Event of DropDownList and Pass the selected value of dropDownList into storeProcedure.
You will get dataset.Assign ds to DataSource of Gridview and call DataBind Method of Gridview.
divya.narayan wrote: to edit,update and delete the records
get it http://aspalliance.com/47
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<%@ page import ="javax.naming.InitialContext" %>
<%@ page import ="java.sql.PreparedStatement.*" %>
<%
try
{
int up1=Integer.parseInt(request.getParameter("num"));
String up2=request.getParameter("attach");
java.io.File f=new java.io.File("up2");
java.io.FileInputStream fis= new java.io.FileInputStream(f);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection
con=DriverManager.getConnection("jdbc:odbc:balaji", "admin","qsg");
PreparedStatement pst=con.prepareStatement("insert into upload values(?,?)");
pst.setInt(1,up1);
pst.setBinaryStream(2,fis,(int)f.length());
pst.executeUpdate();
pst.close();
con.close();
%>
File Uploaded Successfull
<%
}
catch(Exception e)
{
%>
File Does not Uploaded
<%
}
%>
this source code is for saving an uploaded image into a database uaing java how we convert it into local sql database query
|
|
|
|
|
how to upload an image file into sql database using javascript
|
|
|
|
|
SreejithAchutan wrote: upload an image file into sql database
Do you want to store image or just image path?
SreejithAchutan wrote: using javascript
please be clear your question.
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|
|
I want to store the image into the database as binary value .but the uploading will be done using javascript
|
|
|
|
|
|
do one thing...
are u maintaining user rights in database? if yes
create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"].
Now, for each page load check with the permissions & accordingly set the control Read/write or Enable or Disable properties.
hope this will give u a solution.
Ramana
|
|
|
|
|
Hi Ramana!
thank you for reply.
Ramana. G.V wrote: create one session(assume it as Session["permissions"]) for user permissions. At the time of login retreive the user rights from database & store in the Session["permissions"].
I have totaly 25 different section with reports. so user can navigate to any section.In different section user have different permission of Read/Write. So How can I store so much session??? It will increase load........so plz adviced me another solution for this.......
Thank you again for your kind help.......
Keep Smiling
|
|
|
|
|
again do one thing...
retrieve all the Read/write permissions from the DB & maintain different key-value in NameValueCollection object, store this NameValueColleciton object in the session...
got it....? then proceed.
Ramana
|
|
|
|
|
Thank You for reply
Keep Smiling
|
|
|
|
|
Hi i like to store the following string in my table one of the field...,
This is that string:
Test <br>hi
So i given like this one string in my textbox...,
But its giving error as:
"A potentially dangerous Request.Form value was detected from the client (txtaddress="Test <br>hi"). "
How to solve this one...,
Pl help me to save my input like that format...,
Regards,
Magi
|
|
|
|