|
hi guys
i have four text boxes and four custom validation controls ,
upon failure of a validation i am showing the erros on a summary validator control, but each of my
custom validator also shows the error message , why ?
i want just summary validator control to show the message , how to do that ?
thanks in advance
hello
|
|
|
|
|
In the design view of your page you can adjust the validation controls to show nothing or just leave the error message section blank.
"Sex is not the answer, it's the question and the answer is yes"
|
|
|
|
|
Display="None" on the Validation Control
|
|
|
|
|
Hell EveryBody,
I have a webservice in a server.And in another server I have a webApplication. When i use the webmethod of the webservice in my webApplication I got the following error.
I had already used this code, but no result.
webservLeave.PreAuthenticate = false;
webservLeave.Credentials = System.Net.CredentialCache.DefaultCredentials;
or
webservLeave.Credentials = System.Net.CredentialCache.DefaultCredentials;
The request failed with HTTP status 401: Unauthorized
plz help me out.
A key to every Solution
|
|
|
|
|
Is it possible to generate reports in asp.net
|
|
|
|
|
n.sa.vivek wrote: Is it possible to generate reports in asp.net
Yes
|
|
|
|
|
Perfect answer. You got my 5.
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/aa479018.aspx
|
|
|
|
|
|
Yes u can better way is to use Crystal reports.
http://aspdotnetnstuff.blogspot.com
|
|
|
|
|
Hi guys, actually in my aspx page, i created runtime excel files using dynamic grid control...,
The code looks like this......,
System.Web.UI.WebControls.DataGrid grid = new System.Web.UI.WebControls.DataGrid();
grid.DataSource = DS.Tables[i];
grid.DataBind();
foreach (DataRow dr1 in DS.Tables[i].Rows)
{
foreach (DataRow dr2 in DS.Tables[i+1].Rows)
{
if (dr1["MID"].ToString() == dr2["MID"].ToString())
{
if (!Directory.Exists(_path + "\\" + dr1["MID"].ToString() + @"\"))
{
Directory.CreateDirectory(_path + "\\" + dr1["MID"].ToString() + @"\");
string _XLSPATH = _path + "\\" + dr1["MID"].ToString() + "\\" + DS.Tables[i].TableName + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.RenderControl(hw);
}
}
}
for this i have implemented, using web.ui,htmlcontrols and webcontrols...,
Now same functions i am trying to do in console application........,
Here UI interface i wont get...,
So how i can create grid and directory files for console application?
To solve this probs Any other way is there?
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
|
actually i want to insert two pictues at page 1 .using two seperate file upload control.images should be inserted at one click when i click submit button .and save the path at database and at page3 want to retrive the images by using the path of the images which comes from the data base .
i want only save path at database .
if anybody knows plz send me the code
thanks .....gaurav
|
|
|
|
|
try this code........
Dim filename As String = //name of ur file
If filename <> "" Then
Dim path As String = //path of file from database
Dim file As FileInfo = New System.IO.FileInfo(Path)
If (File.Exists) Then
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name)
Response.AddHeader("Content-Length", file.Length.ToString())
Response.ContentType = "application/octet-stream"
Response.WriteFile(file.FullName)
Response.End()
End If
End If
|
|
|
|
|
Hi all...can anyone help me...im trying to retrieve a controls value from a datagrid in asp.net...can anyone assist me with this issue?
living life on the flip side
|
|
|
|
|
In which event you need to know this?
In RowDataBound?
In that case you have e.Row has help
foreach (DataCell cell in e.Row.Cells)
{
foreach (Control ctrl in cell.Controls)
{
}
}
In the second control you can check each control used in a cell of the gridview row
Is it after pressing Update or Delete in the gridview? You need something likt this
protected void Grid_OnCommand(Object sender, EventArgs e)
{
Button btn = (Button)sender;
(GridViewRow) row = (GridViewRow)btn.NamingContainer;
foreach (DataCell cell in row.Cells)
{
foreach (Control ctrl in cell.Controls)
{
}
}
}
Good Luck
|
|
|
|
|
Hi Digimanus...im actually looking to do this in html...if there is a way?
living life on the flip side
|
|
|
|
|
in html?
I do not understand this.
|
|
|
|
|
im trying to get a click event in html to call a javascript function that accesses the value of the control inthe datagrid...
living life on the flip side
|
|
|
|
|
When we r accessing our website after single NATing in the network,the Asp.net2.0 menu control is working fine but when we do double NATing the menu control is not working at all(like it's arrow icon is not coming and no hover effect is there)....in my view it happens only when Webresource.axd file is not accessible/present from the IIS.
|
|
|
|
|
Hi
Can anyone please tell me the regex for URL in javascript.Actully from Googling the regex i got,doesn't solve my problem,because
if i write
http://www.google.com
or
http://www.google
both is passed
i want if user enters www the it should check at least two'.' else one will be enough.
Thanks in advance
|
|
|
|
|
Brij wrote: i want if user enters www the it should check at least two'.' else one will be enough.
try this
/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
or Regular Express String
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi
It doesn't solve my solve.it pass "http://www.home".My issue is,can we make "www" as optional,means
http://www.google.com and http://google.com shold pass
but
http://www.google or http://www.gooogle. should not.
|
|
|
|
|
I have 2 User Controls UserControls1.ascx and UserControls2.ascx
//serverside in Page_Load
if(cond)
{load UserControls1.ascx}
else
{load UserControls2.ascx}
How can I do this one dynamically?
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: How can I do this one dynamically?
Try this code.
UserControl uc = new UserControl();
uc.LoadControl(Server.MapPath("UserControlPath"));
PL.Controls.Add(uc);
please don't forget to vote on the post that helped you.
|
|
|
|