|
hi ,
I am developing a web page using dom validator controls. I have used domvalidatorysummary control that display error messages in an alert box, i want to display these error message on screen instead of alert. How to do it.
praveen
|
|
|
|
|
Hello,
I am developing a Dynamic Website's Admin Panel in asp.net using c#; I am having a problem in creating Product Ranking. Can anybody help me? I will be really thankful to you. Plz.......
Ranking means each product has a Dropdown List with it which shows its number of viewing on User Page like if a product has 4 in Dropdown List it is displayed at 4th position on user page. Moreover each Dropdown contains as many numbers as many there are products like (1, 2, 3, 4, ...) now if web admin changes one product's ranking other products' should automatically change.
Hope you have understood it If you still confuse in understanding please contact me at abubakar.malik@gmail.com
Kind Regards,
AbuBakar
|
|
|
|
|
If your data is stored in a database (I hope so), then simply extract the data from your database sorting by your "ranking" number.
SELECT * FROM yourTable ORDER BY yourRank.
---------------------------
127.0.0.1 - Sweet 127.0.0.1
|
|
|
|
|
Can somebody please help me in checking the print preview of the datagrid rows.
Thanks
|
|
|
|
|
|
IN VB.net window application after selecting the particular row I am getting the data from 1st column of that row.
Dim str As String = CType(dg1.Item(dg1.CurrentRowIndex, 0), String)
I WANT THE DO THE SAME THING IN WEB APPLICATION.I mean can you please tell me the name of function.
PlEASE HELP ME.
|
|
|
|
|
It depends. What are you using as a data bound control?
nothing change just rearrange
|
|
|
|
|
datagrid.selecteditem.cell(0).text
This is the Command and u will get result
|
|
|
|
|
I want to the result of the column of that particular row on which it is clicked.Can you help me?
|
|
|
|
|
HI all
Sorry for reposting but it is urgent to me plz help me
I am displaying images from FTP server in a Datagrid(Image name and Image)
When user click selected Image name it will download
Now I want to give code to only once the user download that file after that the image will Inactivate.
Like When we recive a new Mail it will in bold letters after opening the mail that will inactivate.
How can i write code for this Plz
Can any one help me iam using 1.1 ver
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
look the example of email u r giving, nothing gets inactive u can still activate it, it just changes colors because of different colors for active links and visited links.
As for ur problem on the on_click event of whatever the user clicks to download the image, take a value in Session["Download"] = img_name;
and on page_Load check if Session["Download"] = img_name, if yes then turn image enabled = false; and flush the Session to "" so the user can do this again.
If only they could see what I see in my mind
|
|
|
|
|
hi
Thx for reply
When user download the file i want perminetly Deactive the file.
Menans 1 user only can download.
If one person download the file.Another person must see that file in Deactive
Plz help me
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Friends,
I hope atleast this time somebody will be able to help me...
I have to write some data in excel sheet. I am able to write other datas, but when I m trying to write a numeric value with a leading zero it is trucating it as the cell format is general.
Anyone aware how can we change the cell format to text programmatically using asp.net.
Thanks in Advance for your help
|
|
|
|
|
what I have written is not easy to understand but u have to do it on ur own I dont have that much time, Its a snippet of one of my programs. This will automatically write to the excel file regardless of the field type since it checks each field at runtime.
private void btnexp_Click(object sender, System.EventArgs e)
{
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = false;
System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
this.ClearControls(DataGrid1);
DataGrid1.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());
Response.End();
}
private void ClearControls(Control control)
{
for (int i=control.Controls.Count -1; i>=0; i--)
{
ClearControls(control.Controls[i]);
}
if (!(control is TableCell))
{
if (control.GetType().GetProperty("SelectedItem") != null)
{
LiteralControl literal = new LiteralControl();
control.Parent.Controls.Add(literal);
try
{
literal.Text = (string)control.GetType().GetProperty("SelectedItem").GetValue(control,null);
}
catch
{}
control.Parent.Controls.Remove(control);
}
else
if (control.GetType().GetProperty("Text") != null)
{
LiteralControl literal = new LiteralControl();
control.Parent.Controls.Add(literal);
literal.Text = (string)control.GetType().GetProperty("Text").GetValue(control,null);
control.Parent.Controls.Remove(control);
}
}
return;
}
If only they could see what I see in my mind
|
|
|
|
|
Thanx a lot, but I am using Excel object in dot net...
I wanted to work with some property of excel object....
|
|
|
|
|
What is the best way to count my website visitors?
"I am too late but i will never give up"
|
|
|
|
|
well you can keep a counter in global.asax in session _Start event
Enjoy Coding
|
|
|
|
|
Hi..
Thank you for your respond..I know how to use the application and session state variables and i have used the following code :
protected static int m_ActiveUsers;
public static int ActiveUsers
{
get
{ return m_ActiveUsers;
}
}
protected void Application_Start(Object sender, EventArgs e)
{
Application.Lock();
m_ActiveUsers=0;
Application.UnLock();
}
protected void Session_Start(Object sender, EventArgs e)
{
Application.Lock();
++m_ActiveUsers;
Application.UnLock();
}
protected void Session_End(Object sender, EventArgs e)
{
Application.Lock();
--m_ActiveUsers;
Application.UnLock();
}
But the problem it doesnt give me the right number always.Some times this code tells me there is two visitors while there is no one except me.And some times it doesnt decrement the visitors count number when i exit.
Do any one know how to make a better way that wont be affected by application errors and will solve my problem?
"I am too late but i will never give up"
|
|
|
|
|
In the global.aspx file
Application_start()
application("visitor")=0
Now at Webpage load
Application("c") = CType(Applicatrion("visitor") , integer) + 1
Label1.text = "You ar visitor no " & Application("c")
|
|
|
|
|
Hi..
Thank you for your respond..I think your code will count how many times the Web Form has been loaded not how many visitors are viewing my website currently!.
I am too late but i will never give up
|
|
|
|
|
hi
i am buiding a web appliaction VS 2003
i use CrystalReport Export file .doc
i want after Export file Delete that file
how will i do ???
|
|
|
|
|
I would like to call a method of my code from within XSL but it does not seem to like the presence of the '%' character inside the xsl.
Basicly the XSL loops through an XML writing url's into links on a menu...
I have a method that when passed a URL encrypts the query string portion and spits it back out as URL+encoded QueryString.
I would like to call this method using somthing akin to <%EncodeQueryString(<xsl:value-of select="url" );%=""> in the xsl for-each loop so as to output the urls with encoded queriers.
Could some one please point me in the right direction with regards getting ASP.NET script to execute from XSL?
Thank you.
|
|
|
|
|
I am working on ASP.net /VB.net v1.1.
I am opening an excel using Interop services – and this web application is
working fine on my local machine but when I put the same application on
server its giving me this error.
“Server execution failed”
**** When i call the application from my local machine and web application
is on server , i get this error
Server Specifications
==============
IIS Specifications : IIS v6.0
Server Specifications : 2003 , Enterprise Edition , Service Pack 1
**** When i call the application from my server machine and web
application is on server , i get this error
Call was rejected by callee
I searched all over MSDN and google , no help or good article , even
article given by MS is for windows application and i am working on web
application
Can you please help in regard to this ?
Thx A Lot !!!
|
|
|
|
|
I have a requirement to add one line of text automatically to the end of the all web pages in a web site in IIS (all virtual directories under the web site). I am trying to write an HttpModule using ASP.NET/VB.NET which can do this. Do anybody have some sample code to share?
Thanks in advance.
|
|
|
|
|