|
in hyperlink ther is no top or left property.and we can add hyperlink to some container bt here i wann a add in rectangle.if u have few line of code thn cn u plz send it to me.
|
|
|
|
|
Krupa wrote: in hyperlink ther is no top or left property
You have to use CSS for that.. For example : position:absolute; top:10px; left:10px
|
|
|
|
|
iam having a grid view iam filling the gridview with the text entered in the serverside textbox now i want the text entered in the textbox should convert into a sentence case that is first letter captial.
|
|
|
|
|
I think you need to the javascript to convert the first letter to captial letter on keypress event of textbox..
OR You may also try to use CSS (capitalize or first-letter) http://www.codeproject.com/script/Forums/View.aspx?fid=12076&msg=2370304[^] but I'm not so sure whether you can use it or not for your case. so, it's better if you can write the js function to covert the first letter..
|
|
|
|
|
Hi,
Here's what's going on:
*) User clicks on a location of the website, firing off a .NET function (in a .cs file)
*) This routine comes up with a particular database key that is used to link a related table to another one.
*) Next, take that key and re-populate a GridView with the information it found in the related table.
Problem is, the GridView doesn't post-back or refresh or whatever they call it (I'm traditionally straight Win32 C so this is rather frustrating!).
Here's the code that I'm using thus far. Any help would be appreciated. Thanks!
GridView rd = relPanel.FindControl("GridView1") as GridView;
if (rd != null)
{
SqlDataSource relatedDataSource = Page.FindControl("SqlDataSource1") as SqlDataSource;
if (relatedDataSource != null)
{
// This gives us the Site_ID that we need for our query.
// dtr["SITE_ID"].ToString()
// Our command
string myquery = String.Format("SELECT SITE_ID, PLANTTYPE, BARCODE, TIMESTAMP FROM Samples WHERE (SITE_ID = '{0}')", dtr["SITE_ID"].ToString());
SqlConnection myConnection = new SqlConnection(relatedDataSource.ConnectionString);
SqlDataAdapter ad = new SqlDataAdapter(myquery, myConnection);
DataSet myds = new DataSet();
ad.Fill(myds, "Samples");
rd.DataSourceID = null;
rd.DataSource = myds;
rd.DataBind();
|
|
|
|
|
Hi,
I have created a report (.rdlc) and using a reportViewer control want to showing it.
All tasks is OK in point of my view but when running my web site project (locally )in the web form that the report should appear, this error message apperes:
"An error has occurred during report processing.
The type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found"
Do you encountered it? what is it for?
Best wishes
|
|
|
|
|
mehrdadc48 wrote: type specified in the TypeName property of ObjectDataSource 'ObjectDataSource1' could not be found"
That tells you what is wrong. I'd suggest looking into ObjectDataSource1 and finding out why.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How can i set the AutoPostBack property for some items in the dropdownlist ?
Example: When i select some items in the dropdownlist, i want the page to postback, while other items should not.
|
|
|
|
|
set the AutoPostBack property to FALSE for the dropdownlist (ddl). Create a javascript fucntion e.g.
<br />
<br />
function ddlOnchange(selectedValue)<br />
{<br />
if(selectedValue == 'yourrequired value')<br />
document.formname.submit();<br />
else<br />
return false;<br />
}<br />
<br />
and add onchange attribute to the ddl in code behind file e.g.
<br />
ddl.Attributes.Add("onchange", "javascript:ddlOnchange(this.value);");<br />
-----
|
|
|
|
|
i dont think you can achieve this with ASP.NET becasue postback is a property of Control not the items associated with that control. for this you have do some extra work to make a custom drop down but still not sure its possible or not.
Usman Munier
Xavor Corporation Pakistan
|
|
|
|
|
Hi
How to get the values of dynamic fileupload controls in Submit button click without using AJAX.
I am creating the control/setting the IDs at runtime.
FileUpload uploadDataFile = new FileUpload();
uploadDataFile.ID = "FileUpload1";
Thanks in advance
|
|
|
|
|
|
Please don't cross post. This same question was asked here[^]. Both threads now have answers (and different answers) which causes people to look in two different places for an answer to the same question.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
hi,
anybody know how to use response.redirect in AJAX update Panel
|
|
|
|
|
<asp:UpdatePanel ID="udpAdd" runat="server">
<ContentTemplate>
<asp:Label ID="lblOffId" runat="server" Width="30px"></asp:Label>
<asp:Button runat="server" ID="Button1" Text = "Click me" OnClick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
there is a problem with Ajax update pannel and thats why you cannot use Response.Redirect. to use this you have to take your button out of Update Pannel
Usman Munier
Xavor Corporation Pakistan
|
|
|
|
|
I am facing this error when i uploaded my paypal integrated website, which takes online payment.
System.Security.SecurityException: That assembly does not allow partially trusted callers.
modified on Monday, December 31, 2007 7:25:48 AM
|
|
|
|
|
chanu007 wrote: plz reply quickly
That just irritates people. If you need a quick reply go to a paid support service. They are paid to reply quickly. This is a volunteer service where people help out in their spare time. You will get a response when people are able to respond.
chanu007 wrote: System.Security.SecurityException: That assembly does not allow partially trusted callers.
What is calling what? What bit of code fell over? What were you doing at the time? You really need to supply more information than this.
|
|
|
|
|
thanks for ur novalue,nohelp,irritating suggestion
|
|
|
|
|
chanu007 wrote: thanks for ur novalue,nohelp,irritating suggestion
You need to supply more information. I can't help unless you give more information, so that's why I asked for more information. However, if you don't want help...
|
|
|
|
|
Actually, in my website whenever a person buy something he has to pay either with his paypal account if he has or can opt for credit card option.
the problem is in credit card option as i am using paypal as a payment gateway to receive payment from customers through their credit card.
my application runs well in desktop , but when i publish it the following error displayed.
Re: System.Security.SecurityException: That assembly does not allow partially trusted callers.
|
|
|
|
|
chanu007 wrote: System.Security.SecurityException: That assembly does not allow partially trusted callers.
Googled and This [^]came in the first !
|
|
|
|
|
yeah, i recognized your name as being a user who is just rude to veteran users. You don't want to do your own work. I hope all veteran users note you and NEVER help you with anything again. You may want to look at changing careers. I think working at the DMV is more in your alley considering your attitude.
|
|
|
|
|
hi
i have stored procedure.
but how to call stored procedure in asp.net 2.0 with c#.
my stored procedure in MSSql Server ===
DROP PROC Analyst
CREATE PROC Analyst
@UserID varchar(20),
@StockName varchar(50),
@NewUserID varchar(20)
AS
INSERT tAnalystAssignHistory
(
AnalystAssignHistoryCode,
SecurityCode,
ISIN,
StockName,
UserID,
IsDummyEnabled,
AnalystAssignDate,
StatusCode,
CreatedBy,
CreateDate,
UpdatedBy,
UpdateDate
)
SELECT COALESCE((SELECT MAX(AnalystAssignHistoryCode) FROM tAnalystAssignHistory), 0) + 1,
SecurityCode,
ISIN,
StockName,
UserId,
IsDummyEnabled,
AnalystAssignDate,
'A',
CreatedBy,
GETDATE(),
NULL,
NULL
FROM tAnalystAssignHistory
WHERE UserId = @UserID
and StockName = @StockName
GO
EXEC Analyst'PatelAmi','Gujarat Ambuja Cements Ltd.','Gayatri'
pls help me urgently.
Gayatri
|
|
|
|
|
niki_nilu wrote: but how to call stored procedure in asp.net 2.0 with c#.
ASP.NET is a framework for dealing with web applications. It has nothing to do with databases. However, you can use ADO.NET for accessing databases.
This is an example of what you might use. You need to replace bits of this with your own variables and the like:
using(SqlConnection connection = new SqlConnection("Your connection string here"))
{
SqlCommand command = new SqlCommand();
command.Connection = connection;
command.CommandText = "Analyst";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.AddWithValue("@UserId", theUserId);
command.Parameters.AddWithValue("@StockName", theStockName);
command.Parameters.AddWithValue("@NewUserId", theNewUserId);
connection.Open();
command.ExecuteNonQuery();
connection.Close();
}
Please check your stored procedure. You pass a parameter called @NewUserId which is never used.
|
|
|
|