|
write below code-
Page_init():
txtEmail.Attributes.Add("onBlur", "GetUserId()");
.aspx Page:
function GetUserId()
{
var obj=document.getElementByid("txtEmail");
var strval=obj.value // u can perform operation on strval or
for(var i=0;i<=obj.length-1;i++)
{
var pos=obj.indexOf("@");
// alert(pos);
}
var uid=obj.substring(0,pos);
alert(uid);
return uid;
}
Parwej Ahamad
|
|
|
|
|
hi Parwej,
Thanks for ur reply.
In the code u have given, shall i get the value of uid when I click the Button in aspx.cs page. Please help.
Thanks and Regards,
Prya
|
|
|
|
|
u have got the nd u can manipulate according to u.
Parwej Ahamad
|
|
|
|
|
can i get html code(source code) of asp.net web page which is currently running. i can view code by right click but how can i get that part on button click and save that part as html page.
i get url from
Request.URL
when i put this part in streamreader to read it gives an error called
"URI formats not supported"
how can save html part as html page.
plz provide complete codes. if anybody have.
dcjoshi2
|
|
|
|
|
u put that part u want to save in a div tag
and u use javascript [divname].innerHTML or u run the div as server control and then u can access it from the code behind
hope this would help
Best Regards
3ala2
|
|
|
|
|
Hello Frends
I m using ASP.Net 2.0 and trying to send mail but its showing me error ...
Error Message is --Mailbox unavailable. The server response was: 5.7.1 Unable to relay for dineshsharmain@gmail.com
my code is --
in web.config -
<system.net>
<mailSettings>
<smtp deliveryMethod="network">
<network
host="localhost"
port="25"
defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
and in .CS File -
try
{
MailMessage message = new MailMessage();
message.From = new MailAddress(txtEMailFrom.Text);
message.To.Add(new MailAddress("dineshsharmain@gmail.com"));
message.Subject = txtSubject.Text;
message.Body = txtMsg.Text;
SmtpClient client = new SmtpClient();
client.Send(message);
lblMsg.Text = DeliveryNotificationOptions.OnSuccess.ToString();
}
catch (SmtpException ex)
{
lblMsg.Text = ex.Message + " " + ex.InnerException;
}
Thanx
Dinesh Sharma
|
|
|
|
|
|
Hi Pals,
I installed the DOTNET in my computer successfully and i can run Windows application successfully. But If I run a ASP.NET application it shows a error message in a messagebox as show below
" Unable to start debugging on the web Server. Debugging failed Because integerated windows authentication is not enabled"
Please kindly hel me pals
Thanks in Advance
|
|
|
|
|
|
tht may b help u i m not sure to abut ur problem
so plz follow these steps:
1. goto controlpanel/admin. tools / IIS
2.click IIS
3.Explore Leftside Tree view and select websites/ defaultwebsites
4.select ur webproject and right click goto propeities.
5.select directory securities tab.
6.hit edit button and checked the Intergrated Windows Aunthinication checked box.
7. apply it
if tht is not solve ur problem thn uninstall ur .net framework
and IIS too.
after tht First install IIS thn install .net
hope tht helps u
bst of luck
dcjoshi2
|
|
|
|
|
Thanks DCJoshi2. I solved the proiblem. Thx yar!
regards
demane
|
|
|
|
|
I m using Autogenerated columns in Datagrid........
I want to Set width of Autogenerated columns in Datagrid.....
any help will be appreciated.......
|
|
|
|
|
If the columns are auto-generated then, I don't think you can change the columns and their properties.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
hi,
In my asp.net application, i want to upload files to my server i.e to my server hard disk and not to application folder. Also i need to browse my server directories,make directories,delete directories.
Pl suggest me a technology to be followed for the above scenario. How far would ftp be useful in this case.
|
|
|
|
|
hi
i hav a web page test.aspx created in asp.net2005. which hav several control they are fill frm DB at runtime. now i want to get the view source(html which appers right click + view source) of the test.aspx page. how can i get anybody help me for this situation
tnx
dcjoshi2
|
|
|
|
|
Not sure how you want to get the html markup of the web page test.aspx from a client outside or inside the application boundary, you might want to check out the Server.Execute[^] to execute the test.aspx page and get the return html markup from the writer.
|
|
|
|
|
how can i get html from textwriter
dcjoshi2
|
|
|
|
|
private string GetPageMarkup(string pageUrl)
{
StringWriter buffer = new StringWriter();
HtmlTextWriter writer = new HtmlTextWriter(buffer);
Server.Execute(pageUrl, writer);
return buffer.ToString();
}
|
|
|
|
|
How to do Crystal Report in Asp.net C#
|
|
|
|
|
|
|
Hi,
I want to create Reports in c# Asp.net without using Crystal report concept.
How can I implement it.Please give the solution....(Database is SQL)
Thanks in Advance
|
|
|
|
|
|
|
I have to create nearly 50 reports
Which will take less Time & Effective when implementing it on web(ie,SqlServer Report Service or DataGrid).Please give the best way....
Thanks in Advance
|
|
|
|