|
I am having a dropdownList and when i select different items from the dropDownList with respect to the selected ITem the details are loaded to the GridView and in GridView properties AutoGenerateEditButton="true"
Can someone pls help me what code should be written in rowediting event and rowCancelEdit event
EXAMPLE
LET DROPDOWN LIST HAVING 3 TEXTS
1.RENEWAL INVOICE
2.QUOTATION INVOICE
3.RECEIPT INVOICE
WHEN I SELECT QUOTATION INVOICE THE DETAILS THAT WILL BE DISPLAYED IN GRIDVIEW.
THE GRIDVIEW DISPLAY IS AS FOLLOWS
PLAN TYPE FIRST NAME LAST NAME ID
Edit Delete Premium 1 Year Robin Simon 575003
Edit Delete Individual 2 Year Pradeep Bhojwal 575004
I WANT TO EDIT THE DETAILS IN THE GRID ITSELF WHEN I CLICK THE EDIT BUTTON THERE IN THE GRIDVIEW
WHAT I NEED IS THE CODE THAT IS TO BE WRITTEN IN THE
RowEditing event and
RowCancelingEdit event and
RowUpdating event of the DATAGRID
pls reply as soon as possible
its so urgent
waiting for ur reply
Regards
Robin
|
|
|
|
|
robinsimon_m wrote: WHAT I NEED IS THE CODE THAT IS TO BE WRITTEN IN THE
No one is going to give you the code, simply because you are too lazy/incompentent to write it yourself. If software development is too difficult for you, maybe you should consider switching to a career more befitting to your intellectual capabilities. My local McDonalds is currently hiring - maybe you should give them a ring.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: My local McDonalds is currently hiring - maybe you should give them a ring.
Good one.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
|
robinsimon_m wrote: pls reply as soon as possible
its so urgent
No. That is considered very rude here. Demanding someone reply because you are under some kind of deadline. Do your own work.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
I am sending mails to group of people at a time .
if some of the mailids are not correct how to find out that id for further processing.
like:
nicevirendra@rediffmail.com is Valid
a@a.asasa is Invalid How i Find This is....!
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
Email validation
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
You can, at best, perform only syntax level validations. If you really want extremely good impeccable email addresses, you need to send a probing email asking the user to click a link and confirm.
However, you can check out http://www.hexillion.com/[^]. They have something called EmailDossier. That should help you. Again, it depends on SMTP commands like VRFY, EXPN etc which most of the current SMTP servers might disable for spam-control and security reasons.
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 there,
i seached on your post. But most of the people using Regex (Regular Expressions) for matching all the Email ID's but how to deal with illegal domain names as you given as a@a.asasa in this after the @ sign one cannot predict which domain is right. As we know there are more than thousand domain names also lots of new domain are existing but we don't know. So, According to me make list of relevant domain names which is relevant to your application.
If you have any problem most welcome.
Thanks & Regards
Dilip Kumar Vishwakarma
|
|
|
|
|
You could use regular expressions.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Use regular expression validator on the page.
e.g.
<regularexpressionvalidator id="emailValidator">
ValidationExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$"
ControlToValidate="txtEmail" ErrorMessage="Invalid Email" Display="Dynamic" runat="server">
|
|
|
|
|
Google for more regular expression, you will find bunch of regular expression to validate domain name too.
|
|
|
|
|
In ASP.NET there are a couple of login controls. You can configure access to your site using ASP.NET Configuration tool, which keeps the role/membership data in aspnetdb.mdf by default.
How to change this? I mean, how to point to other database? Other than App_Data/aspnetdb.mdf.
Thank you very much in advance for help
|
|
|
|
|
Use the aspnet_regsql command line utility (in your .NET framework installation folder) to generate the Membership/Role/Profile API database objects in your own database. Then change your web.config elements for these APIs to point to that database. I suggest you read the MSDN documentation or this excellent article[^] if you require further information.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello Friends,
I've designed a registration form in ASP.NET ex. Name, DateofBirth, Address and etc with proper validations. And also validation works properly if i keep them empty and press Submit button. But when i press "Enter" button then it throws me on the Home Page but it must throw alert message to fill these fields.................
http://www.thepws.com/Curriculum.aspx[^]
|
|
|
|
|
Hi,
i want to display groups and their corresponding children on a aspx page,this is however done,but i further want to display the path starting from the root of the group selected.and when i click on any groupname in the path the page should get reloaded with the particular information.plz help.can i do it using html tags generated dynamically or if their is any other way kindly suggest.i am using ASP.NET 2.0.
THANKS in advance.
|
|
|
|
|
Hi,
Sincere request to give a solution to my problem. I will explain in detail.
I have an application in ASP.Net, Sybase which was running very fine in windows 2000 server.
Recently i migrated it to a windows 2003/IIS6.0 server.
After the migration one of the pages is having an error
I'm trying to insert a byte[] data to sybase with Column datatype TEXT. I get this error:
Sybase.Data.AseClient.AseException: Operand type clash: IMAGE is incompatible with TEXT
This is the function which does this.
public
static bool Archive(string ReportID, string ReportDate, string User, DataTable ReportDataTable, string ProfileRegionID)
{
ArrayList ar = Report.ConvertToArrayList(ReportDataTable);
AseParameter[] myParams =
new AseParameter[1];
AseParameter p =
new AseParameter();
p.ParameterName = "@report";
p.AseDbType = AseDbType.Text;
byte[] ReportData = DB.Data.Adaptors.XML.ConvertToXMLStream(ar).ToArray();
p.Size =ReportData.Length;
p.Value = ReportData;
myParams[0] = p;
Adaptor a =
new Adaptor();
a.ExecuteStatement(@"insert into ReportHistory (report_id,report_date,report_data,create_user,create_date,profile_region_id,locked,version) " +
@" values(" + ReportID + ","+ReportDate+",@report,'"+ User +"','" + System.DateTime.Now.ToShortDateString() + "',"+ProfileRegionID+",0,0)" ,myParams, CommandType.Text);
a.Dispose();
return true;
}
In this function when the query executes an error saying
Sybase.Data.AseClient.AseException: Operand type clash: IMAGE is incompatible with TEXT is coming .
Please help.
Thanks in advance.
Biju S
|
|
|
|
|
HI
I am new to this forum. I have a problem in text box that is in table.We are using the length of that textbox in %.
When a long data is coming inside the textbox the length is increasing.If we are using px,then the length is not increasing according to resolution.That means it is fixed.Also we used overflow as hidden.it is not working perfectly.I am giving my code plz have a look on it.
<br />
<br />
<tr height= "25px"><br />
<td style="padding-left:1%;"><asp:Label ID="label9" runat ="server" Text ="Subject" ForeColor ="Black" Font-Size ="11px" Font-Names="Tahoma"></asp:Label></td><br />
<td colspan="3" ><asp:TextBox ID="txtSubject" runat ="server" Width ="97%" Font-Size ="11px" Font-Names="Tahoma" Height ="12px" Text="" MaxLength="200" BorderColor="#6699CC" BorderStyle="Solid" BorderWidth="1px" style="overflow:hidden;position:absolute;"></asp:TextBox></td><br />
</tr><br />
|
|
|
|
|
put width in px for td tag and then try.
|
|
|
|
|
Hi,
Sincere request to give a solution to my problem. I will explain in detail.
I have an application in ASP.Net, Sybase which was running very fine in windows 2000 server.
Recently i migrated it to a windows 2003/IIS6.0 server.
After the migration one of the pages is having an error.
This is the function which does this.
public
static bool Archive(string ReportID, string ReportDate, string User, DataTable ReportDataTable, string ProfileRegionID)
{
ArrayList ar = Report.ConvertToArrayList(ReportDataTable);
// We can use this code here if we ever wanted to see the serialized content.
// if (ReportID.Equals("1"))
// DB.Data.Adaptors.XML.Serialize(ar,@"D:\Inetpub\Wwwroot\website2\AAA.xml");
AseParameter[] myParams =
new AseParameter[1];
AseParameter p =
new AseParameter();
p.ParameterName = "@report";
p.AseDbType = AseDbType.Text;
byte[] ReportData = DB.Data.Adaptors.XML.ConvertToXMLStream(ar).ToArray();
p.Size =ReportData.Length;
p.Value = ReportData;
myParams[0] = p;
Adaptor a =
new Adaptor();
a.ExecuteStatement(@"insert into ReportHistory (report_id,report_date,report_data,create_user,create_date,profile_region_id,locked,version) " +
@" values(" + ReportID + ","+ReportDate+",@report,'"+ User +"','" + System.DateTime.Now.ToShortDateString() + "',"+ProfileRegionID+",0,0)" ,myParams, CommandType.Text);
a.Dispose();
return true;
}
In this function when the query executes an error saying
Sybase.Data.AseClient.AseException: Operand type clash: IMAGE is incompatible with TEXT is coming
To see what is the serialized data when i uncomment the bold lines in the function i get this error
System.UnauthorizedAccessException: Access to the path
"D:\Inetpub\Wwwroot\website2\AAA.xml" is denied.
I have given ASPNET rights. but no use.
Some one please please help me.
Thanks in advance
Biju S
|
|
|
|
|
Biju Sam wrote: D:\Inetpub\Wwwroot\website2\AAA.xml"
Try using Server.MapPath()
|
|
|
|
|
I gave permission to NETWORK SERVICE. it solved the problem.
|
|
|
|
|
in asp when i delete an image in folder it cannot deleted bcs ,When i upload an image in database, it save with extension .jpg and in folder it save with extension .JPEG. At the deletion time the database image not compact with folder image.that is why the image not deleted.i think
so I want to save image in database with extension .JPEG. how can i do this.If any one know this pls tell me.I am new in asp
|
|
|
|
|
Might be you haven't close the FileSystemObjects properly... Could you please code your Uploading code??
|
|
|
|
|
You've posted in the wrong forum then. Try the Web Development forum.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|