|
thanks Mr.Deepak the cool. but i have missed the start menu link for Visual studio...... how i can fetch it from visual studio folder? where it is?
|
|
|
|
|
does anyone know why this submit script isnt functioning
protected void btnOK_Click(object sender, EventArgs e)
{
string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>";
if (!Page.ClientScript.IsClientScriptBlockRegistered scriptString))
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString);
}
}
I want to submit the main form once i click the ok button, im runing this script from a popup window.
|
|
|
|
|
did you used ajax on your application ?
if you are using Ajax then used ScriptManager insted of Page.Client
|
|
|
|
|
im using ajax fro rad controls, thanks let me try that.
|
|
|
|
|
would u know the correct synthax for the script manager, im writing it like this but im getting a few error messages
ScriptManager.RegisterClientScriptBlock(frmMessages.aspx,scriptString))
{
ScriptManager.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString)
|
|
|
|
|
Sorry abt the last item from myself, but i have it this way,
string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>";
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "submitScript", scriptString, true);
but still not working.
|
|
|
|
|
hi All
i have developed an asp.net application where iam using english and arabic names in the data base(varchar(200) for english and nvarchar(200) for arabic). If i insert/update a record it shows correctly in the database table.
My issue is from old data that is shown as inverted question marks ¿¿ ¿¿¿¿ ¿¿¿. I have used SSIS to migrate data and enabled unicode while migration from oracle.
My current collation is SQL_Latin1_General_CP1_CI_AS
How can i over come this issue and thanks in advance!!!!!!!!!!!1
|
|
|
|
|
Choose one of the unicode collations. The currently selected collation does not support the unicode characterset.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
hi all, i want to customize the repeator control with paging,with previous and next button added at footer of repeator, what i want to when repeator control added, then it should add the add the "next", previous button at footer of repeator by default.
i have tried paging using pagedatasource class, it works, and added implemented the itemplate for template with previous next button as well.
here is samples of code
WebCustomControl1 : Repeater, ITemplate
over ride oninit and do this
protected override void OnInit(EventArgs e) {
this.FooterTemplate = new WebCustomControl1();
base.OnInit(e); }
implemented interface
public void InstantiateIn(Control container)
{ code for previous and next buttons}.
now the issue is instead of appearing at the bottom previous next buttons appears at the top of repeator,and i want them to appear at the bottom in footer section of template,all doing in custom control.
previous"
Regards.
Tasleem Arif
|
|
|
|
|
instead of footer you can place 2 link buttons bellow repeater
the code goes like this
<br />
<br />
<footertemplate><br />
<br />
</footertemplate><br />
<br />
<br />
<br />
<tr><br />
<td><br />
<input type="hidden" id="PageSize" value="5" runat="server" /><br />
</td><br />
<td> <br />
<input type="hidden" id="CurrentPage" value="1" runat="server" /><br />
</td><br />
<td><br />
<input type="hidden" id="TotalSize" runat="server" /><br />
</td> <br />
</tr><br />
<tr><br />
<td align="center" style="font-weight: bold; border-top-width: thick; border-left-width: thick; border-bottom-width: thick; border-right-width: thick;" colspan="3"><br />
<asp:linkbutton id="Prev" text="<< Previous" visible="false" forecolor="blue" onclick="Page_Repeater" runat="server" xmlns:asp="#unknown" /> <br />
<asp:linkbutton id="Next" text="Next >>" visible="false" forecolor="blue" onclick="Page_Repeater" runat="server" xmlns:asp="#unknown" /><br />
</td><br />
</tr><br />
<br />
public void Repeaterfill()
{
SqlDataAdapter da = new SqlDataAdapter("select a.Complaint_id,a.Emp_id,a.Decription,"
+ " substring(Convert(varchar,a.Problem_date),0,12) as Problem_date,substring(Convert(varchar,b.Resolved_Date),0,12) as Resolved_Date"
+ " from Hr_complaint_detail a,hr_complaint_status b where a.sys_complaint_id=b.Complaint_id and b.Resolved_or_not=1 and a.Emp_id="+empid, con);
DataSet ds = new DataSet();
int startRecord = (int.Parse(CurrentPage.Value) - 1) *
int.Parse(PageSize.Value);
da.Fill(ds, startRecord, int.Parse(PageSize.Value), "hr_complaint_status");
Rep_comp_solved.DataSource = ds.Tables["hr_complaint_status"].DefaultView;
Rep_comp_solved.DataBind();
if (ds.Tables["hr_complaint_status"].Rows.Count <= 0)
{
Rep_comp_solved.Visible = false;
s = "No solved Complaints are there";
CreateMessageAlert(this, s);
Prev.Visible = false;
Next.Visible = false;
}
else
{
Prev.Visible = true;
Next.Visible = true;
}
SqlCommand Cmd = new SqlCommand("select count(*) from Hr_complaint_detail a,hr_complaint_status b "
+ " where a.sys_complaint_id=b.Complaint_id and b.Resolved_or_not=1 and a.Emp_id="+empid, con);
con.Open();
TotalSize.Value = Cmd.ExecuteScalar().ToString();
con.Close();
BuildPagers();
}
public void Page_Repeater(object sender, EventArgs e)
{
if (((LinkButton)sender).ID == "Prev")
{
if ((int.Parse(CurrentPage.Value) - 1) >= 0)
{
CurrentPage.Value = (int.Parse(CurrentPage.Value) - 1).ToString();
}
}
else if (((LinkButton)sender).ID == "Next")
{
if ((int.Parse(CurrentPage.Value) * int.Parse(PageSize.Value))< int.Parse(TotalSize.Value))
{
CurrentPage.Value = (int.Parse(CurrentPage.Value) + 1).ToString();
}
}
Repeaterfill();
}
public void BuildPagers()
{
if ((int.Parse(CurrentPage.Value) - 1) <= 0)
{
Prev.Enabled = false;
}
else
{
Prev.Enabled = true;
}
if ((int.Parse(CurrentPage.Value) * int.Parse(PageSize.Value)) >= int.Parse(TotalSize.Value))
{
Next.Enabled = false;
}
else
{
Next.Enabled = true;
}
}
Maniiiiiiiiiiiiiii
|
|
|
|
|
i am making a custom repeator, not using them in webpages
Regards.
Tasleem Arif
|
|
|
|
|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework)
i have fetched the value from database and want to show in gridview column wise.. how to do it
sqlda = new System.Data.SqlClient.SqlDataAdapter("select value_tmp from tbl_table1", conn);
sqlda.Fill(ds);
GridView1.DataSource =ds;
GridView1.DataBind();
The above coding will bind the values in row wise... how to do in column wise? help me.....
thanks - KARAN
|
|
|
|
|
So you want to a column for each row? I would not use a gridview for that.
Just use an HTML table. Add a row for each column in your dataset then add a table cell for each row.
I didn't get any requirements for the signature
|
|
|
|
|
so..we cant do it in .net 2005 gridview????????????
|
|
|
|
|
No of course you can. Just iterate through your data adding column to the gridview for each row, easy.
I didn't get any requirements for the signature
|
|
|
|
|
can u plz give me a sample coding?
|
|
|
|
|
Hi
I am a relative newbie to ASP.Net and have just joined this board.
I am trying to write a simple Web application that will connect to an Analysis Services 2005 cube and will run a simple MDX statement.
Despite having installed an instance of Analysis Services and IIS on the same machine as Visual Studio I am getting a error message that msOlap is an unknown provider.
I am using the COM ADOMD sdk to enable me to interact with my cube and my application includes the following code:
Dim cn As New ADODB.Connection
cn.Open("provider=msolap;data source=myserver")
cn.DefaultDatabase = "mycube"
Can anyone provide pointers on what steps I need to follow to get this working? Do I for example need to change settings in IIS? Sorry if these questions sound silly - I just want to be able to get started on this but I am not finding it very easy to find the information I need to at least get a connection
I am planning on doing this over a HTTP connecetion.
Any information on this will be much appreciated as I am so stuck
Thanks
Nassy
|
|
|
|
|
|
this validation will be work fine but i am using the gridview within the update panel so the validation not work..
how to check the gridview validation
var grid =document.getElementById("<%#GridView1.ClientID %>");
|
|
|
|
|
you can set update panel validation through C#,as in edit mode gridview doesnt find the validated control.
Maniiiiiiiiiiiiiii
|
|
|
|
|
how do i reduce the page size/ screen size in asp.net, say 50%.
which control propert do i have to change.
|
|
|
|
|
By default controls are stored in view state. You can remove them from viewstate. You will then have to recreate them on each postback but the page size will be smaller.
Also don't store any variables in viewstate. Store them in Session instead. I suggest making a class of session objects. Each item in stored in session can be a property in a class, it makes it easier to manage.
Check your drop down lists. Make sure none of them have too many items.
Turn on compression in IIS. http://www.15seconds.com/issue/020314.htm[^]
I didn't get any requirements for the signature
|
|
|
|
|
Can any one please tell me how to display the unicode text in a textbox.
for eg.
Dim str = "安装在第"
textbox1.text = str
I want the chinese string to be displayed in textbox. Instead it is displaying as ?????
Thanks in Advance
|
|
|
|
|
Check this out:
Unicode
The answers posted by me are suggestions only and cannot be used in anyway against me.
|
|
|
|
|
Thanks for your link.
but it didnt help me out.. I just want to display the text any more suggestions please
|
|
|
|