|
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
|
|
|
|
|
When you have a disclaimer indicating the problem is not ASP.NET, why did you put it in ASP.NET forum. You should have posted this in Web Development forum instead.
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 dropdownlist and a Imagebutton in my page contain reset image.
The dropdownlist contains value one,two,three,four,five
When i come to this page the dropdownlist contains "three" as selected value. when i change the value in dropdown to "five", and then click on that imagebutton, need to reset the value from five to three. This all occur in javascript onluy. I want code for this in javascript......
can any one help on this?
G. Satish
|
|
|
|
|
Add a function to OnClientClient event of the ImageButton.
function changeIndex(){
document.getElementById('YOUR_DROPDOWN').selectedIndex = YOUR_INDEX;
}
|
|
|
|
|
no, First of all i need selected value of dropdown when page loaded
and then if i change the dropdown value, i have to know the changed value.
when i click on button, the first value is set again in dropdown list.
How can i catch the first value in dropdown when page loaded
G. Satish
|
|
|
|
|
Use onload event of the BODY tag.
|
|
|
|
|
Hi,
I created one Portal, i want to display current login member details.
Can any one help me?
|
|
|
|
|
Member 4755319 wrote: i want to display current login member details.
It depends on what method you are using for providing login.
|
|
|
|
|
Am using asp.net login controls for my page. Is it possible to find the user who closes the page without logout?
|
|
|
|
|
Member 4755319 wrote: Is it possible to find the user who closes the page without logout?
I don't think that. Because server won't get any notifications when a client browser closes. You can try hooking a JS script to the window close event which gives AJAX request to server and informing it about the event.
|
|
|
|
|
my commerce starter kit is locally running. but when i host that starter kit means it display an error "Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. so how to i rectify this problem... i change all the permission in my starter kit. but it doesnot run. please help to solve it
|
|
|
|
|
what happens if you try to add aspnet account and give this account the full rights.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|