|
Hi
My web page loading become very slow after using ajax toolkit.so please tell me
how to filter Ajax toolkit scripts when web page is loading using vb.net code.
I developed my application using vb.net.so I need vb.net source code.
|
|
|
|
|
You are using the debug library. set in your config file debug=false or set scriptmode=release in your sciptmanager object.
Hope this helps,
Regards,
|
|
|
|
|
I saw C# coding to filter ajax toolkit script when web page loading in the followwing code project link "http://69.10.233.10/KB/aspnet/fastload.aspx" but my application in vb.net. while converting that C# code to Vb.net it causes some error. so please help me by sending relevent vb.net code.
|
|
|
|
|
ValidatorCalloutExtender not working in asp.net 3.0 version.
Giving javascript error as 'Sys is not defined'.
Please tell me what I am missing??
|
|
|
|
|
This error comes when the web.config is not prperly configured as per ajax or u havn't made ur application as "ajaxenabledwebsite"
|
|
|
|
|
Thanks !!! I have putted ajax enabled website related code in web.config
In "system.web" tab i put
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
Now its works fine.. Thanks again...
|
|
|
|
|
Hi all,
I have a datalist and i want to fill datalist from 2 sqldatasource retuning 2 different table.
In a button1_click event, i wrote
dt1.datasource = sd1; return fields picID,picName ...
dt1.databind();
In a button2_click event, i wrote
dt1.datasource = sd2; return fields userID,userName....
dt1.databind();
i wrote on aspx file
for a label text <%# eval("picID ") %>
for example <%# session[mysessionkey] %>
but i wanna change this dynamically,
Thanks ...
thanks for everything i have...
|
|
|
|
|
Hi,
Now there can 2 solution or may even more.
1. Take one public variable and assign column name on button click based on requirement
like
ID="picID" // button1
ID="UserID"// button2
or else
2. You can rename the column name of the either dataTable on run time like:
ds.Tables[0].Columns[0].ColumnName = "Abc";
feel free to ask
Regards
Anil Pal
|
|
|
|
|
Thanks for your reply,
.aspx file
ItemTemplate
Label ID="Label1" runat="server" text=<%#Eval(ID)%>
ItemTemplate
.cs file
string ID; ------ how can i send this to item template, when i wrote like text=<%#Eval(ID)%> it gives error protected void Button1_Click(object sender, EventArgs e)
{
ID = "picID";
DataList1.DataSource = SqlDataSource1;
DataList1.DataBind();
}
protected void Button2_Click(object sender, EventArgs e)
{
ID = "UserID";
DataList1.DataSource = SqlDataSource2;
DataList1.DataBind();
}
thanks for everything i have...
|
|
|
|
|
hi,
OK try another
Regards
Anil Pal
|
|
|
|
|
anyway thanks
thanks for everything i have...
|
|
|
|
|
hi friends
i need create tabele in codebehind how can i create it..
for example;
how can achive in code behind
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
saravanan05 wrote: hi friends
i need create tabele in codebehind how can i create it..
for example;
how can achive in code behind
Your given example is not coming properly. Which kind of table you want create ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
hi
i need to create like this:
i need to create in codebehind..
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
hi,
Sorry dear but again its not displayed. If this is the image then send to
me at anil.bly@gmail.com
Or explain through text only.
Regards
Anil Pal
|
|
|
|
|
Edit your post and use ignore HTML tags option.
|
|
|
|
|
You have done the same mistake. before post please checked "Ignore HTML tags in this message (good for code snippets) " Check Box
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
hi
i need to create table in code behind
<table>
<tr>
<td>
</td>
</tr>
</table>
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
You could place a literal control on the page. In the code behind write the code to generate the Table and assign the result to the Literal control's Text property.
|
|
|
|
|
hi,
You can also use HtmlTable, HtmltableCell. row ect class to create the table from code behind.
Regards
Anil Pal
|
|
|
|
|
That would work. But the OP seemed to be indicating that he wanted to write the HTML directly. Either that or he thought we might not know what a table looked like in HTML.
|
|
|
|
|
i have a web page which issue product all products issue smoothly without error on local system but when i publish same page on server,and try to issue prodect(perticuler one product) gives error
error is
Input string was not in a correct format.
while code is for that perticular product
cmd.CommandText = "select * from total_stock where ptype='RJ-45 SIMPLE' ";
adp.Fill(ds, "ab");
foreach (DataRow dm in ds.Tables["ab"].Rows)
{
lblval.Text = dm["pqty"].ToString();
}
n = Convert.ToDouble(TextBox2.Text);
if(Convert.ToDouble(lblval.Text) < Convert.ToDouble(n))
{
Page.RegisterStartupScript("onClick", "<script
Language=JavaScript>alert('Please check the Stock !')</script>");
}
else
{
o = Convert.ToDouble(lblval.Text) - Convert.ToDouble(n);
lblval.Text = Convert.ToString(o);
con.Open();
cmd.CommandText = "update total_stock set pqty='" +
lblval.Text + "' where ptype='RJ-45 SIMPLE'";
cmd.ExecuteNonQuery();
con.Close();
//end
cmd.CommandText = "select * from material_issue";
adp.Fill(ds, "re");
dr = ds.Tables["re"].NewRow();
//cmd.CommandText = "select * from total_stock";
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
dr = ds.Tables["re"].NewRow();
dr["ptypename"] = "RJ-45 SIMPLE";
dr["materialissue_date"] = DateTime.Now;
dr["issue_to"] = TextBox1.Text;
dr["entered_by"] = Label28.Text
dr["qty"] = TextBox2.Text;
dr["remarks"] = "ISSUE TO TECHNICIEAN";
ds.Tables["re"].Rows.Add(dr);
cmd.CommandText = "Select * from material_issue";
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
Page.RegisterStartupScript("onClick", "<script
Language=JavaScript>alert('RJ-45 is Issued !')</script>");
}
|
|
|
|
|
prateekfgiet wrote: I have a web page which issue product all products issue smoothly without error on local system but when i publish same page on server,and try to issue prodect(perticuler one product) gives error
error is
Please do not cross post. You have asked same question just few hours back. please continue with the same thread.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
i have dropdown list which contain the name of states and last option is other if user select the option other,then a textbox will apper on page and value save from textbox,how i will do? thanx in advance
|
|
|
|
|
hi,
you can do code to display the textbox on select index change event of dropdownlist.
like:
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if(DropDownList1.SelectedValue=="others")
{
// Code to display the textbox
}
}
feel to free ask
Regards
Anil Pal
|
|
|
|