|
Hi,
While designing the web page suddenly the font size was increased in design view of VS-2005. The source view looks fine. When i run it, it shows the original size in browser.
Not only the current website but also the previously designed websites also has the same problem now.
Plz let me know where to correct the settings.
Regards,
Jagadeesh
|
|
|
|
|
hello everyone,
I have small doubt regarding a GridView.
I have a Grid View in .net. I want to show delete confirmation not through javascript but through C# code.Once Delete confirmation is selected the record should be deleted and if cancelled it should not be deleted.I am not using an ItemTemplate or CommandField but Instead i am using a AutoGenerateDeleteButton=True.i have to write all the code in c# only but not in design/html page. Plz help me in finding this code.It is very urgent.
ok byee
Murali
Murali
|
|
|
|
|
try with the following code
private void dg_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
//Check for Item and Alternate Items if(e.Item.ItemType==ListItemType.AlternatingItem || e.Item.ItemType==ListItemType.Item)
{
Button btn=(Button)e.Item.Cells[0].Controls[0];
btn.Attributes.Add("onclick","return confirm(‘Do you want to continue?’);");
}
}
Regards
Prakash-B
|
|
|
|
|
we can give confirmation in c# with javascript plz check it
u write this method in c# page
//create one method
public Message(string args)
{
Lable lbl=new Label();
lbl.Text=""+"<window.confirm(args)>"
}
when u double click the button and it will display the c# page u write the below code at last of the code in button.
Message="Display the message u want";
<div class="ForumSig">KIRAN</div>
|
|
|
|
|
we can give confirmation in c# with javascript plz check it
u write this method in c# page
//create one method
public Message(string args)
{
Lable lbl=new Label();
lbl.Text=""
+
"<window.confirm(args)>"
}
when u double click the button and it will display the c# page u write the below code at last of the code in button.
Message="Display the message u want";
<div class="ForumSig">KIRAN</div>
|
|
|
|
|
Hi all!
in my sample web application, i have make setting in web.config file for custom eror as:
<customerrors mode="On">
<error statuscode="404" redirect="Redirect.aspx">
in page load event of code file of Redirect.aspx, i have write following code:
string strCorrectPath = Request.QueryString["aspxerrorpath"].ToString();
string strPage = strCorrectPath.Substring(strCorrectPath.LastIndexOf("/") + 1);
Response.Redirect("http://192.200.12.19/projects/" + strPage);
when i run from local host it works good. but when i run it from IIS, then it doesn't work & not redirected to the URL: "http://192.200.12.19/projects/" + strPage, rather than it searching redirec page on my local system. whst is the problem?
Thanks & Regards,
SAMir Nigam,
Software Engineer,
STPL, Lucknow, India.
|
|
|
|
|
Hiii,
I Built an application to send mails using smtp sever.
few days back my mails are going to the user's inbox folder..
But now the same mails with the same subject line & body are going to spam..can anyone suggest me the reason plzzzzzzz
hiiiiii
|
|
|
|
|
The recieving server must have marked that subject or sender as spam
|
|
|
|
|
Any soln Manas???????
hiiiiii
|
|
|
|
|
Hi,
I need to show up some value in the file control as soon as the page is loaded!
the form is sort of an edit page so when user clicks edit we should display the path in the file control (this path would be selected by the user itself intitially)
Tried writing javascript in onlaod event but that didnt work!
How to programatically assign a value to this control.
iam using vs.net 2003 and c#
Gautham
|
|
|
|
|
In your page load event (C# code server side) you can set the property according to the user selection.
eg:
fileControl.Filename = userPassedFilename;
Hope this helps
Dan
|
|
|
|
|
All popular browsers denies update of control value from JavaScript because it can be very dangeruos security hole (intruder can upload file from user's local host by very simple legal script).
As a result one solution which I can propose - show previosly uploaded file name near to upload control (above it for example) so user can copy file path to upload it from correct place.
|
|
|
|
|
Hi,
This is partially what my drop down list looks like:
<select name="ctl00$cphRightColumn$ddlRegions" onchange="javascript:setTimeout('__doPostBack(\'ctl00$cphRightColumn$Regions\',\'\')', 0)" id="ctl00_cphRightColumn_Regions">
<option value="">None</option>
<option value="1">Region 1</option>
<option value="2">Region 2</option>
<option value="3">Region 3</option>
<option selected="selected" value="4">Region 4</option>
</select>
I am looking for code to set the drop down (and to trigger ddlRegions_SelectedIndexChanged) to the None option, I tried the following piece of code and it did not work:
ddlddlRegions.Items.FindByValue(string.Empty).Selected = true;
Please can someone help advise what to do?
Regards
ma se
|
|
|
|
|
try this
ddlddlRegions.SelectedValue="";
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Thanks, it does set the value to None, but it does not trigger ddlRegions_SelectedIndexChanged(object sender, EventArgs e). I need it to trigger because there are other drop down lists that depend on this one. If this is set to None, then the other drop down lists will also reset. I hope you understand?
|
|
|
|
|
If you are setting the drop down list value to none in the page load it wont call the selected index changed event..
Is it so??
By the way have you set the autopostback of the drop down list to true???
Check that first!!
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi,
I am using GridView to display a large set of data(2,80,000+) records in GridView. It can be done using Paging support but i should not use that.
Following are the problems for which i am trying to find the solution :
1. Adding scrolling support to GrdiView and retrieving relevent records at runtime as user scrolls through GridView. In other words, as user scrolls through the GridView, records should be retrieved and show to user.
2. GridView has hyperlink buttons. when clicked on them, selected row details are shown in a page within popup window. when this popup window is closed, row selected has to be visible in Gridview i.e is there a way to scroll a GridView based on row index selected?
I am new to ASP.NET and i don`t have much idea how to go about implementaion details on these two. I will be glad if someone can help me out.
Thanks in Advance,
Rajanikanth.
|
|
|
|
|
Hi..
Metakeywords is a simple property I defined in the default page to get a member value:
string metakey; .Its code as following:
public string Metakeywords<br />
<br />
{<br />
<br />
get{return metakey;<br />
<br />
}<br />
<br />
set<br />
<br />
{<br />
<br />
ViewState["metakey"]=value;<br />
<br />
metakey=(string)ViewState["metakey"];<br />
<br />
}<br />
<br />
}
I have used the viewstate trying to solve the problem but it doesn't make any different.
This property exist in three places:
1-default page.
2-a usercontrol(I called it welcome) in the default page.
3-a usercontrol which is loaded dynamically (in code behind) into the welcome usercontrol using the code:
contentList.Controls.Add(Page.LoadControl("UserControls/FieldContentsList.ascx"));<br />
FieldContentsList fieldus=(FieldContentsList)contentList.Controls[0];<br />
this.Metakeywords=fieldus.Metakeywords;
The problem is:I want to set the property in the (3-) usercontrol and get the value in the (1-)default page.
Could any one help me to solve this problem.
I am too late but i will never give up
|
|
|
|
|
Hi all,
I have problem with search form, i have created form for searching data, below is my example.
When user type keyword "Economics Review" it will transfer the keyword to compare with sql query if it found Economics it will dispaly Economics and Review is found will also display but i want to find only the keyword "Economics Review"
Socheat
|
|
|
|
|
Which Query string are you using?
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Socheat.Net wrote: below is my example
I don't see any code in this post. What example?
Socheat.Net wrote: When user type keyword "Economics Review" it will transfer the keyword to compare with sql query if it found Economics it will dispaly Economics and Review is found will also display but i want to find only the keyword "Economics Review"
So what code do you have already?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Ready to Give up - Your help will be much appreciated.
My website
|
|
|
|
|
try using like statement by the following way coz i had the same issue and i have succeed with the below technique
select * from <tablename> where <column name=""> like '%Economics%' and <column name=""> like '%Review%'
Regards
Prakash-B
|
|
|
|
|
Thanks, but not what i want
Socheat
|
|
|
|
|
HI,
Try the follwing way.
select * from <tablename> where like '%Economics Review%'
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
update TblAdvance Set check=false where ecode='1011' and type='Festival' and Check=true
this query does not work it says Syntax error in update statement.
when Executed in access Query it work Fine..
Please Help Me...
-- modified at 8:37 Thursday 28th June, 2007
|
|
|
|