|
use the following line inside the javascript method GetDate to get the clientid of TextBox1
var txt1 = document.getElementById("TextBox1")
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi,
Actually I am passing the 'Client Id' from the below code, when it is in Page.
<a id="idViewCalendar" href="JavaScript:GetDate('<%= TextBox1.ClientID%>')"></a>
When it is inside a GridView, then How can I pass the clientID of the TextBox1 (which is also inside the GridView) using the above format?
Otherwise how can I pass the "TextBox" id to the GetDate() method. Because When I tried as per your suggestion, It passes the 'null' to my Calendar.
How can I resolve it. Pls help me.
Regards,
Jay
|
|
|
|
|
I am using an update panel in my ASP.NET 2.0 AJAX enabled website for file management.
inside the update panel I am using a Grid to show the file details .while updating the file info in edit mode , the file upload control is used .On clicking update the posted file is nothing . How can we solve this problem ?
-- modified at 4:11 Thursday 8th February, 2007
|
|
|
|
|
I moved this before you got flamed to pieces. Please don't post programming questions in the lounge.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi friends i am using file upload control to upload image and same file i
am storing in database.I am giving image name same as user name means if user upload another image it will overwrite previous.
but while retriveing if image is of same type(*.jpg on *.jpg) it retrive previous image.
if i am saving image of other typr(*.jpg on *.bmp) Or If i refresh the page it will give proper image . what should i do.
even in folder which i store it appers updated image.
thanks in advance
|
|
|
|
|
Check the image in the database is replaced with newone with same type. Might be image is not saved in database. Or you are not retriving the current image from the database ? When are you retrving the image from DB ? What you think ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
The image is being cached by the browser. When you change the image to one of the same type the name doesn't change, so the browser assumes the image is the same and shows the cached version. Changing the image type causes the name to change so the browser reloads it. Either don't allow caching (probably a bad option) or add a timestamp to the filename.
|
|
|
|
|
hi i tried to delete cache but it is not working please can u help me i can't use timestap as i am using picname same as username if i used time stamp each time name of pic get change.
my code to delete cache is follow
I wrote this thing in page load
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
please its urgent
thanks in advance
|
|
|
|
|
Hi,
I am debugging a difficult application, that I didnt code, I have a problem - there is a bug somewhere in the application, that occurs before the page loads for the user.
What are the event handlers that can be used before page_Load, eg pre pageload event handler?
|
|
|
|
|
I don`t know this will work or not because i assume that the page is first rendered and then loaded.Try this
1.From the dropdown in properties window select WebForm1 System.Web.UI.Page.
2.Go to Events and double click on PreRender.
Now u can do the work to be done inside this event.
|
|
|
|
|
I think PreRender comes before UnLoad.
Init comes before Load.
|
|
|
|
|
Why you need event handlers ? i think are you confirm that all environment is set properly and check the base class if it is calling from your start up page
<l>Thanks and Regards
Sandeep
|
|
|
|
|
you can do with it using preload... but i think u should first look at ur web.cofig.. global.asax
some time they create problem... and it will vbe very helpfull for u if u put that error on the forum...
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
hai,
I want to know how to bind & display datas using Dropdownlist in a Datagrid... I am using VS2003....
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Here[^] you will get so many examples on datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Let i have datagrid dg
take itemtemplete
and in itemtemplete take a dropdownlist
put
************* aspx
page***************
<asp:datagrid id="Dg">
<columns>
<asp:templatecolumn>
<itemtemplate>
<asp:dropdownlist
id="drpLanguage"
datasource="<%#Bindtitle()%>"
datatextfield="title"
datatextvalue="title"
runat="server">
***********************In aspx.cs page******************
public MySqlDataReader BindLanguage()
{
myconnection.open() /******** connection with pubs database*******
MySqlCommand myCommand = new MySqlCommand("select * from authors", myConnection);
return myCommand.ExecuteReader(CommandBehavior.CloseConnection);
}
|
|
|
|
|
Thanks a lot...
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
you can also see www.datagridgirl.com, you have enough articles on datagrid in this site
Gautham
|
|
|
|
|
Hi,
I am making a web portal where in there's one section which is only visible to some particular users. Also there are individual pages which are in general accessible to everyone but the EDIT / ADD / DELETE functionality on those pages is only accessible to Admins.
Now I have a login page and once the user logs on successfully, I do a FormsAuthentication.RedirectFromLoginPage which takes me to Default page.
But now the approach has to be changed a bit. This representation would clear it.
Default page(open to all without any login initially, and a seperate link to allow the user to login for accessing special functionality) -> If not logged on, the user can move around but wont have any access for EDIT/ADD/DELETE and even the special section. -> Once user clicks the special link -> redirect to Memberlogin page and once authenticated -> redirect to default page yet again -> This time depending on user's rights enable or disable the EDIT/ADD/DELETE func and allow the special func to be accessed now.
How can this be achieved ?
Can we have FormsAuthentication enabled and instead of using RedirectFromLoginPage do a manual redirect and once user logs off, do a FormsAuthentication.SignOut() ?
Pls guide me.
Omkar Ghaisas
|
|
|
|
|
i have a dataset Dataset1.Xsd. in that there is a table video.i have to retrieve the value from a particular coloumn in that table and to display it in another page. hw to code in c# in .net 2.0
|
|
|
|
|
Hi
I have a web-service which is created in VC++ 8, I only have the .wsdl file of that web-service along with some .dll files. For my local pc, i did access the web-service successfully by creating the virtual directory. But when i try to access that web-service from a different pc on the network, i can not access it. I get the connection time-out error, or the page can not be displayed error.
I also shared the folder in which web-service is residing but still this solution couldn't solve my problem.
Can anybody suggest any solution to access that web-service???
Regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Go to the project in inetmgr and rightclick-> Properties -> Directory Security tab-> Under Authentication and access control section click edit and check the enable anonymous access.
|
|
|
|
|
Anonymous access is already checked. But still it doesn't work.
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Hi,
Iam New to Webservices,Plz refer good material to learn webservices quickly
iam awaiting for reply
Thanks & Regards
Srilakshmi
|
|
|
|
|
To start you can have a look at this[^]
Best Regards,
Apurva Kaushal
|
|
|
|